summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-25 16:33:09 +0200
committerGitHub <noreply@github.com>2018-07-25 16:33:09 +0200
commitaf787744ab349efd75210c0033259a8a3d7a86d5 (patch)
treef2b3459c68fc1c7b13cdf9e3cd0ca2381144aa49 /src/video_core
parentMerge pull request #814 from Subv/rt_r8 (diff)
parentGPU: Allow using Z32 as a texture format. (diff)
downloadyuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar
yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar.gz
yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar.bz2
yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar.lz
yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar.xz
yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar.zst
yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.zip
Diffstat (limited to 'src/video_core')
-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 ae449ee25..0d660de28 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -246,6 +246,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:
@@ -311,6 +313,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();