diff options
| author | 2018-07-24 16:45:16 -0500 | |
|---|---|---|
| committer | 2018-07-25 09:41:24 -0500 | |
| commit | ee8123bf139842af6c151a755b9f00f3792498e1 (patch) | |
| tree | 67724cc99d0b69bc65f4e7aee67fcf2bf351b763 /src/video_core | |
| parent | Merge pull request #816 from Subv/z32_s8 (diff) | |
| download | yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar.gz yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar.xz yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.zip | |
GPU: Allow the use of Z24S8 as a texture format.
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 0267dbac6..fc864c56f 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h | |||
| @@ -253,6 +253,8 @@ struct SurfaceParams { | |||
| 253 | return PixelFormat::R32F; | 253 | return PixelFormat::R32F; |
| 254 | case Tegra::Texture::TextureFormat::ZF32: | 254 | case Tegra::Texture::TextureFormat::ZF32: |
| 255 | return PixelFormat::Z32F; | 255 | return PixelFormat::Z32F; |
| 256 | case Tegra::Texture::TextureFormat::Z24S8: | ||
| 257 | return PixelFormat::Z24S8; | ||
| 256 | case Tegra::Texture::TextureFormat::DXT1: | 258 | case Tegra::Texture::TextureFormat::DXT1: |
| 257 | return PixelFormat::DXT1; | 259 | return PixelFormat::DXT1; |
| 258 | case Tegra::Texture::TextureFormat::DXT23: | 260 | case Tegra::Texture::TextureFormat::DXT23: |
| @@ -320,6 +322,8 @@ struct SurfaceParams { | |||
| 320 | return Tegra::Texture::TextureFormat::R16; | 322 | return Tegra::Texture::TextureFormat::R16; |
| 321 | case PixelFormat::Z32F: | 323 | case PixelFormat::Z32F: |
| 322 | return Tegra::Texture::TextureFormat::ZF32; | 324 | return Tegra::Texture::TextureFormat::ZF32; |
| 325 | case PixelFormat::Z24S8: | ||
| 326 | return Tegra::Texture::TextureFormat::Z24S8; | ||
| 323 | default: | 327 | default: |
| 324 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); | 328 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); |
| 325 | UNREACHABLE(); | 329 | UNREACHABLE(); |