From 1c4929645ba531bd9f95f793bdd9a612927aa2c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 4 Jul 2025 03:42:11 -0400 Subject: [PATCH] glsl: don't call nir_lower_global_vars_to_local twice in preprocess_shader it's called again below Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/glsl/gl_nir_linker.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compiler/glsl/gl_nir_linker.c b/src/compiler/glsl/gl_nir_linker.c index 3330ef20f43..3b0d79c23d0 100644 --- a/src/compiler/glsl/gl_nir_linker.c +++ b/src/compiler/glsl/gl_nir_linker.c @@ -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. */