mesa: fix locking when destroying/overwriting/adding display lists
authorMarek Olšák <marek.olsak@amd.com>
Fri, 22 Oct 2021 19:15:35 +0000 (15:15 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 29 Oct 2021 07:33:50 +0000 (07:33 +0000)
commit4a26f57103088fc151b74d1b0bfc77201a632fb9
tree1bfc44d0470e3b530d0343508d1901afc73c9076
parentc494cfb1dd0c1fd2d29e98365a727797363119d8
mesa: fix locking when destroying/overwriting/adding display lists

We need to hold the lock when calling destroy_list and doing
_mesa_HashInsertLocked in EndList.

So move the locking out of destroy_list.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13506>
src/mesa/main/dlist.c