drm/amdgpu: add new flag to AMDGPU_CTX_QUERY2
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 24 Apr 2023 17:25:32 +0000 (19:25 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:20:55 +0000 (09:20 -0400)
commit489763af891d5dc35c0b64e18af284d6591286cf
treedeea28a36bd44f86cb9c3b242bb43e12638037ac
parentbafc31166aa7df5fa26ae0ad8196d1717e6cdea9
drm/amdgpu: add new flag to AMDGPU_CTX_QUERY2

OpenGL EXT_robustness extension expects the driver to stop reporting
GUILTY_CONTEXT_RESET when the reset has completed and the GPU is ready
to accept submission again.

This commit adds a AMDGPU_CTX_QUERY2_FLAGS_RESET_IN_PROGRESS flag,
that let the UMD know that the reset is still not finished.

Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22290

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
include/uapi/drm/amdgpu_drm.h