glsl: fix accidentally disabling nir_opt_varyings for all drivers

Fixes: adc40aee25 - glsl: lower IO in the linker if enabled, don't lower it later

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31994>
This commit is contained in:
Marek Olšák
2024-11-05 15:47:06 -05:00
committed by Marge Bot
parent 7e3ac4d476
commit 979373d583
+1 -1
View File
@@ -1516,7 +1516,7 @@ gl_nir_lower_optimize_varyings(const struct gl_constants *consts,
consts->Program[i].MaxUniformComponents);
max_ubos = MIN2(max_ubos, consts->Program[i].MaxUniformBlocks);
num_shaders++;
optimize_io &= nir->options->io_options & nir_io_glsl_opt_varyings;
optimize_io &= !!(nir->options->io_options & nir_io_glsl_opt_varyings);
}
/* Lower IO derefs to load and store intrinsics. */