diff options
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 58501ca8b..ba7b81571 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h | |||
| @@ -24,6 +24,7 @@ enum class RenderTargetFormat : u32 { | |||
| 24 | RGBA8_UNORM = 0xD5, | 24 | RGBA8_UNORM = 0xD5, |
| 25 | RGBA8_SRGB = 0xD6, | 25 | RGBA8_SRGB = 0xD6, |
| 26 | R11G11B10_FLOAT = 0xE0, | 26 | R11G11B10_FLOAT = 0xE0, |
| 27 | R8_UNORM = 0xF3, | ||
| 27 | }; | 28 | }; |
| 28 | 29 | ||
| 29 | enum class DepthFormat : u32 { | 30 | enum class DepthFormat : u32 { |
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index e1d3670d9..ae449ee25 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h | |||
| @@ -194,6 +194,8 @@ struct SurfaceParams { | |||
| 194 | return PixelFormat::R11FG11FB10F; | 194 | return PixelFormat::R11FG11FB10F; |
| 195 | case Tegra::RenderTargetFormat::RGBA32_UINT: | 195 | case Tegra::RenderTargetFormat::RGBA32_UINT: |
| 196 | return PixelFormat::RGBA32UI; | 196 | return PixelFormat::RGBA32UI; |
| 197 | case Tegra::RenderTargetFormat::R8_UNORM: | ||
| 198 | return PixelFormat::R8; | ||
| 197 | default: | 199 | default: |
| 198 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); | 200 | LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); |
| 199 | UNREACHABLE(); | 201 | UNREACHABLE(); |
| @@ -351,6 +353,7 @@ struct SurfaceParams { | |||
| 351 | case Tegra::RenderTargetFormat::RGBA8_SRGB: | 353 | case Tegra::RenderTargetFormat::RGBA8_SRGB: |
| 352 | case Tegra::RenderTargetFormat::BGRA8_UNORM: | 354 | case Tegra::RenderTargetFormat::BGRA8_UNORM: |
| 353 | case Tegra::RenderTargetFormat::RGB10_A2_UNORM: | 355 | case Tegra::RenderTargetFormat::RGB10_A2_UNORM: |
| 356 | case Tegra::RenderTargetFormat::R8_UNORM: | ||
| 354 | return ComponentType::UNorm; | 357 | return ComponentType::UNorm; |
| 355 | case Tegra::RenderTargetFormat::RGBA16_FLOAT: | 358 | case Tegra::RenderTargetFormat::RGBA16_FLOAT: |
| 356 | case Tegra::RenderTargetFormat::R11G11B10_FLOAT: | 359 | case Tegra::RenderTargetFormat::R11G11B10_FLOAT: |