glsl: re-validate program pipeline after sampler change
authorTimothy Arceri <timothy.arceri@collabora.com>
Sun, 6 Dec 2015 03:30:44 +0000 (14:30 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 7 Dec 2015 10:41:00 +0000 (21:41 +1100)
Cc: "11.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Cc: Kenneth Graunke <kenneth@whitecape.org>
https://bugs.freedesktop.org/show_bug.cgi?id=93180

src/mesa/main/uniform_query.cpp

index 083087d6baa66d65fd922e18b29713747bb286bf..b2ac65fd68f069004f470303e35166679fa0ef26 100644 (file)
@@ -758,6 +758,10 @@ _mesa_uniform(struct gl_context *ctx, struct gl_shader_program *shProg,
             return;
          }
       }
+      /* We need to reset the validate flag on changes to samplers in case
+       * two different sampler types are set to the same texture unit.
+       */
+      ctx->_Shader->Validated = GL_FALSE;
    }
 
    if (uni->type->is_image()) {