mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
radeonsi: allocate framebuffer texture as secure when using tmz
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
This commit is contained in:
parent
5a67b52de4
commit
2853ed1a24
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue