draw: make sure pipeline is revalidated when sampler views or samplers change.
authorRoland Scheidegger <sroland@vmware.com>
Sat, 23 Feb 2013 00:16:54 +0000 (01:16 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 25 Feb 2013 19:38:23 +0000 (20:38 +0100)
commitc0ba1080df4fa75ba23f254f2f998c97af70764b
tree97351c207ee53478c5dc02a604875423380629ef
parent20183177a5803317fe69f1f1a8dfae4d18b3702f
draw: make sure pipeline is revalidated when sampler views or samplers change.

Since with llvm execution parts of sampler view and sampler state is baked into
the shader, we need to revalidate otherwise the wrong shader might get used.
(Not completely sure but I think this would not be required for non-llvm case,
along with everything else in these functions.)
This caused bugs in piglit arb_texture_buffer_object-formats, because we never
noticed that the view format changed.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/gallivm/lp_bld_sample.c