summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_packing_builtins.cpp
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-12 12:37:00 +0200
committerNicolai Hähnle <[email protected]>2017-06-13 09:35:10 +0200
commitd6ec0aa7edfbe1c86861a4643b6b095a243d24ad (patch)
tree2ba473fec3931c7d4e96cae8b25ea2ce4e23e1fa /src/compiler/glsl/lower_packing_builtins.cpp
parent2e28e8b199abab76fa9509d3247b44a2cb31921d (diff)
glsl: fix a race condition when inserting new types
By splitting glsl_type::mutex into two, we can avoid dropping the hash mutex while creating the new type instance (e.g. struct/record, interface). This fixes a time-of-check/time-of-use race where two threads would simultaneously attempt to create the same type but end up with different instances of glsl_type. Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_packing_builtins.cpp')
0 files changed, 0 insertions, 0 deletions