radeonsi: fix threaded shader compilation finishing after context is destroyed
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit ec6d077351)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39969>
This commit is contained in:
Wei Hao 2024-12-08 08:30:56 +00:00 committed by Dylan Baker
parent da5e1fb4dc
commit 5aeea1683c
2 changed files with 4 additions and 1 deletions

View file

@ -344,7 +344,7 @@
"description": "radeonsi: fix threaded shader compilation finishing after context is destroyed",
"nominated": false,
"nomination_type": 0,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -208,6 +208,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);