Module: Mesa Branch: staging/22.3 Commit: 0f69a0d530352467534fc50980e2e08eead3d474 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f69a0d530352467534fc50980e2e08eead3d474
Author: Mike Blumenkrantz <[email protected]> Date: Thu Feb 23 08:20:08 2023 -0500 zink: remove suspended queries from list before resuming this avoids double-starting primgen queries from recursion when needs_rast_discard_workaround is true cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21534> (cherry picked from commit 96f7fe71913707886cd779e9b35f6067a32b55e5) --- .pick_status.json | 2 +- src/gallium/drivers/zink/zink_query.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 0f64b6f610b..4f78d9d4d6d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -823,7 +823,7 @@ "description": "zink: remove suspended queries from list before resuming", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c index 67ac1f91550..e9dc921c27e 100644 --- a/src/gallium/drivers/zink/zink_query.c +++ b/src/gallium/drivers/zink/zink_query.c @@ -1070,8 +1070,8 @@ zink_resume_queries(struct zink_context *ctx, struct zink_batch *batch) { struct zink_query *query, *next; LIST_FOR_EACH_ENTRY_SAFE(query, next, &ctx->suspended_queries, active_list) { - begin_query(ctx, batch, query); list_delinit(&query->active_list); + begin_query(ctx, batch, query); } }
