From f747a7e35d351f420eeab616a8b52483926f935a Mon Sep 17 00:00:00 2001 From: Subv Date: Tue, 24 Jul 2018 17:14:59 -0500 Subject: GPU: Allow using Z32 as a texture format. --- src/video_core/renderer_opengl/gl_rasterizer_cache.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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(format)); UNREACHABLE(); -- cgit v1.2.3