zink: remove atomics from zink_query

this is never accessed from threads anymore and
hasn't been for a long time

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22493>
(cherry picked from commit cb83606279)
This commit is contained in:
Mike Blumenkrantz 2023-04-13 16:54:38 -04:00 committed by Eric Engestrom
parent 61d1cdba6e
commit f3969bf7df
2 changed files with 3 additions and 3 deletions

View file

@ -733,7 +733,7 @@
"description": "zink: remove atomics from zink_query",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -549,7 +549,7 @@ zink_destroy_query(struct pipe_context *pctx,
* otherwise just mark dead and wait
*/
if (query->batch_uses) {
p_atomic_set(&query->dead, true);
query->dead = true;
return;
}
@ -562,7 +562,7 @@ zink_prune_query(struct zink_screen *screen, struct zink_batch_state *bs, struct
if (!zink_batch_usage_matches(query->batch_uses, bs))
return;
query->batch_uses = NULL;
if (p_atomic_read(&query->dead))
if (query->dead)
destroy_query(screen, query);
}