radeonsi/tmz: allocate depth/stencil buffers as encrypted

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6049>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-07-23 12:40:21 +02:00
committed by Marge Bot
parent 0a59d2a3e9
commit 131412cc4d

View File

@@ -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;