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 <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11399>
This commit is contained in:
Mike Blumenkrantz 2021-05-07 08:15:43 -04:00 committed by Marge Bot
parent 559f534e11
commit 50cfe0dbd1
1 changed files with 1 additions and 1 deletions

View File

@ -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