diff options
author | Roland Scheidegger <[email protected]> | 2013-02-23 01:16:54 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-02-25 20:38:23 +0100 |
commit | c0ba1080df4fa75ba23f254f2f998c97af70764b (patch) | |
tree | 97351c207ee53478c5dc02a604875423380629ef /src/gallium/auxiliary/gallivm | |
parent | 20183177a5803317fe69f1f1a8dfae4d18b3702f (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c index 53223973172..ef0631c684a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c @@ -117,7 +117,8 @@ lp_sampler_static_texture_state(struct lp_static_texture_state *state, state->level_zero_only = !view->u.tex.last_level; /* - * FIXME: Handle the remainder of pipe_sampler_view. + * the layer / element / level parameters are all either dynamic + * state or handled transparently wrt execution. */ } |