diff options
| author | 2018-09-17 09:49:00 -0400 | |
|---|---|---|
| committer | 2018-09-17 09:49:00 -0400 | |
| commit | 3be048e50a2090caf1eeeb2373c7524ecc177ce8 (patch) | |
| tree | 2e1c46294d015e4a634edee7adf0e9f11b4a8320 /src | |
| parent | Merge pull request #1335 from lioncash/copy (diff) | |
| parent | Implement RenderTargetFormat::BGR5A1_UNORM (Pokken Tournament DX) (diff) | |
| download | yuzu-3be048e50a2090caf1eeeb2373c7524ecc177ce8.tar.gz yuzu-3be048e50a2090caf1eeeb2373c7524ecc177ce8.tar.xz yuzu-3be048e50a2090caf1eeeb2373c7524ecc177ce8.zip | |
Merge pull request #1329 from raven02/bgr5a1u
Implement RenderTargetFormat::BGR5A1_UNORM
Diffstat (limited to 'src')
| -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 7329ca766..5cc1e19ca 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 0525e9a94..9e90b7380 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h | |||
| @@ -319,6 +319,8 @@ struct SurfaceParams { | |||
| 319 | return PixelFormat::R11FG11FB10F; | 319 | return PixelFormat::R11FG11FB10F; |
| 320 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: | 320 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: |
| 321 | return PixelFormat::B5G6R5U; | 321 | return PixelFormat::B5G6R5U; |
| 322 | case Tegra::RenderTargetFormat::BGR5A1_UNORM: | ||
| 323 | return PixelFormat::A1B5G5R5U; | ||
| 322 | case Tegra::RenderTargetFormat::RGBA32_UINT: | 324 | case Tegra::RenderTargetFormat::RGBA32_UINT: |
| 323 | return PixelFormat::RGBA32UI; | 325 | return PixelFormat::RGBA32UI; |
| 324 | case Tegra::RenderTargetFormat::R8_UNORM: | 326 | case Tegra::RenderTargetFormat::R8_UNORM: |
| @@ -581,6 +583,7 @@ struct SurfaceParams { | |||
| 581 | case Tegra::RenderTargetFormat::RG16_UNORM: | 583 | case Tegra::RenderTargetFormat::RG16_UNORM: |
| 582 | case Tegra::RenderTargetFormat::R16_UNORM: | 584 | case Tegra::RenderTargetFormat::R16_UNORM: |
| 583 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: | 585 | case Tegra::RenderTargetFormat::B5G6R5_UNORM: |
| 586 | case Tegra::RenderTargetFormat::BGR5A1_UNORM: | ||
| 584 | case Tegra::RenderTargetFormat::RG8_UNORM: | 587 | case Tegra::RenderTargetFormat::RG8_UNORM: |
| 585 | case Tegra::RenderTargetFormat::RGBA16_UNORM: | 588 | case Tegra::RenderTargetFormat::RGBA16_UNORM: |
| 586 | return ComponentType::UNorm; | 589 | return ComponentType::UNorm; |