radeonsi: add si_print_current_ib function for debugging
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12656>
This commit is contained in:
parent
f28552b804
commit
6cb2f07e90
|
@ -390,6 +390,12 @@ static void si_parse_current_ib(FILE *f, struct radeon_cmdbuf *cs, unsigned begi
|
|||
fprintf(f, "------------------- %s end (dw = %u) -------------------\n\n", name, orig_end);
|
||||
}
|
||||
|
||||
void si_print_current_ib(struct si_context *sctx, FILE *f)
|
||||
{
|
||||
si_parse_current_ib(f, &sctx->gfx_cs, 0, sctx->gfx_cs.prev_dw + sctx->gfx_cs.current.cdw,
|
||||
NULL, 0, "GFX", sctx->chip_class);
|
||||
}
|
||||
|
||||
static void si_log_chunk_type_cs_print(void *data, FILE *f)
|
||||
{
|
||||
struct si_log_chunk_cs *chunk = data;
|
||||
|
|
|
@ -1457,6 +1457,7 @@ void si_init_debug_functions(struct si_context *sctx);
|
|||
void si_check_vm_faults(struct si_context *sctx, struct radeon_saved_cs *saved,
|
||||
enum ring_type ring);
|
||||
bool si_replace_shader(unsigned num, struct si_shader_binary *binary);
|
||||
void si_print_current_ib(struct si_context *sctx, FILE *f);
|
||||
|
||||
/* si_fence.c */
|
||||
void si_cp_release_mem(struct si_context *ctx, struct radeon_cmdbuf *cs, unsigned event,
|
||||
|
|
Loading…
Reference in New Issue