mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 19:20:12 +01:00
intel/fs: rerun divergence analysis prior to convert_from_ssa
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9964
Cc: mesa-stable
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26235>
(cherry picked from commit 6dbb5f1e07)
This commit is contained in:
parent
402553152f
commit
f80e96eb26
2 changed files with 8 additions and 1 deletions
|
|
@ -1064,7 +1064,7 @@
|
|||
"description": "intel/fs: rerun divergence analysis prior to convert_from_ssa",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1734,6 +1734,13 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
|
|||
|
||||
nir_validate_ssa_dominance(nir, "before nir_convert_from_ssa");
|
||||
|
||||
/* Rerun the divergence analysis before convert_from_ssa as this pass has
|
||||
* some assert on consistent divergence flags.
|
||||
*/
|
||||
NIR_PASS(_, nir, nir_convert_to_lcssa, true, true);
|
||||
NIR_PASS_V(nir, nir_divergence_analysis);
|
||||
OPT(nir_opt_remove_phis);
|
||||
|
||||
OPT(nir_convert_from_ssa, true);
|
||||
|
||||
if (!is_scalar) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue