summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-09-09 23:41:37 -0400
committerGravatar bunnei2018-09-10 00:37:52 -0400
commit1c34498368887c3c956539eb094cc337ca594742 (patch)
tree335c628cdc954395db2c22faa9c1a015406b9a06 /src
parentMerge pull request #1281 from bunnei/multi-rt (diff)
downloadyuzu-1c34498368887c3c956539eb094cc337ca594742.tar.gz
yuzu-1c34498368887c3c956539eb094cc337ca594742.tar.xz
yuzu-1c34498368887c3c956539eb094cc337ca594742.zip
gl_rasterizer_cache: Implement RenderTargetFormat::BGRA8_SRGB.
- Used by Octopath Traveler (with multiple render targets).
Diffstat (limited to 'src')
-rw-r--r--src/video_core/gpu.cpp1
-rw-r--r--src/video_core/gpu.h1
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index e6d8e65c6..86a809f86 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -66,6 +66,7 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
66 case RenderTargetFormat::RGBA8_UINT: 66 case RenderTargetFormat::RGBA8_UINT:
67 case RenderTargetFormat::RGB10_A2_UNORM: 67 case RenderTargetFormat::RGB10_A2_UNORM:
68 case RenderTargetFormat::BGRA8_UNORM: 68 case RenderTargetFormat::BGRA8_UNORM:
69 case RenderTargetFormat::BGRA8_SRGB:
69 case RenderTargetFormat::RG16_UNORM: 70 case RenderTargetFormat::RG16_UNORM:
70 case RenderTargetFormat::RG16_SNORM: 71 case RenderTargetFormat::RG16_SNORM:
71 case RenderTargetFormat::RG16_UINT: 72 case RenderTargetFormat::RG16_UINT:
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index d29f31f52..68db05a02 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -26,6 +26,7 @@ enum class RenderTargetFormat : u32 {
26 RG32_FLOAT = 0xCB, 26 RG32_FLOAT = 0xCB,
27 RG32_UINT = 0xCD, 27 RG32_UINT = 0xCD,
28 BGRA8_UNORM = 0xCF, 28 BGRA8_UNORM = 0xCF,
29 BGRA8_SRGB = 0xD0,
29 RGB10_A2_UNORM = 0xD1, 30 RGB10_A2_UNORM = 0xD1,
30 RGBA8_UNORM = 0xD5, 31 RGBA8_UNORM = 0xD5,
31 RGBA8_SRGB = 0xD6, 32 RGBA8_SRGB = 0xD6,
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index e215f260f..e660998d0 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -297,6 +297,7 @@ struct SurfaceParams {
297 return PixelFormat::ABGR8S; 297 return PixelFormat::ABGR8S;
298 case Tegra::RenderTargetFormat::RGBA8_UINT: 298 case Tegra::RenderTargetFormat::RGBA8_UINT:
299 return PixelFormat::ABGR8UI; 299 return PixelFormat::ABGR8UI;
300 case Tegra::RenderTargetFormat::BGRA8_SRGB:
300 case Tegra::RenderTargetFormat::BGRA8_UNORM: 301 case Tegra::RenderTargetFormat::BGRA8_UNORM:
301 return PixelFormat::BGRA8; 302 return PixelFormat::BGRA8;
302 case Tegra::RenderTargetFormat::RGB10_A2_UNORM: 303 case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
@@ -569,6 +570,7 @@ struct SurfaceParams {
569 case Tegra::RenderTargetFormat::RGBA8_UNORM: 570 case Tegra::RenderTargetFormat::RGBA8_UNORM:
570 case Tegra::RenderTargetFormat::RGBA8_SRGB: 571 case Tegra::RenderTargetFormat::RGBA8_SRGB:
571 case Tegra::RenderTargetFormat::BGRA8_UNORM: 572 case Tegra::RenderTargetFormat::BGRA8_UNORM:
573 case Tegra::RenderTargetFormat::BGRA8_SRGB:
572 case Tegra::RenderTargetFormat::RGB10_A2_UNORM: 574 case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
573 case Tegra::RenderTargetFormat::R8_UNORM: 575 case Tegra::RenderTargetFormat::R8_UNORM:
574 case Tegra::RenderTargetFormat::RG16_UNORM: 576 case Tegra::RenderTargetFormat::RG16_UNORM: