diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2020-02-28 14:25:54 +0100 |
---|---|---|
committer | Pierre-Eric Pelloux-Prayer <[email protected]> | 2020-05-11 10:25:53 +0200 |
commit | 2853ed1a248d6be1f131a684cddaf4be5a2bb9b6 (patch) | |
tree | 78eb978e944eb9c011b4ba2366435addcb31eba0 /src/gallium | |
parent | 5a67b52de46e42c745af3672767d0271d5425230 (diff) |
radeonsi: allocate framebuffer texture as secure when using tmz
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |