diff options
author | Subv <subv2112@gmail.com> | 2018-07-24 23:47:50 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-25 02:49:36 +0200 |
commit | 4f574201ea31b189b09cb0b52d9fc03f3db82b37 (patch) | |
tree | 90a9a7149afa5c1dd14bae3ce60ec8e091565a5d /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #806 from lioncash/friend (diff) | |
download | yuzu-4f574201ea31b189b09cb0b52d9fc03f3db82b37.tar yuzu-4f574201ea31b189b09cb0b52d9fc03f3db82b37.tar.gz yuzu-4f574201ea31b189b09cb0b52d9fc03f3db82b37.tar.bz2 yuzu-4f574201ea31b189b09cb0b52d9fc03f3db82b37.tar.lz yuzu-4f574201ea31b189b09cb0b52d9fc03f3db82b37.tar.xz yuzu-4f574201ea31b189b09cb0b52d9fc03f3db82b37.tar.zst yuzu-4f574201ea31b189b09cb0b52d9fc03f3db82b37.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 3 |
1 files changed, 3 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..ae449ee25 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -194,6 +194,8 @@ struct SurfaceParams { return PixelFormat::R11FG11FB10F; case Tegra::RenderTargetFormat::RGBA32_UINT: return PixelFormat::RGBA32UI; + case Tegra::RenderTargetFormat::R8_UNORM: + return PixelFormat::R8; default: LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); UNREACHABLE(); @@ -351,6 +353,7 @@ struct SurfaceParams { case Tegra::RenderTargetFormat::RGBA8_SRGB: case Tegra::RenderTargetFormat::BGRA8_UNORM: case Tegra::RenderTargetFormat::RGB10_A2_UNORM: + case Tegra::RenderTargetFormat::R8_UNORM: return ComponentType::UNorm; case Tegra::RenderTargetFormat::RGBA16_FLOAT: case Tegra::RenderTargetFormat::R11G11B10_FLOAT: |