diff options
author | Tapani Pälli <[email protected]> | 2019-08-06 13:10:10 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-08-06 16:31:31 +0300 |
commit | 83815a97d52f458b1186c5057caf44ed9cc6ea3e (patch) | |
tree | a2c6ba0aed27259a28e5df9697786e9480e163d8 /src | |
parent | 59cb919ff207a8a54dd7a11f408dcbb37541331a (diff) |
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: 624789e3708c ("compiler/glsl: handle case where we have multiple users for types")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110796
Signed-off-by: Tapani Pälli <[email protected]>
Acked-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 92c495f716f..ad5ce8a1988 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -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(); |