summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-24 23:45:16 +0200
committerSubv <subv2112@gmail.com>2018-07-25 16:41:24 +0200
commitee8123bf139842af6c151a755b9f00f3792498e1 (patch)
tree67724cc99d0b69bc65f4e7aee67fcf2bf351b763 /src
parentMerge pull request #816 from Subv/z32_s8 (diff)
downloadyuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar
yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar.gz
yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar.bz2
yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar.lz
yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar.xz
yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.tar.zst
yuzu-ee8123bf139842af6c151a755b9f00f3792498e1.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h4
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 {
return PixelFormat::R32F;
case Tegra::Texture::TextureFormat::ZF32:
return PixelFormat::Z32F;
+ case Tegra::Texture::TextureFormat::Z24S8:
+ return PixelFormat::Z24S8;
case Tegra::Texture::TextureFormat::DXT1:
return PixelFormat::DXT1;
case Tegra::Texture::TextureFormat::DXT23:
@@ -320,6 +322,8 @@ struct SurfaceParams {
return Tegra::Texture::TextureFormat::R16;
case PixelFormat::Z32F:
return Tegra::Texture::TextureFormat::ZF32;
+ case PixelFormat::Z24S8:
+ return Tegra::Texture::TextureFormat::Z24S8;
default:
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
UNREACHABLE();