Merge pull request #813 from Subv/z24_s8_tex

GPU: Allow the use of Z24S8 as a texture format.
This commit is contained in:
bunnei 2018-07-25 10:25:01 -07:00 committed by GitHub
commit f445464baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,8 @@ struct SurfaceParams {
return PixelFormat::R32F; return PixelFormat::R32F;
case Tegra::Texture::TextureFormat::ZF32: case Tegra::Texture::TextureFormat::ZF32:
return PixelFormat::Z32F; return PixelFormat::Z32F;
case Tegra::Texture::TextureFormat::Z24S8:
return PixelFormat::Z24S8;
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:
@ -320,6 +322,8 @@ struct SurfaceParams {
return Tegra::Texture::TextureFormat::R16; return Tegra::Texture::TextureFormat::R16;
case PixelFormat::Z32F: case PixelFormat::Z32F:
return Tegra::Texture::TextureFormat::ZF32; return Tegra::Texture::TextureFormat::ZF32;
case PixelFormat::Z24S8:
return Tegra::Texture::TextureFormat::Z24S8;
default: default:
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
UNREACHABLE(); UNREACHABLE();