mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 09:10:11 +01:00
glsl: wrap nir_opt_loop in NIR_PASS()
Otherwise we miss the debugging benefits. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29079>
This commit is contained in:
parent
d2e5ff0585
commit
3d20245f43
1 changed files with 4 additions and 1 deletions
|
|
@ -79,7 +79,10 @@ gl_nir_opts(nir_shader *nir)
|
||||||
NIR_PASS(progress, nir, nir_copy_prop);
|
NIR_PASS(progress, nir, nir_copy_prop);
|
||||||
NIR_PASS(progress, nir, nir_opt_remove_phis);
|
NIR_PASS(progress, nir, nir_opt_remove_phis);
|
||||||
NIR_PASS(progress, nir, nir_opt_dce);
|
NIR_PASS(progress, nir, nir_opt_dce);
|
||||||
if (nir_opt_loop(nir)) {
|
|
||||||
|
bool opt_loop_progress = false;
|
||||||
|
NIR_PASS(opt_loop_progress, nir, nir_opt_loop);
|
||||||
|
if (opt_loop_progress) {
|
||||||
progress = true;
|
progress = true;
|
||||||
NIR_PASS(progress, nir, nir_copy_prop);
|
NIR_PASS(progress, nir, nir_copy_prop);
|
||||||
NIR_PASS(progress, nir, nir_opt_dce);
|
NIR_PASS(progress, nir, nir_opt_dce);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue