Mesa (master): radeonsi: do not use cmask with encrypted texture

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon May 11 08:56:10 UTC 2020


Module: Mesa
Branch: master
Commit: c668bdf05cf3aa6907b678c35805962ea79b258b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c668bdf05cf3aa6907b678c35805962ea79b258b

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Thu May  7 21:45:49 2020 +0200

radeonsi: do not use cmask with encrypted texture

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>

---

 src/gallium/drivers/radeonsi/si_clear.c | 4 ++++
 1 file changed, 4 insertions(+)

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)



More information about the mesa-commit mailing list