texture_cache: detiler: more verbosity in print
This commit is contained in:
parent
cfc297622f
commit
e790ec775f
|
@ -86,11 +86,27 @@ constexpr std::string_view NameOf(ImageType type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
enum class TilingMode : u32 {
|
enum class TilingMode : u32 {
|
||||||
|
Depth_MicroTiled = 0x5u,
|
||||||
Display_Linear = 0x8u,
|
Display_Linear = 0x8u,
|
||||||
Display_MacroTiled = 0xAu,
|
Display_MacroTiled = 0xAu,
|
||||||
Texture_MicroTiled = 0xDu,
|
Texture_MicroTiled = 0xDu,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
constexpr std::string_view NameOf(TilingMode type) {
|
||||||
|
switch (type) {
|
||||||
|
case TilingMode::Depth_MicroTiled:
|
||||||
|
return "Depth_MicroTiled";
|
||||||
|
case TilingMode::Display_Linear:
|
||||||
|
return "Display_Linear";
|
||||||
|
case TilingMode::Display_MacroTiled:
|
||||||
|
return "Display_MacroTiled";
|
||||||
|
case TilingMode::Texture_MicroTiled:
|
||||||
|
return "Texture_MicroTiled";
|
||||||
|
default:
|
||||||
|
return "Unknown";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
struct Image {
|
struct Image {
|
||||||
union {
|
union {
|
||||||
BitField<0, 38, u64> base_address;
|
BitField<0, 38, u64> base_address;
|
||||||
|
|
|
@ -299,8 +299,8 @@ bool TileManager::TryDetile(Image& image) {
|
||||||
|
|
||||||
const auto* detiler = GetDetiler(image);
|
const auto* detiler = GetDetiler(image);
|
||||||
if (!detiler) {
|
if (!detiler) {
|
||||||
LOG_ERROR(Render_Vulkan, "Unsupported tiled image: {} {}",
|
LOG_ERROR(Render_Vulkan, "Unsupported tiled image: {} ({})",
|
||||||
vk::to_string(image.info.pixel_format), static_cast<u32>(image.info.tiling_mode));
|
vk::to_string(image.info.pixel_format), NameOf(image.info.tiling_mode));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue