llvmpipe: Fix optimization loop to actually loop

Reviewed-by: Dave Airlie <airlied@redhat.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10549>
This commit is contained in:
Jesse Natalie 2021-04-30 15:42:38 -07:00 committed by Marge Bot
parent cc5df4398a
commit 9410eb7e39

View file

@ -2342,9 +2342,9 @@ void lp_build_opt_nir(struct nir_shader *nir)
NIR_PASS_V(nir, nir_lower_fp16_casts);
do {
progress = false;
NIR_PASS_V(nir, nir_opt_constant_folding);
NIR_PASS_V(nir, nir_opt_algebraic);
NIR_PASS_V(nir, nir_lower_pack);
NIR_PASS(progress, nir, nir_opt_constant_folding);
NIR_PASS(progress, nir, nir_opt_algebraic);
NIR_PASS(progress, nir, nir_lower_pack);
nir_lower_tex_options options = { .lower_tex_without_implicit_lod = true };
NIR_PASS_V(nir, nir_lower_tex, &options);