mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
2817ca1aef
commit
0e64252912
3 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
|
|
|
|||
|
|
@ -203,6 +203,7 @@ enum
|
|||
DBG_COMPUTE,
|
||||
DBG_VM,
|
||||
DBG_CACHE_STATS,
|
||||
DBG_IB,
|
||||
|
||||
/* Driver options: */
|
||||
DBG_NO_WC,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue