freedreno/a6xx: Texture cache locking
authorRob Clark <robdclark@chromium.org>
Fri, 23 Oct 2020 21:56:09 +0000 (14:56 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 10 Nov 2020 17:58:44 +0000 (17:58 +0000)
commit1783a156c806829f6a9a2d6426a009e1340eb66e
tree0ed58f7a310c8b344a58b982ee4afcde13c557a4
parent51665dee8c79501a1ccbed2766b3bbaea49b2b39
freedreno/a6xx: Texture cache locking

Originally the tex cache was never touched from other contexts, but
rebind_resource() changed that.  Add some locking to protect tex cache
against multi-threaded access.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7342>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_texture.c
src/gallium/drivers/freedreno/a6xx/fd6_texture.h