mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue