From: Nicolai Hähnle Date: Wed, 6 Jul 2016 21:51:05 +0000 (+0200) Subject: radeonsi: disable multi-threading when shader dumps are enabled X-Git-Tag: upstream/17.1.0~8220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04d93ea61968b5f163ad37048f07929c55c278e9;p=platform%2Fupstream%2Fmesa.git radeonsi: disable multi-threading when shader dumps are enabled Otherwise, shader dumps can become interleaved and unusable. Reviewed-by: Edward O'Callaghan Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 94587b2..c24130d 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -1325,6 +1325,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx, util_queue_fence_init(&sel->ready); if ((sctx->b.debug.debug_message && !sctx->b.debug.async) || + r600_can_dump_shader(&sscreen->b, sel->info.processor) || !util_queue_is_initialized(&sscreen->shader_compiler_queue)) si_init_shader_selector_async(sel, -1); else