mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
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:
parent
835c208578
commit
ea023ff5cd
2 changed files with 0 additions and 7 deletions
|
|
@ -509,7 +509,6 @@ fn lower_and_optimize_nir(
|
||||||
!dev.samplers_as_deref(),
|
!dev.samplers_as_deref(),
|
||||||
);
|
);
|
||||||
|
|
||||||
nir.reset_scratch_size();
|
|
||||||
nir_pass!(
|
nir_pass!(
|
||||||
nir,
|
nir,
|
||||||
nir_lower_vars_to_explicit_types,
|
nir_lower_vars_to_explicit_types,
|
||||||
|
|
|
||||||
|
|
@ -308,12 +308,6 @@ impl NirShader {
|
||||||
unsafe { (*self.nir.as_ptr()).info.num_textures }
|
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 {
|
pub fn scratch_size(&self) -> u32 {
|
||||||
unsafe { (*self.nir.as_ptr()).scratch_size }
|
unsafe { (*self.nir.as_ptr()).scratch_size }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue