aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2020-05-07 21:45:49 +0200
committerPierre-Eric Pelloux-Prayer <[email protected]>2020-05-11 10:26:05 +0200
commitc668bdf05cf3aa6907b678c35805962ea79b258b (patch)
tree4793e814728b861eebf1aa53719f6850d3046373 /src
parent8873ea0e253b90eb91da514e36bd845d6a5f9734 (diff)
radeonsi: do not use cmask with encrypted texture
Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_clear.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c
index 096680ccdac..e96903d24ef 100644
--- a/src/gallium/drivers/radeonsi/si_clear.c
+++ b/src/gallium/drivers/radeonsi/si_clear.c
@@ -503,6 +503,10 @@ static void si_do_fast_color_clear(struct si_context *sctx, unsigned *buffers,
if (sctx->family == CHIP_STONEY)
continue;
+ /* Disable fast clear if tex is encrypted */
+ if (tex->buffer.flags & RADEON_FLAG_ENCRYPTED)
+ continue;
+
/* ensure CMASK is enabled */
si_alloc_separate_cmask(sctx->screen, tex);
if (!tex->cmask_buffer)