summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-25 00:14:59 +0200
committerSubv <subv2112@gmail.com>2018-07-25 02:54:23 +0200
commitf747a7e35d351f420eeab616a8b52483926f935a (patch)
tree170a8a1a87c22e1d1e66dc3f48ae4434a176dc0f /src
parentMerge pull request #806 from lioncash/friend (diff)
downloadyuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar
yuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar.gz
yuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar.bz2
yuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar.lz
yuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar.xz
yuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar.zst
yuzu-f747a7e35d351f420eeab616a8b52483926f935a.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 e1d3670d9..9b2afeace 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -244,6 +244,8 @@ struct SurfaceParams {
UNREACHABLE();
case Tegra::Texture::TextureFormat::R32:
return PixelFormat::R32F;
+ case Tegra::Texture::TextureFormat::ZF32:
+ return PixelFormat::Z32F;
case Tegra::Texture::TextureFormat::DXT1:
return PixelFormat::DXT1;
case Tegra::Texture::TextureFormat::DXT23:
@@ -309,6 +311,8 @@ struct SurfaceParams {
case PixelFormat::R16F:
case PixelFormat::R16UNORM:
return Tegra::Texture::TextureFormat::R16;
+ case PixelFormat::Z32F:
+ return Tegra::Texture::TextureFormat::ZF32;
default:
LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
UNREACHABLE();