diff options
| author | 2018-07-24 17:14:59 -0500 | |
|---|---|---|
| committer | 2018-07-24 19:54:23 -0500 | |
| commit | f747a7e35d351f420eeab616a8b52483926f935a (patch) | |
| tree | 170a8a1a87c22e1d1e66dc3f48ae4434a176dc0f /src | |
| parent | Merge pull request #806 from lioncash/friend (diff) | |
| download | yuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar.gz yuzu-f747a7e35d351f420eeab616a8b52483926f935a.tar.xz yuzu-f747a7e35d351f420eeab616a8b52483926f935a.zip | |
GPU: Allow using Z32 as a texture format.
Diffstat (limited to 'src')
| -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 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 { | |||
| 244 | UNREACHABLE(); | 244 | UNREACHABLE(); |
| 245 | case Tegra::Texture::TextureFormat::R32: | 245 | case Tegra::Texture::TextureFormat::R32: |
| 246 | return PixelFormat::R32F; | 246 | return PixelFormat::R32F; |
| 247 | case Tegra::Texture::TextureFormat::ZF32: | ||
| 248 | return PixelFormat::Z32F; | ||
| 247 | case Tegra::Texture::TextureFormat::DXT1: | 249 | case Tegra::Texture::TextureFormat::DXT1: |
| 248 | return PixelFormat::DXT1; | 250 | return PixelFormat::DXT1; |
| 249 | case Tegra::Texture::TextureFormat::DXT23: | 251 | case Tegra::Texture::TextureFormat::DXT23: |
| @@ -309,6 +311,8 @@ struct SurfaceParams { | |||
| 309 | case PixelFormat::R16F: | 311 | case PixelFormat::R16F: |
| 310 | case PixelFormat::R16UNORM: | 312 | case PixelFormat::R16UNORM: |
| 311 | return Tegra::Texture::TextureFormat::R16; | 313 | return Tegra::Texture::TextureFormat::R16; |
| 314 | case PixelFormat::Z32F: | ||
| 315 | return Tegra::Texture::TextureFormat::ZF32; | ||
| 312 | default: | 316 | default: |
| 313 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); | 317 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); |
| 314 | UNREACHABLE(); | 318 | UNREACHABLE(); |