From 3e95d0fc16c53f3c51b6469c9419d05ca4b3401a Mon Sep 17 00:00:00 2001 From: Link Mauve Date: Sun, 6 Sep 2026 09:04:49 +0200 Subject: [PATCH] Revert "VideoCommon: Use correct size for PE token" This reverts commit e4349ae1791dec688d91c6813eeadf049a8c73ec. The 0x prefix is included in the characters count (unlike e.g. in Rust where there is no 0x prefix), so that commit was wrong. Sorry about that! Fixes regression introduced in #14842. --- Source/Core/VideoCommon/BPStructs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 72b43e8731..180bc86151 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -212,7 +212,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager, XFStateManager& system.GetPixelEngine().SetToken(static_cast(bp.newvalue & 0xFFFF), false, cycles_into_future); } - DEBUG_LOG_FMT(VIDEO, "SetPEToken {:#04X}", bp.newvalue & 0xFFFF); + DEBUG_LOG_FMT(VIDEO, "SetPEToken {:#06X}", bp.newvalue & 0xFFFF); return; } case BPMEM_PE_TOKEN_INT_ID: // Pixel Engine Interrupt Token ID @@ -228,7 +228,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager, XFStateManager& system.GetPixelEngine().SetToken(static_cast(bp.newvalue & 0xFFFF), true, cycles_into_future); } - DEBUG_LOG_FMT(VIDEO, "SetPEToken + INT {:#04X}", bp.newvalue & 0xFFFF); + DEBUG_LOG_FMT(VIDEO, "SetPEToken + INT {:#06X}", bp.newvalue & 0xFFFF); return; }