diff options
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/gpu.h | 1 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index 589a59b4f..ec83aa1a3 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -42,6 +42,7 @@ enum class RenderTargetFormat : u32 { | |||
| 42 | R32_UINT = 0xE4, | 42 | R32_UINT = 0xE4, |
| 43 | R32_FLOAT = 0xE5, | 43 | R32_FLOAT = 0xE5, |
| 44 | B5G6R5_UNORM = 0xE8, | 44 | B5G6R5_UNORM = 0xE8, |
| 45 | BGR5A1_UNORM = 0xE9, | ||
| 45 | RG8_UNORM = 0xEA, | 46 | RG8_UNORM = 0xEA, |
| 46 | RG8_SNORM = 0xEB, | 47 | RG8_SNORM = 0xEB, |
| 47 | R16_UNORM = 0xEE, | 48 | R16_UNORM = 0xEE, |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 57ea8593b..ef1a15888 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h | |||
| @@ -316,6 +316,8 @@ struct SurfaceParams { | |||
| 316 | return PixelFormat::R11FG11FB10F; | 316 | return PixelFormat::R11FG11FB10F; |
| 317 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: | 317 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: |
| 318 | return PixelFormat::B5G6R5U; | 318 | return PixelFormat::B5G6R5U; |
| 319 | case Tegra::RenderTargetFormat::BGR5A1_UNORM: | ||
| 320 | return PixelFormat::A1B5G5R5U; | ||
| 319 | case Tegra::RenderTargetFormat::RGBA32_UINT: | 321 | case Tegra::RenderTargetFormat::RGBA32_UINT: |
| 320 | return PixelFormat::RGBA32UI; | 322 | return PixelFormat::RGBA32UI; |
| 321 | case Tegra::RenderTargetFormat::R8_UNORM: | 323 | case Tegra::RenderTargetFormat::R8_UNORM: |
| @@ -576,6 +578,7 @@ struct SurfaceParams { | |||
| 576 | case Tegra::RenderTargetFormat::RG16_UNORM: | 578 | case Tegra::RenderTargetFormat::RG16_UNORM: |
| 577 | case Tegra::RenderTargetFormat::R16_UNORM: | 579 | case Tegra::RenderTargetFormat::R16_UNORM: |
| 578 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: | 580 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: |
| 581 | case Tegra::RenderTargetFormat::BGR5A1_UNORM: | ||
| 579 | case Tegra::RenderTargetFormat::RG8_UNORM: | 582 | case Tegra::RenderTargetFormat::RG8_UNORM: |
| 580 | case Tegra::RenderTargetFormat::RGBA16_UNORM: | 583 | case Tegra::RenderTargetFormat::RGBA16_UNORM: |
| 581 | return ComponentType::UNorm; | 584 | return ComponentType::UNorm; |