VERY experimental Nintendo Switch 2 emulator
C++
GPU: Allow the usage of R8 as a render target format.
Subv1930980a2699
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.hindex 58501ca8b2..ba7b815719 100644--- a/src/video_core/gpu.h+++ b/src/video_core/gpu.h@@ -24,6 +24,7 @@ enum class RenderTargetFormat : u32 {RGBA8_UNORM = 0xD5,RGBA8_SRGB = 0xD6,R11G11B10_FLOAT = 0xE0,+ R8_UNORM = 0xF3,};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.hindex e1d3670d9c..ae449ee254 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 {return PixelFormat::R11FG11FB10F;case Tegra::RenderTargetFormat::RGBA32_UINT:return PixelFormat::RGBA32UI;+ case Tegra::RenderTargetFormat::R8_UNORM:+ return PixelFormat::R8;default:LOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));UNREACHABLE();@@ -351,6 +353,7 @@ struct SurfaceParams {case Tegra::RenderTargetFormat::RGBA8_SRGB:case Tegra::RenderTargetFormat::BGRA8_UNORM:case Tegra::RenderTargetFormat::RGB10_A2_UNORM:+ case Tegra::RenderTargetFormat::R8_UNORM:return ComponentType::UNorm;case Tegra::RenderTargetFormat::RGBA16_FLOAT:case Tegra::RenderTargetFormat::R11G11B10_FLOAT: