From: Pierre-Eric Pelloux-Prayer Date: Thu, 7 May 2020 19:45:49 +0000 (+0200) Subject: radeonsi: do not use cmask with encrypted texture X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c668bdf05cf3aa6907b678c35805962ea79b258b;p=mesa.git radeonsi: do not use cmask with encrypted texture Reviewed-by: Marek Olšák Part-of: --- 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)