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:
parent
559f534e11
commit
50cfe0dbd1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue