From: Timothy Arceri Date: Sun, 6 Dec 2015 03:30:44 +0000 (+1100) Subject: glsl: re-validate program pipeline after sampler change X-Git-Tag: upstream/17.1.0~13921 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da1a01361b0b4b9c727aa9a5a2ebe270a6fa81b7;p=platform%2Fupstream%2Fmesa.git glsl: re-validate program pipeline after sampler change Cc: "11.1" Reviewed-by: Tapani Pälli Cc: Kenneth Graunke https://bugs.freedesktop.org/show_bug.cgi?id=93180 --- diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 083087d..b2ac65f 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -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()) {