mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
brw/nir: Lower fsign again after last call to brw_nir_optimize
No shader-db or fossil-db changes on any Intel platform.
Fixes: 13332c23 ("intel/brw: Unconditionally run optimizations after nir_opt_uniform_subgroup")
Closes: #12888
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34251>
This commit is contained in:
parent
ca95cb8178
commit
e210b79ce3
1 changed files with 7 additions and 0 deletions
|
|
@ -1954,6 +1954,13 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
|
|||
OPT(nir_lower_subgroups, &subgroups_options);
|
||||
}
|
||||
|
||||
/* Run fsign lowering again after the last time brw_nir_optimize is called.
|
||||
* As is the case with conversion lowering (below), brw_nir_optimize can
|
||||
* create additional fsign instructions.
|
||||
*/
|
||||
if (OPT(brw_nir_lower_fsign))
|
||||
OPT(nir_opt_dce);
|
||||
|
||||
/* Run intel_nir_lower_conversions only after the last time
|
||||
* brw_nir_optimize is called. Various optimizations invoked there can
|
||||
* rematerialize the conversions that the lowering pass eliminates.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue