mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 20:10:14 +01:00
intel/nir, freedreno/ir3: Use the separated dead write vars pass
No changes to shader-db for intel. No changes to shader-db expected for freedreno. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
cb126cf67a
commit
c20dd1f77c
2 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ ir3_optimize_loop(nir_shader *s)
|
||||||
|
|
||||||
OPT_V(s, nir_lower_vars_to_ssa);
|
OPT_V(s, nir_lower_vars_to_ssa);
|
||||||
progress |= OPT(s, nir_opt_copy_prop_vars);
|
progress |= OPT(s, nir_opt_copy_prop_vars);
|
||||||
|
progress |= OPT(s, nir_opt_dead_write_vars);
|
||||||
progress |= OPT(s, nir_lower_alu_to_scalar);
|
progress |= OPT(s, nir_lower_alu_to_scalar);
|
||||||
progress |= OPT(s, nir_lower_phis_to_scalar);
|
progress |= OPT(s, nir_lower_phis_to_scalar);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -553,6 +553,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
|
||||||
OPT(nir_opt_find_array_copies);
|
OPT(nir_opt_find_array_copies);
|
||||||
}
|
}
|
||||||
OPT(nir_opt_copy_prop_vars);
|
OPT(nir_opt_copy_prop_vars);
|
||||||
|
OPT(nir_opt_dead_write_vars);
|
||||||
|
|
||||||
if (is_scalar) {
|
if (is_scalar) {
|
||||||
OPT(nir_lower_alu_to_scalar);
|
OPT(nir_lower_alu_to_scalar);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue