gallium: add pipe_screen::num_contexts for skipping mutex locking in util_range
authorMarek Olšák <marek.olsak@amd.com>
Thu, 11 Feb 2021 19:59:08 +0000 (14:59 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Mar 2021 05:05:39 +0000 (05:05 +0000)
commit981e55d5300f2bfb7e062d3c8807b9d7c37fd49d
tree631fa6f8a02ffd2a1dd56f8b21c00b14e957fff6
parent728aa749ea7ff7212c2c7bc6ad6844dd2fa50436
gallium: add pipe_screen::num_contexts for skipping mutex locking in util_range

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9356>
src/gallium/auxiliary/util/u_range.h
src/gallium/include/pipe/p_screen.h