From 50cfe0dbd1ca6578ab8b307cb6d9dca56509e3e6 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 7 May 2021 08:15:43 -0400 Subject: [PATCH] zink: remove atomic from batch usage setting this shouldn't be necessary since usage can only be set from the context thread and only needs to be accessed atomically for the cmpxchg when unsetting Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_batch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_batch.h b/src/gallium/drivers/zink/zink_batch.h index 1314db68b66..b1e913c67eb 100644 --- a/src/gallium/drivers/zink/zink_batch.h +++ b/src/gallium/drivers/zink/zink_batch.h @@ -183,7 +183,7 @@ zink_batch_usage_unset(struct zink_batch_usage *u, uint32_t batch_id) static inline void zink_batch_usage_set(struct zink_batch_usage *u, uint32_t batch_id) { - p_atomic_set(&u->usage, batch_id); + u->usage = batch_id; } static inline bool