Better surface logging

This commit is contained in:
Alessio 2024-03-16 13:08:01 +00:00 committed by Levi Akatsuki
parent c74679edf3
commit 44ffa0092e

View file

@ -47,7 +47,7 @@ bool SurfaceTargetIsLayered(SurfaceTarget target) {
case SurfaceTarget::TextureCubeArray:
return true;
default:
LOG_CRITICAL(HW_GPU, "Unimplemented surface_target={}", target);
LOG_CRITICAL(HW_GPU, "Unimplemented layered surface_target={}", target);
ASSERT(false);
return false;
}
@ -66,7 +66,7 @@ bool SurfaceTargetIsArray(SurfaceTarget target) {
case SurfaceTarget::TextureCubeArray:
return true;
default:
LOG_CRITICAL(HW_GPU, "Unimplemented surface_target={}", target);
LOG_CRITICAL(HW_GPU, "Unimplemented array surface_target={}", target);
ASSERT(false);
return false;
}
@ -89,7 +89,7 @@ PixelFormat PixelFormatFromDepthFormat(Tegra::DepthFormat format) {
case Tegra::DepthFormat::X8Z24_UNORM:
return PixelFormat::X8_D24_UNORM;
default:
UNIMPLEMENTED_MSG("Unimplemented format={}", format);
UNIMPLEMENTED_MSG("Unimplemented depth format={}", format);
return PixelFormat::S8_UINT_D24_UNORM;
}
}
@ -197,7 +197,7 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format)
case Tegra::RenderTargetFormat::R8_UINT:
return PixelFormat::R8_UINT;
default:
UNIMPLEMENTED_MSG("Unimplemented format={}", format);
UNIMPLEMENTED_MSG("Unimplemented render target format={}", format);
return PixelFormat::A8B8G8R8_UNORM;
}
}
@ -212,7 +212,7 @@ PixelFormat PixelFormatFromGPUPixelFormat(Service::android::PixelFormat format)
case Service::android::PixelFormat::Bgra8888:
return PixelFormat::B8G8R8A8_UNORM;
default:
UNIMPLEMENTED_MSG("Unimplemented format={}", format);
UNIMPLEMENTED_MSG("Unimplemented android pixel format={}", format);
return PixelFormat::A8B8G8R8_UNORM;
}
}