Mesa (master): radeonsi/tmz: allocate depth/stencil buffers as encrypted
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Sep 24 15:06:53 UTC 2020
Module: Mesa
Branch: master
Commit: 131412cc4d09d2853da9e31a30542ddb97d9e678
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=131412cc4d09d2853da9e31a30542ddb97d9e678
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Thu Jul 23 12:40:21 2020 +0200
radeonsi/tmz: allocate depth/stencil buffers as encrypted
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6049>
---
src/gallium/drivers/radeonsi/si_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c
index 3fa6c36b86d..7d6c4d377d2 100644
--- a/src/gallium/drivers/radeonsi/si_buffer.c
+++ b/src/gallium/drivers/radeonsi/si_buffer.c
@@ -167,7 +167,7 @@ void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res,
res->flags |= RADEON_FLAG_NO_INTERPROCESS_SHARING;
if (sscreen->ws->ws_is_secure(sscreen->ws)) {
- if (res->b.b.bind & PIPE_BIND_SCANOUT)
+ if (res->b.b.bind & (PIPE_BIND_SCANOUT | PIPE_BIND_DEPTH_STENCIL))
res->flags |= RADEON_FLAG_ENCRYPTED;
if (res->b.b.flags & PIPE_RESOURCE_FLAG_ENCRYPTED)
res->flags |= RADEON_FLAG_ENCRYPTED;
More information about the mesa-commit
mailing list