gallium/radeon: clear dirty_level_mask when discarding CMASK
authorMarek Olšák <marek.olsak@amd.com>
Fri, 19 Aug 2016 23:22:39 +0000 (01:22 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 29 Aug 2016 12:23:58 +0000 (14:23 +0200)
This fixes: GL45-CTS.texture_barrier.*

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 9629fbb..e19150b 100644 (file)
@@ -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);