rusticl/kernel: no need to reset the scratch size anymore

The scratch size gets assigned by nir_lower_vars_to_explicit_types. Now
that we only run it once on temp memory, there is no need to reset the
value.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27068>
This commit is contained in:
Karol Herbst
2024-01-15 12:34:46 +01:00
committed by Marge Bot
parent 835c208578
commit ea023ff5cd
2 changed files with 0 additions and 7 deletions

View File

@@ -509,7 +509,6 @@ fn lower_and_optimize_nir(
!dev.samplers_as_deref(),
);
nir.reset_scratch_size();
nir_pass!(
nir,
nir_lower_vars_to_explicit_types,

View File

@@ -308,12 +308,6 @@ impl NirShader {
unsafe { (*self.nir.as_ptr()).info.num_textures }
}
pub fn reset_scratch_size(&mut self) {
unsafe {
(*self.nir.as_ptr()).scratch_size = 0;
}
}
pub fn scratch_size(&self) -> u32 {
unsafe { (*self.nir.as_ptr()).scratch_size }
}