Module: Mesa Branch: main Commit: a693fbf64b84ed6364984c45dc3255b71063c6dc URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a693fbf64b84ed6364984c45dc3255b71063c6dc
Author: Pierre-Eric Pelloux-Prayer <[email protected]> Date: Fri Jun 25 17:35:12 2021 +0200 amdgpu/bo: update uses_secure_bos when importing buffers Fixes: 90b98c06493 ("amd/tmz: move uses_secure_bos to radeon_winsys") Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11449> --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c index d9d3dac67d7..b8825ac53bc 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c @@ -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. */
