softpipe: Also mark textures as dirty when updating the framebuffer state
authorGert Wollny <gert.wollny@collabora.com>
Fri, 24 May 2019 10:08:26 +0000 (12:08 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Thu, 18 Jul 2019 03:33:59 +0000 (05:33 +0200)
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 <gert.wollny@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/softpipe/sp_state_surface.c

index 1a4bf384b2ae7aba4eb20babaf426caec0f84bb1..dc4756146d74672c4d62dc17fdefd68660e26bbb 100644 (file)
@@ -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;
 }