From: Marek Olšák Date: Fri, 19 Aug 2016 23:22:39 +0000 (+0200) Subject: gallium/radeon: clear dirty_level_mask when discarding CMASK X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed24d79ed712f22ca12a1986a024c522d202dc37;p=mesa.git gallium/radeon: clear dirty_level_mask when discarding CMASK This fixes: GL45-CTS.texture_barrier.* Tested-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 9629fbbccb8..e19150b7900 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -362,6 +362,7 @@ static void r600_texture_discard_cmask(struct r600_common_screen *rscreen, /* Disable CMASK. */ memset(&rtex->cmask, 0, sizeof(rtex->cmask)); rtex->cmask.base_address_reg = rtex->resource.gpu_address >> 8; + rtex->dirty_level_mask = 0; if (rscreen->chip_class >= SI) rtex->cb_color_info &= ~SI_S_028C70_FAST_CLEAR(1);