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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user