radeonsi: fix threaded shader compilation finishing after context is destroyed

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32538>
This commit is contained in:
Wei Hao 2024-12-08 08:30:56 +00:00 committed by Marge Bot
parent 9da2ebf09c
commit ec6d077351

View file

@ -209,6 +209,9 @@ static void si_destroy_context(struct pipe_context *context)
{
struct si_context *sctx = (struct si_context *)context;
util_queue_finish(&sctx->screen->shader_compiler_queue);
util_queue_finish(&sctx->screen->shader_compiler_queue_opt_variants);
if (context->set_debug_callback)
context->set_debug_callback(context, NULL);