Commit 83815a97 authored by Tapani Pälli's avatar Tapani Pälli

mesa: add glsl_type ref to one_time_init and decref to atexit

This fixes problems spotted within vk-gl-cts. Problem is that the builtin
functions refer to types and we should not release types before builtins
are released.

Fixes: 624789e3 ("compiler/glsl: handle case where we have multiple users for types")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110796Signed-off-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
Acked-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 59cb919f
Pipeline #53933 passed with stages
in 38 minutes and 35 seconds
......@@ -361,6 +361,7 @@ static void
one_time_fini(void)
{
_mesa_destroy_shader_compiler();
_mesa_destroy_shader_compiler_types();
_mesa_locale_fini();
}
......@@ -393,6 +394,8 @@ one_time_init( struct gl_context *ctx )
_mesa_locale_init();
_mesa_init_shader_compiler_types();
_mesa_one_time_init_extension_overrides(ctx);
_mesa_get_cpu_features();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment