From 362f8f67989e8e9a9bce3a2bf5e51fd4c0debe5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Mon, 8 May 2017 13:10:02 +0200 Subject: [PATCH] radeonsi: dump compute descriptor lists MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_debug.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index d39b3039346..d08a8fcf0ec 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -497,6 +497,15 @@ static void si_dump_gfx_descriptors(struct si_context *sctx, si_dump_descriptors(sctx, state->cso->type, &state->cso->info, f); } +static void si_dump_compute_descriptors(struct si_context *sctx, FILE *f) +{ + if (!sctx->cs_shader_state.program || + sctx->cs_shader_state.program != sctx->cs_shader_state.emitted_program) + return; + + si_dump_descriptors(sctx, PIPE_SHADER_COMPUTE, NULL, f); +} + struct si_shader_inst { char text[160]; /* one disasm line */ unsigned offset; /* instruction offset */ @@ -800,6 +809,7 @@ static void si_dump_debug_state(struct pipe_context *ctx, FILE *f, si_dump_gfx_descriptors(sctx, &sctx->tes_shader, f); si_dump_gfx_descriptors(sctx, &sctx->gs_shader, f); si_dump_gfx_descriptors(sctx, &sctx->ps_shader, f); + si_dump_compute_descriptors(sctx, f); } if (flags & PIPE_DUMP_LAST_COMMAND_BUFFER) { -- 2.30.2