[Mesa-dev] [PATCH] radeonsi: don't interleave R600_DEBUG-enabled shader dumps

Nicolai Hähnle nhaehnle at gmail.com
Wed Jul 6 21:55:03 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Only setting R600_DEBUG doesn't set any debug callback. Conversely, the debug
callback is only called when R600_DEBUG is set.
---
 src/gallium/drivers/radeonsi/si_state_shaders.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c
index abbe451..059ff70 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -1324,7 +1324,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
 	pipe_mutex_init(sel->mutex);
 	util_queue_fence_init(&sel->ready);
 
-	if (sctx->b.debug.debug_message ||
+	if (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
-- 
2.7.4



More information about the mesa-dev mailing list