summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeon/radeon_winsys.h
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2021-04-09 18:04:56 +0200
committerMarge Bot <eric+marge@anholt.net>2021-04-14 07:00:00 +0000
commitbc71f689f1f5224d90f01cb8276b68e56107cb43 (patch)
tree574140303264a0b34214293350b370c06b6b2aa3 /src/gallium/drivers/radeon/radeon_winsys.h
parent3a56f06998223ab8f9fc351cd1051d54f3ae6022 (diff)
amdgpu,radeon: add needs_reset param to ctx_query_reset_status
The kernel can do different types of recovery (soft recovery, GPU reset). Since they both increase gpu_reset_counter, this will cause all contexts to report AMDGPU_CTX_QUERY2_FLAGS_RESET, which is a bit misleading: if a single context was soft-recovered, the others are fine and we don't need special processing. This commit uses the AMDGPU_CTX_QUERY2_FLAGS_VRAMLOST to distinguish between the 2 kind of reset and later commits will use this information. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10179>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_winsys.h')
-rw-r--r--src/gallium/drivers/radeon/radeon_winsys.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index f4f26e03328..770f30b47e1 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -491,7 +491,8 @@ struct radeon_winsys {
/**
* Query a GPU reset status.
*/
- enum pipe_reset_status (*ctx_query_reset_status)(struct radeon_winsys_ctx *ctx);
+ enum pipe_reset_status (*ctx_query_reset_status)(struct radeon_winsys_ctx *ctx,
+ bool *needs_reset);
/**
* Create a command stream.