radeonsi: disable multi-threading when shader dumps are enabled
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Jul 2016 21:51:05 +0000 (23:51 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 8 Jul 2016 08:59:36 +0000 (10:59 +0200)
Otherwise, shader dumps can become interleaved and unusable.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 94587b296fae64ee690c7af4279e8ae54163abaf..c24130dab9c6f88219aeea163282adbbaf7b3716 100644 (file)
@@ -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