diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index a2712aadd3a..f922435a159 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -980,6 +980,9 @@ static void si_destroy_screen(struct pipe_screen *pscreen) si_resource_reference(&sscreen->attribute_ring, NULL); + util_queue_destroy(&sscreen->shader_compiler_queue); + util_queue_destroy(&sscreen->shader_compiler_queue_opt_variants); + for (unsigned i = 0; i < ARRAY_SIZE(sscreen->aux_contexts); i++) { if (!sscreen->aux_contexts[i].ctx) continue; @@ -1002,9 +1005,6 @@ static void si_destroy_screen(struct pipe_screen *pscreen) sscreen->async_compute_context->destroy(sscreen->async_compute_context); } - util_queue_destroy(&sscreen->shader_compiler_queue); - util_queue_destroy(&sscreen->shader_compiler_queue_opt_variants); - /* Release the reference on glsl types of the compiler threads. */ glsl_type_singleton_decref();