amdgpu/bo: update uses_secure_bos when importing buffers

Fixes: 90b98c0649 ("amd/tmz: move uses_secure_bos to radeon_winsys")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11449>
(cherry picked from commit a693fbf64b)
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-06-25 17:35:12 +02:00 committed by Dylan Baker
parent 517d22b3f7
commit 797a781ffe
2 changed files with 2 additions and 1 deletions

View file

@ -58,7 +58,7 @@
"description": "amdgpu/bo: update uses_secure_bos when importing buffers",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "90b98c06493f8a9759e5496d5ec91fb60edf7b92"
},

View file

@ -1544,6 +1544,7 @@ static struct pb_buffer *amdgpu_bo_from_handle(struct radeon_winsys *rws,
* if it can be used for scanout.
*/
flags |= RADEON_FLAG_ENCRYPTED;
*((bool*)&rws->uses_secure_bos) = true;
}
/* Initialize the structure. */