summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
index f35e8f88dd2f..2d9638049dfd 100644
--- a/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
+++ b/src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
@@ -190,7 +190,9 @@ brw_nir_setup_glsl_uniforms(nir_shader *shader, const struct gl_program *prog,
nir_foreach_variable(var, &shader->uniforms) {
/* UBO's, atomics and samplers don't take up space in the
uniform file */
- if (var->interface_type != NULL || var->type->contains_atomic())
+ if (var->interface_type != NULL ||
+ var->type->contains_atomic() ||
+ var->type->contains_sampler())
continue;
if (strncmp(var->name, "gl_", 3) == 0) {