aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2019-05-24 12:08:26 +0200
committerGert Wollny <[email protected]>2019-07-18 05:33:59 +0200
commitfff624fca42ae39322e8f82c262e1b2bb33eea79 (patch)
tree2c6ef6f9f0469ffa860a542f1db792173d3cec84 /src
parent08514a9721144f877d670091de6e6d946a5e73f8 (diff)
softpipe: Also mark textures as dirty when updating the framebuffer state
At this point all the draw caches are flushed to the old attached textures, so the read caches of these textures will need to be updated too. Fixes: dEQP-GLES3.functional.fbo.color.repeated_clear.sample.tex2d.* Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_state_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_surface.c b/src/gallium/drivers/softpipe/sp_state_surface.c
index 1a4bf384b2a..dc4756146d7 100644
--- a/src/gallium/drivers/softpipe/sp_state_surface.c
+++ b/src/gallium/drivers/softpipe/sp_state_surface.c
@@ -97,5 +97,5 @@ softpipe_set_framebuffer_state(struct pipe_context *pipe,
sp->framebuffer.samples = fb->samples;
sp->framebuffer.layers = fb->layers;
- sp->dirty |= SP_NEW_FRAMEBUFFER;
+ sp->dirty |= SP_NEW_FRAMEBUFFER | SP_NEW_TEXTURE;
}