diff options
author | Eric Anholt <[email protected]> | 2015-04-14 11:31:11 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-04-15 16:50:23 -0700 |
commit | 3a728d4dfbd727c30f36116772803674beffcbb6 (patch) | |
tree | 15dc62c115180bd428c4ad86f69f5af8de27c0f3 /src/gallium/drivers/vc4/vc4_resource.c | |
parent | bd957b1b79124c5061af1eddf16932793e806d87 (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_resource.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 94bab9934e7..3f180d5845d 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -583,7 +583,7 @@ vc4_update_shadow_baselevel_texture(struct pipe_context *pctx, struct vc4_resource *orig = vc4_resource(shadow->shadow_parent); assert(orig); - if (shadow->writes == orig->writes) + if (shadow->writes == orig->writes && orig->bo->private) return; perf_debug("Updating shadow texture due to %s\n", |