Enhance description of BPMEM_PRELOAD_MODE in the fifo analyzer

This commit is contained in:
Pokechu22 2023-10-29 19:23:43 -07:00
parent 6bad17b170
commit 2a1d445b30
1 changed files with 10 additions and 2 deletions

View File

@ -2218,7 +2218,7 @@ union CopyFilterCoefficients
union BPU_PreloadTileInfo union BPU_PreloadTileInfo
{ {
BitField<0, 15, u32> count; BitField<0, 15, u32> count;
BitField<15, 2, u32> type; BitField<15, 2, u32> type; // TODO: enum for this?
u32 hex; u32 hex;
}; };
template <> template <>
@ -2228,7 +2228,15 @@ struct fmt::formatter<BPU_PreloadTileInfo>
template <typename FormatContext> template <typename FormatContext>
auto format(const BPU_PreloadTileInfo& info, FormatContext& ctx) const 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);
}
} }
}; };