diff options
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/gpu.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/gpu.h | 1 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 2 |
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 4f71f99d7..589a59b4f 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -27,6 +27,7 @@ enum class RenderTargetFormat : u32 { | |||
| 27 | RG32_FLOAT = 0xCB, | 27 | RG32_FLOAT = 0xCB, |
| 28 | RG32_UINT = 0xCD, | 28 | RG32_UINT = 0xCD, |
| 29 | BGRA8_UNORM = 0xCF, | 29 | BGRA8_UNORM = 0xCF, |
| 30 | BGRA8_SRGB = 0xD0, | ||
| 30 | RGB10_A2_UNORM = 0xD1, | 31 | RGB10_A2_UNORM = 0xD1, |
| 31 | RGBA8_UNORM = 0xD5, | 32 | RGBA8_UNORM = 0xD5, |
| 32 | RGBA8_SRGB = 0xD6, | 33 | 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: |