mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 16:50:34 +01:00
radeonsi: fix threaded shader compilation finishing after context is destroyed
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:
parent
da5e1fb4dc
commit
5aeea1683c
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue