radeonsi: do not use cmask with encrypted texture

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-05-07 21:45:49 +02:00
parent 8873ea0e25
commit c668bdf05c
+4
View File
@@ -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)