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>
This commit is contained in:

committed by
Marge Bot

parent
3a56f06998
commit
bc71f689f1
@@ -487,7 +487,7 @@ static enum pipe_reset_status r600_get_reset_status(struct pipe_context *ctx)
|
||||
{
|
||||
struct r600_common_context *rctx = (struct r600_common_context *)ctx;
|
||||
|
||||
return rctx->ws->ctx_query_reset_status(rctx->ctx);
|
||||
return rctx->ws->ctx_query_reset_status(rctx->ctx, NULL);
|
||||
}
|
||||
|
||||
static void r600_set_debug_callback(struct pipe_context *ctx,
|
||||
|
Reference in New Issue
Block a user