freedreno: Skip taking the lock for resource usage if it's already flagged.
authorEric Anholt <eric@anholt.net>
Tue, 12 May 2020 16:39:20 +0000 (09:39 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 May 2020 21:42:00 +0000 (21:42 +0000)
commita663c595bc19d627d2fd28081412306b91554d96
treef1b2fb9cd5fecbb7b91fb77edaa0420eba75c155
parent356f99161df36223091cf9721dd49e52cb9e5e3e
freedreno: Skip taking the lock for resource usage if it's already flagged.

Improves nohw drawoverhead 8-ubos update throughput by 13.493% +/-
0.391444% (n=15).

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5011>
src/gallium/drivers/freedreno/freedreno_resource.h