mesa/main: use p_atomic_inc_return instead of locking
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 10 Jul 2020 11:12:40 +0000 (13:12 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Jul 2020 10:49:22 +0000 (10:49 +0000)
commit3af0711c402033a8ad7649dc0509e4f7ddc1b640
treeb70c4f655a80dd5b3dd9630c6a3b11a9d5aec36a
parenta0f84396913d478c926626593514de1ab6ebb439
mesa/main: use p_atomic_inc_return instead of locking

There's no good reason for using a mutex here, as we have a simpler
primitive; atomic integers. So let's use that instead, to simplify
things a bit.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5901>
src/mesa/main/debug_output.c