ImGeDebugger: In the textures window, properly write out the status flags.

This commit is contained in:
Henrik Rydgård committed 2026-04-07 11:39:16 -06:00
1 parent 7f53eeff08
commit 6919d8a764
3 files changed
+58 -1

No files matched your search

+55
View File
@@ -3102,3 +3102,58 @@ CheckAlphaResult TextureCacheCommon::CheckCLUTAlpha(const uint8_t *pixelData, GE
return CheckAlpha32((const u32 *)pixelData, w, 0xFF000000);
}
}
std::string TexStatusToString(TexCacheEntry::TexStatus status) {
std::string result;
switch (status & TexCacheEntry::STATUS_MASK) {
case TexCacheEntry::STATUS_HASHING:
result += "HASHING ";
break;
case TexCacheEntry::STATUS_RELIABLE:
result += "RELIABLE ";
break;
case TexCacheEntry::STATUS_UNRELIABLE:
result += "UNRELIABLE ";
break;
}
if (status & TexCacheEntry::STATUS_ALPHA_MASK) {
result += "ALPHA";
}
if (status & TexCacheEntry::STATUS_CLUT_VARIANTS) {
result += "CLUTVARIANTS ";
}
if (status & TexCacheEntry::STATUS_CLUT_RECHECK) {
result += "CLUT_RECHECK ";
}
if (status & TexCacheEntry::STATUS_CHANGE_FREQUENT) {
result += "FREQ ";
}
if (status & TexCacheEntry::STATUS_UNRELIABLE) {
result += "UNREL ";
}
if (status & TexCacheEntry::STATUS_TO_SCALE) {
result += "TOSCALE ";
}
if (status & TexCacheEntry::STATUS_IS_SCALED_OR_REPLACED) {
result += "SCALED/REPL ";
}
if (status & TexCacheEntry::STATUS_NO_MIPS) {
result += "NO_MIPS ";
}
if (status & TexCacheEntry::STATUS_CLUT_GPU) {
result += "CLUT_GPU ";
}
if (status & TexCacheEntry::STATUS_FORCE_REBUILD) {
result += "FORCE_REBUILD ";
}
if (status & TexCacheEntry::STATUS_3D) {
result += "3D ";
}
if (status & TexCacheEntry::STATUS_VIDEO) {
result += "VIDEO ";
}
if (status & TexCacheEntry::STATUS_BGRA) {
result += "BGRA ";
}
return result.empty() ? "None" : result;
}