summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_entrypoints_gen.py
diff options
context:
space:
mode:
authorSimon Hausmann <[email protected]>2018-02-14 12:51:11 +0100
committerTapani Pälli <[email protected]>2018-03-07 14:33:34 +0200
commitfb5825e7ceeb16ac05f870ffe1e5a5daa09e68dd (patch)
tree3ed3fdf3f06f789af7d00fef0f7d14e9cc528064 /src/amd/vulkan/radv_entrypoints_gen.py
parentc17808562e4ff3bcc3c3755a6b5ffbf86b8624ad (diff)
glsl: Fix memory leak with known glsl_type instances
When looking up known glsl_type instances in the various hash tables, we end up leaking the key instances used for the lookup, as the glsl_type constructor allocates memory on the global mem_ctx. This patch changes glsl_type to manage its own memory, which fixes the leak and also allows getting rid of the global mem_ctx and its mutex. v2: remove lambda usage (Tapani) (+keep ASSERT_BITFIELD_SIZE, modify dummy ctor to initialize mem_ctx) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104884 Cc: [email protected] Signed-off-by: Simon Hausmann <[email protected]> Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_entrypoints_gen.py')
0 files changed, 0 insertions, 0 deletions