winsys/amdgpu: pack amdgpu_winsys_bo::is_shared and protect it by a mutex
authorMarek Olšák <marek.olsak@amd.com>
Wed, 3 Feb 2021 04:52:58 +0000 (23:52 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sat, 6 Feb 2021 05:41:22 +0000 (05:41 +0000)
commitc3778b8fe147e7ac09cc55e3e59c0f642ce5cbc2
tree26cfc6052a4d11688cccb725c325577968e102e5
parentff311df6b54e2cab3c6afa3d00adc0a534b0eb5c
winsys/amdgpu: pack amdgpu_winsys_bo::is_shared and protect it by a mutex

The initialization of abs_timeout fixes a warning that started appearing
with this commit.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8849>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
src/gallium/winsys/amdgpu/drm/amdgpu_bo.h