glsl: don't call nir_lower_global_vars_to_local twice in preprocess_shader

it's called again below

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35945>
This commit is contained in:
Marek Olšák
2025-07-04 03:42:11 -04:00
committed by Marge Bot
parent 425a89cb75
commit 1c4929645b
-1
View File
@@ -1292,7 +1292,6 @@ preprocess_shader(const struct gl_constants *consts,
if (prog->info.stage == MESA_SHADER_FRAGMENT && consts->HasFBFetch) {
NIR_PASS(_, prog->nir, gl_nir_lower_blend_equation_advanced,
exts->KHR_blend_equation_advanced_coherent);
nir_lower_global_vars_to_local(prog->nir);
}
/* Set the next shader stage hint for VS and TES. */