GPU: Allow using Z32 as a texture format.
This commit is contained in:
parent
340771ccd7
commit
f747a7e35d
|
@ -244,6 +244,8 @@ struct SurfaceParams {
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
case Tegra::Texture::TextureFormat::R32:
|
case Tegra::Texture::TextureFormat::R32:
|
||||||
return PixelFormat::R32F;
|
return PixelFormat::R32F;
|
||||||
|
case Tegra::Texture::TextureFormat::ZF32:
|
||||||
|
return PixelFormat::Z32F;
|
||||||
case Tegra::Texture::TextureFormat::DXT1:
|
case Tegra::Texture::TextureFormat::DXT1:
|
||||||
return PixelFormat::DXT1;
|
return PixelFormat::DXT1;
|
||||||
case Tegra::Texture::TextureFormat::DXT23:
|
case Tegra::Texture::TextureFormat::DXT23:
|
||||||
|
@ -309,6 +311,8 @@ struct SurfaceParams {
|
||||||
case PixelFormat::R16F:
|
case PixelFormat::R16F:
|
||||||
case PixelFormat::R16UNORM:
|
case PixelFormat::R16UNORM:
|
||||||
return Tegra::Texture::TextureFormat::R16;
|
return Tegra::Texture::TextureFormat::R16;
|
||||||
|
case PixelFormat::Z32F:
|
||||||
|
return Tegra::Texture::TextureFormat::ZF32;
|
||||||
default:
|
default:
|
||||||
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
|
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
|
|
Reference in New Issue