glsl: fix race in instance getters
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 26 Mar 2020 15:49:05 +0000 (15:49 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Mar 2020 20:17:43 +0000 (20:17 +0000)
commitd101ca3f5ad85731cedbe7ab399d4323cca1aac6
treee6a53d9b49b087a58a33c6d3c77be88d9899eca6
parentf5b14d983e5afa1b8f75e6f3692830a1ee46d1df
glsl: fix race in instance getters

Insertions can modify entry->data. Seems to fix random Fossilize crashes.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Eric Anholt <eric@anholt.net>
CC: <mesa-stable@lists.freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4335>
src/compiler/glsl_types.cpp