radv: Remove dead shared variables after optimization loop.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27104>
This commit is contained in:

committed by
Marge Bot

parent
63b238e84e
commit
7b0fd4cc05
@@ -179,8 +179,8 @@ radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively)
|
||||
_mesa_set_destroy(skip, NULL);
|
||||
|
||||
NIR_PASS(progress, shader, nir_opt_shrink_vectors);
|
||||
NIR_PASS(progress, shader, nir_remove_dead_variables, nir_var_function_temp | nir_var_shader_in | nir_var_shader_out,
|
||||
NULL);
|
||||
NIR_PASS(progress, shader, nir_remove_dead_variables,
|
||||
nir_var_function_temp | nir_var_shader_in | nir_var_shader_out | nir_var_mem_shared, NULL);
|
||||
|
||||
if (shader->info.stage == MESA_SHADER_FRAGMENT && (shader->info.fs.uses_discard || shader->info.fs.uses_demote)) {
|
||||
NIR_PASS(progress, shader, nir_opt_conditional_discard);
|
||||
|
Reference in New Issue
Block a user