summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_debug.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-01-01 16:47:12 +0100
committerBas Nieuwenhuizen <[email protected]>2017-01-09 21:44:08 +0100
commit8cb60c7dd3cb608615d3e5f89ad4198c0babdb3d (patch)
tree0a5a7651fced7daf712da778e22637529832b0e8 /src/gallium/drivers/radeonsi/si_debug.c
parent97dfff54105ac10b6e2daace020687eefdcc28c0 (diff)
ac/debug: Dump indirect buffers.
This is for handling chained command buffers and secondary command buffers. It doesn't handle the trace id for secondary command buffers yet, but I don't think that is possible in general with just writes, as we could call a secondary command buffer multiple times. I think this is good enough for now, as the most useful case is the chaining when we grow an IB. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_debug.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_debug.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c
index 43fc9c1f3e0..cc3617f1659 100644
--- a/src/gallium/drivers/radeonsi/si_debug.c
+++ b/src/gallium/drivers/radeonsi/si_debug.c
@@ -221,15 +221,18 @@ static void si_dump_last_ib(struct si_context *sctx, FILE *f)
if (sctx->init_config)
ac_parse_ib(f, sctx->init_config->pm4, sctx->init_config->ndw,
- -1, "IB2: Init config", sctx->b.chip_class);
+ -1, "IB2: Init config", sctx->b.chip_class,
+ NULL, NULL);
if (sctx->init_config_gs_rings)
ac_parse_ib(f, sctx->init_config_gs_rings->pm4,
sctx->init_config_gs_rings->ndw,
- -1, "IB2: Init GS rings", sctx->b.chip_class);
+ -1, "IB2: Init GS rings", sctx->b.chip_class,
+ NULL, NULL);
ac_parse_ib(f, sctx->last_gfx.ib, sctx->last_gfx.num_dw,
- last_trace_id, "IB", sctx->b.chip_class);
+ last_trace_id, "IB", sctx->b.chip_class,
+ NULL, NULL);
}
static const char *priority_to_string(enum radeon_bo_priority priority)