From: Gert Wollny Date: Fri, 24 May 2019 10:08:26 +0000 (+0200) Subject: softpipe: Also mark textures as dirty when updating the framebuffer state X-Git-Tag: upstream/19.3.0~4069 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fff624fca42ae39322e8f82c262e1b2bb33eea79;p=platform%2Fupstream%2Fmesa.git 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 Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/drivers/softpipe/sp_state_surface.c b/src/gallium/drivers/softpipe/sp_state_surface.c index 1a4bf38..dc47561 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; }