1a8088d62b
It was decrementing and then incrementing the refcount in that case. If buffers->buffers[slot] == buffer, there are no atomics. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37566>