diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-13 05:02:34 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-13 05:08:50 +0200 |
commit | c56a0e3c34f29a439daa3b0df867480fac9780c3 (patch) | |
tree | bcaeea8ff9ededbcf5b370ea4170563c5a94bf55 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #1043 from Subv/timing (diff) | |
download | yuzu-c56a0e3c34f29a439daa3b0df867480fac9780c3.tar yuzu-c56a0e3c34f29a439daa3b0df867480fac9780c3.tar.gz yuzu-c56a0e3c34f29a439daa3b0df867480fac9780c3.tar.bz2 yuzu-c56a0e3c34f29a439daa3b0df867480fac9780c3.tar.lz yuzu-c56a0e3c34f29a439daa3b0df867480fac9780c3.tar.xz yuzu-c56a0e3c34f29a439daa3b0df867480fac9780c3.tar.zst yuzu-c56a0e3c34f29a439daa3b0df867480fac9780c3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 202257b58..ffed66394 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -58,16 +58,17 @@ struct SurfaceParams { RG16S = 32, RGB32F = 33, SRGBA8 = 34, - RG8S = 35, + RG8U = 35, + RG8S = 36, MaxColorFormat, // DepthStencil formats - Z24S8 = 36, - S8Z24 = 37, - Z32F = 38, - Z16 = 39, - Z32FS8 = 40, + Z24S8 = 37, + S8Z24 = 38, + Z32F = 39, + Z16 = 40, + Z32FS8 = 41, MaxDepthStencilFormat, @@ -140,6 +141,7 @@ struct SurfaceParams { 1, // RG16S 1, // RGB32F 1, // SRGBA8 + 1, // RG8U 1, // RG8S 1, // Z24S8 1, // S8Z24 @@ -192,6 +194,7 @@ struct SurfaceParams { 32, // RG16S 96, // RGB32F 32, // SRGBA8 + 16, // RG8U 16, // RG8S 32, // Z24S8 32, // S8Z24 @@ -265,6 +268,8 @@ struct SurfaceParams { return PixelFormat::RG16; case Tegra::RenderTargetFormat::RG16_SNORM: return PixelFormat::RG16S; + case Tegra::RenderTargetFormat::RG8_UNORM: + return PixelFormat::RG8U; case Tegra::RenderTargetFormat::RG8_SNORM: return PixelFormat::RG8S; case Tegra::RenderTargetFormat::R16_FLOAT: @@ -432,6 +437,7 @@ struct SurfaceParams { case Tegra::RenderTargetFormat::RG16_UNORM: case Tegra::RenderTargetFormat::R16_UNORM: case Tegra::RenderTargetFormat::B5G6R5_UNORM: + case Tegra::RenderTargetFormat::RG8_UNORM: return ComponentType::UNorm; case Tegra::RenderTargetFormat::RGBA8_SNORM: case Tegra::RenderTargetFormat::RG16_SNORM: |