From: Marek Olšák Date: Thu, 16 Jul 2015 12:40:00 +0000 (+0200) Subject: radeonsi: always flush framebuffer caches at the beginning of IBs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3e81f819c20dd50d551de9b7e1280b2bd9c18de;p=mesa.git radeonsi: always flush framebuffer caches at the beginning of IBs better safe than sorry Reviewed-by: Michel Dänzer Reviewed-by: Christian König --- diff --git a/src/gallium/drivers/radeonsi/si_hw_context.c b/src/gallium/drivers/radeonsi/si_hw_context.c index 153d3d89f8c..8658056d15e 100644 --- a/src/gallium/drivers/radeonsi/si_hw_context.c +++ b/src/gallium/drivers/radeonsi/si_hw_context.c @@ -164,7 +164,8 @@ void si_context_gfx_flush(void *context, unsigned flags, void si_begin_new_cs(struct si_context *ctx) { /* Flush read caches at the beginning of CS. */ - ctx->b.flags |= SI_CONTEXT_INV_TC_L1 | + ctx->b.flags |= SI_CONTEXT_FLUSH_AND_INV_FRAMEBUFFER | + SI_CONTEXT_INV_TC_L1 | SI_CONTEXT_INV_TC_L2 | SI_CONTEXT_INV_KCACHE | SI_CONTEXT_INV_ICACHE;