diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2023-10-29 19:23:43 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2023-11-11 23:32:17 -0800 |
| commit | 2a1d445b306fb0a2380f3a3dbe08ea7e86d8e8a0 (patch) | |
| tree | 661d8caa906053e1ee5f79d59ee74e3d44ffc8ed /Source/Core/VideoCommon | |
| parent | 6bad17b1706940afd616cfc07f3b8c3997bbb515 (diff) | |
Enhance description of BPMEM_PRELOAD_MODE in the fifo analyzer
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/BPMemory.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/BPMemory.h b/Source/Core/VideoCommon/BPMemory.h index c157c1814f..3cb82d35b6 100644 --- a/Source/Core/VideoCommon/BPMemory.h +++ b/Source/Core/VideoCommon/BPMemory.h @@ -2218,7 +2218,7 @@ union CopyFilterCoefficients union BPU_PreloadTileInfo { BitField<0, 15, u32> count; - BitField<15, 2, u32> type; + BitField<15, 2, u32> type; // TODO: enum for this? u32 hex; }; template <> @@ -2228,7 +2228,15 @@ struct fmt::formatter<BPU_PreloadTileInfo> template <typename FormatContext> auto format(const BPU_PreloadTileInfo& info, FormatContext& ctx) const { - return fmt::format_to(ctx.out(), "Type: {}\nCount: {}", info.type, info.count); + if (info.count == 0 && info.type == 0) + { + return fmt::format_to(ctx.out(), "GX_TexModeSync (type and count are both 0)"); + } + else + { + return fmt::format_to(ctx.out(), "Type: {}\nCount: 0x{:x} lines (0x{:x} bytes)", info.type, + info.count, info.count * 32); + } } }; |
