From 04d93ea61968b5f163ad37048f07929c55c278e9 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Wed, 6 Jul 2016 23:51:05 +0200 Subject: radeonsi: disable multi-threading when shader dumps are enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise, shader dumps can become interleaved and unusable. Reviewed-by: Edward O'Callaghan Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_state_shaders.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium') diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 94587b296fa..c24130dab9c 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 -- cgit v1.2.3