summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_state.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-04-14 11:31:11 -0700
committerEric Anholt <[email protected]>2015-04-15 16:50:23 -0700
commit3a728d4dfbd727c30f36116772803674beffcbb6 (patch)
tree15dc62c115180bd428c4ad86f69f5af8de27c0f3 /src/gallium/drivers/vc4/vc4_state.c
parentbd957b1b79124c5061af1eddf16932793e806d87 (diff)
vc4: Update the shadow texture for public textures on every draw.
We don't know who else has written to it, so we'd better update it every time. This makes the gears spin in X again.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_state.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_state.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/drivers/vc4/vc4_state.c b/src/gallium/drivers/vc4/vc4_state.c
index df75b6ec81b..80e963ea2ee 100644
--- a/src/gallium/drivers/vc4/vc4_state.c
+++ b/src/gallium/drivers/vc4/vc4_state.c
@@ -578,13 +578,8 @@ vc4_set_sampler_views(struct pipe_context *pctx, unsigned shader,
vc4->dirty |= VC4_DIRTY_TEXSTATE;
for (i = 0; i < nr; i++) {
- if (views[i]) {
- struct vc4_resource *rsc =
- vc4_resource(views[i]->texture);
+ if (views[i])
new_nr = i + 1;
- if (rsc->shadow_parent)
- vc4_update_shadow_baselevel_texture(pctx, views[i]);
- }
pipe_sampler_view_reference(&stage_tex->textures[i], views[i]);
stage_tex->dirty_samplers |= (1 << i);
}