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:
@@ -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,
|
||||
|
@@ -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 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user