radv: Implement vk.check_status
authorAndré Almeida <andrealmeid@igalia.com>
Sat, 1 Apr 2023 22:57:52 +0000 (19:57 -0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Apr 2023 13:50:36 +0000 (13:50 +0000)
commitad4a72c11e571927b68a73a03a66ffd786b1e23d
treeee25450dbd629b1c2e7cc0902d2b85e32fb57d09
parentc8949db0cc3732a816829dc41638a1e17f143780
radv: Implement vk.check_status

Implement check_status function so the driver can check if the GPU has
been reset by the application, and thus if it's still available.

AMDGPU_CTX_QUERY ioctls work by asking amdgpu if this context was the
cause of a previous GPU reset.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22253>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c