diff options
author | Marek Olšák <[email protected]> | 2016-08-20 01:22:39 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-08-29 14:23:58 +0200 |
commit | ed24d79ed712f22ca12a1986a024c522d202dc37 (patch) | |
tree | 4115b9c044cc1e02daad36ab7e9b09b8af592b0f /src | |
parent | d301efb400accee1c6be790756d80957c7d04754 (diff) |
gallium/radeon: clear dirty_level_mask when discarding CMASK
This fixes: GL45-CTS.texture_barrier.*
Tested-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |