zink: don't double suspend queries

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21534>
This commit is contained in:
Mike Blumenkrantz 2023-02-22 12:13:05 -05:00 committed by Marge Bot
parent 9d0c3d3fb1
commit 74a65363ea

View file

@ -1092,6 +1092,8 @@ zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch)
{
set_foreach(&batch->state->active_queries, entry) {
struct zink_query *query = (void*)entry->key;
if (query->suspended)
continue;
if (query->active && !is_time_query(query)) {
/* the fence is going to steal the set off the batch, so we have to copy
* the active queries onto a list