From 534fd7d8dfe573b321bd0953c6ffcaa8809a0644 Mon Sep 17 00:00:00 2001 From: Lywx Date: Tue, 3 Dec 2024 12:33:19 -0600 Subject: [PATCH] Changed format on gfx trace (#730) * Changed format to add more debug * Fixed format --- src/graphic/Fast3D/gfx_pc.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/graphic/Fast3D/gfx_pc.cpp b/src/graphic/Fast3D/gfx_pc.cpp index 52f9041..5d5ce2a 100644 --- a/src/graphic/Fast3D/gfx_pc.cpp +++ b/src/graphic/Fast3D/gfx_pc.cpp @@ -4011,8 +4011,14 @@ static void gfx_step() { #ifdef USE_GBI_TRACE if (cmd->words.trace.valid && CVarGetInteger("gEnableGFXTrace", 0)) { - SPDLOG_INFO("Trace File: {}", cmd->words.trace.file); - SPDLOG_INFO("Trace Line: {}", cmd->words.trace.idx); +#define TRACE \ + "\n====================================\n" \ + " - CMD: {:02X}\n" \ + " - Path: {}:{}\n" \ + " - W0: {:08X}\n" \ + " - W1: {:08X}\n" \ + "====================================" + SPDLOG_INFO(TRACE, (uint8_t)opcode, cmd->words.trace.file, cmd->words.trace.idx, cmd->words.w0, cmd->words.w1); } #endif