radeonsi: add AMD_DEBUG=ib to print IBs

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12812>
This commit is contained in:
Marek Olšák 2021-08-21 18:01:49 -04:00 committed by Marge Bot
parent 2817ca1aef
commit 0e64252912
3 changed files with 5 additions and 0 deletions

View file

@ -133,6 +133,9 @@ void si_flush_gfx_cs(struct si_context *ctx, unsigned flags, struct pipe_fence_h
si_log_hw_flush(ctx);
}
if (sscreen->debug_flags & DBG(IB))
si_print_current_ib(ctx, stderr);
if (ctx->is_noop)
flags |= RADEON_FLUSH_NOOP;

View file

@ -81,6 +81,7 @@ static const struct debug_named_value radeonsi_debug_options[] = {
{"compute", DBG(COMPUTE), "Print compute info"},
{"vm", DBG(VM), "Print virtual addresses when creating resources"},
{"cache_stats", DBG(CACHE_STATS), "Print shader cache statistics."},
{"ib", DBG(IB), "Print command buffers."},
/* Driver options: */
{"nowc", DBG(NO_WC), "Disable GTT write combining"},

View file

@ -203,6 +203,7 @@ enum
DBG_COMPUTE,
DBG_VM,
DBG_CACHE_STATS,
DBG_IB,
/* Driver options: */
DBG_NO_WC,