From fff624fca42ae39322e8f82c262e1b2bb33eea79 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 24 May 2019 12:08:26 +0200 Subject: [PATCH] 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 --- src/gallium/drivers/softpipe/sp_state_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4