summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/gl_nir_linker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/gl_nir_linker.c')
-rw-r--r--src/compiler/glsl/gl_nir_linker.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/gl_nir_linker.c b/src/compiler/glsl/gl_nir_linker.c
index d09a2c0a6c5..547549bc4e0 100644
--- a/src/compiler/glsl/gl_nir_linker.c
+++ b/src/compiler/glsl/gl_nir_linker.c
@@ -56,6 +56,10 @@ nir_build_program_resource_list(struct gl_context *ctx,
for (unsigned i = 0; i < prog->data->NumUniformStorage; i++) {
struct gl_uniform_storage *uniform = &prog->data->UniformStorage[i];
+ /* Do not add uniforms internally used by Mesa. */
+ if (uniform->hidden)
+ continue;
+
if (!link_util_add_program_resource(prog, resource_set, GL_UNIFORM, uniform,
uniform->active_shader_mask)) {
return;