diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-08 13:10:02 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-05-10 08:58:53 +0200 |
commit | 362f8f67989e8e9a9bce3a2bf5e51fd4c0debe5b (patch) | |
tree | 6abe338810f16da796b42d207ec71a69baee0f15 /src/gallium/drivers | |
parent | 30267256df591b481ac6dae9a1be21f17a257b6f (diff) |
radeonsi: dump compute descriptor lists
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_debug.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) { |