mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
rusticl/kernel: call nir_lower_variable_initializers earlier
Fixes spirv_new spirv14_nonwriteable_decoration
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33327>
(cherry picked from commit 2f4931353f)
This commit is contained in:
parent
8d50d42514
commit
a1d5a8ea97
3 changed files with 7 additions and 6 deletions
|
|
@ -44,7 +44,7 @@
|
|||
"description": "rusticl/kernel: call nir_lower_variable_initializers earlier",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -639,6 +639,12 @@ fn compile_nir_to_args(
|
|||
nir_pass!(nir, nir_scale_fdiv);
|
||||
nir.set_workgroup_size_variable_if_zero();
|
||||
nir.structurize();
|
||||
nir_pass!(
|
||||
nir,
|
||||
nir_lower_variable_initializers,
|
||||
nir_variable_mode::nir_var_function_temp
|
||||
);
|
||||
|
||||
while {
|
||||
let mut progress = false;
|
||||
nir_pass!(nir, nir_split_var_copies);
|
||||
|
|
|
|||
|
|
@ -259,11 +259,6 @@ impl NirShader {
|
|||
}
|
||||
|
||||
pub fn inline(&mut self, libclc: &NirShader) {
|
||||
nir_pass!(
|
||||
self,
|
||||
nir_lower_variable_initializers,
|
||||
nir_variable_mode::nir_var_function_temp,
|
||||
);
|
||||
nir_pass!(self, nir_lower_returns);
|
||||
nir_pass!(self, nir_link_shader_functions, libclc.nir.as_ptr());
|
||||
nir_pass!(self, nir_inline_functions);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue