Преглед изворни кода

GPU: Allow the use of Z24S8 as a texture format.

Subv пре 8 година
родитељ
комит
ee8123bf13
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/video_core/renderer_opengl/gl_rasterizer_cache.h

+ 4 - 0
src/video_core/renderer_opengl/gl_rasterizer_cache.h

@@ -253,6 +253,8 @@ struct SurfaceParams {
             return PixelFormat::R32F;
         case Tegra::Texture::TextureFormat::ZF32:
             return PixelFormat::Z32F;
+        case Tegra::Texture::TextureFormat::Z24S8:
+            return PixelFormat::Z24S8;
         case Tegra::Texture::TextureFormat::DXT1:
             return PixelFormat::DXT1;
         case Tegra::Texture::TextureFormat::DXT23:
@@ -320,6 +322,8 @@ struct SurfaceParams {
             return Tegra::Texture::TextureFormat::R16;
         case PixelFormat::Z32F:
             return Tegra::Texture::TextureFormat::ZF32;
+        case PixelFormat::Z24S8:
+            return Tegra::Texture::TextureFormat::Z24S8;
         default:
             LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
             UNREACHABLE();