From 2853ed1a248d6be1f131a684cddaf4be5a2bb9b6 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 28 Feb 2020 14:25:54 +0100 Subject: [PATCH] radeonsi: allocate framebuffer texture as secure when using tmz MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_buffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c index 6b58aebee2d..f59fd1ac406 100644 --- a/src/gallium/drivers/radeonsi/si_buffer.c +++ b/src/gallium/drivers/radeonsi/si_buffer.c @@ -166,6 +166,10 @@ void si_init_resource_fields(struct si_screen *sscreen, struct si_resource *res, else res->flags |= RADEON_FLAG_NO_INTERPROCESS_SHARING; + if (sscreen->ws->ws_is_secure(sscreen->ws) && + (res->b.b.bind & PIPE_BIND_SCANOUT)) + res->flags |= RADEON_FLAG_ENCRYPTED; + if (sscreen->debug_flags & DBG(NO_WC)) res->flags &= ~RADEON_FLAG_GTT_WC; -- 2.30.2