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:

committed by
Marge Bot

parent
d2e5ff0585
commit
3d20245f43
@@ -79,7 +79,10 @@ gl_nir_opts(nir_shader *nir)
|
||||
NIR_PASS(progress, nir, nir_copy_prop);
|
||||
NIR_PASS(progress, nir, nir_opt_remove_phis);
|
||||
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;
|
||||
NIR_PASS(progress, nir, nir_copy_prop);
|
||||
NIR_PASS(progress, nir, nir_opt_dce);
|
||||
|
Reference in New Issue
Block a user