zink: add locking for zink_shader::programs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 9 Jun 2021 21:54:06 +0000 (17:54 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 31 Jul 2021 13:56:18 +0000 (13:56 +0000)
commitf5b9d16823a72a4e6bd1cd594f2e8b7729f750bf
treef4010f3e78b9e1234a93cfe216408b65c4082fdb
parent5c8673d67fd9fb9bf8b4bc8392aea7337c17bc69
zink: add locking for zink_shader::programs

shaders are screen objects now with liveshader caching,
so modifications after creation need to be locked

Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12147>
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_compiler.h
src/gallium/drivers/zink/zink_program.c