radeonsi: update pipe_screen::num_contexts
authorMarek Olšák <marek.olsak@amd.com>
Thu, 11 Feb 2021 20:00:01 +0000 (15:00 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Mar 2021 05:05:39 +0000 (05:05 +0000)
commite6a0f243ea1435e7435e78441184903e84fdcbdb
tree116794a579c6724705303c5868ca6a88b471b223
parent981e55d5300f2bfb7e062d3c8807b9d7c37fd49d
radeonsi: update pipe_screen::num_contexts

This allows skipping mutex locking. Don't take the aux context into account.

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/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h