diff options
| author | 2018-07-25 07:33:09 -0700 | |
|---|---|---|
| committer | 2018-07-25 07:33:09 -0700 | |
| commit | af787744ab349efd75210c0033259a8a3d7a86d5 (patch) | |
| tree | f2b3459c68fc1c7b13cdf9e3cd0ca2381144aa49 | |
| parent | Merge pull request #814 from Subv/rt_r8 (diff) | |
| parent | GPU: Allow using Z32 as a texture format. (diff) | |
| download | yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar.gz yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.tar.xz yuzu-af787744ab349efd75210c0033259a8a3d7a86d5.zip | |
Merge pull request #815 from Subv/z32f_tex
GPU: Allow using Z32 as a texture format.
Diffstat (limited to '')
| -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 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 { | |||
| 246 | UNREACHABLE(); | 246 | UNREACHABLE(); |
| 247 | case Tegra::Texture::TextureFormat::R32: | 247 | case Tegra::Texture::TextureFormat::R32: |
| 248 | return PixelFormat::R32F; | 248 | return PixelFormat::R32F; |
| 249 | case Tegra::Texture::TextureFormat::ZF32: | ||
| 250 | return PixelFormat::Z32F; | ||
| 249 | case Tegra::Texture::TextureFormat::DXT1: | 251 | case Tegra::Texture::TextureFormat::DXT1: |
| 250 | return PixelFormat::DXT1; | 252 | return PixelFormat::DXT1; |
| 251 | case Tegra::Texture::TextureFormat::DXT23: | 253 | case Tegra::Texture::TextureFormat::DXT23: |
| @@ -311,6 +313,8 @@ struct SurfaceParams { | |||
| 311 | case PixelFormat::R16F: | 313 | case PixelFormat::R16F: |
| 312 | case PixelFormat::R16UNORM: | 314 | case PixelFormat::R16UNORM: |
| 313 | return Tegra::Texture::TextureFormat::R16; | 315 | return Tegra::Texture::TextureFormat::R16; |
| 316 | case PixelFormat::Z32F: | ||
| 317 | return Tegra::Texture::TextureFormat::ZF32; | ||
| 314 | default: | 318 | default: |
| 315 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); | 319 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); |
| 316 | UNREACHABLE(); | 320 | UNREACHABLE(); |