Mesa (master): radeonsi: dump compute descriptor lists
Nicolai Hähnle
nh at kemper.freedesktop.org
Wed May 10 06:59:32 UTC 2017
Module: Mesa
Branch: master
Commit: 362f8f67989e8e9a9bce3a2bf5e51fd4c0debe5b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=362f8f67989e8e9a9bce3a2bf5e51fd4c0debe5b
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Mon May 8 13:10:02 2017 +0200
radeonsi: dump compute descriptor lists
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
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 d39b303934..d08a8fcf0e 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) {
More information about the mesa-commit
mailing list