summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h2
-rw-r--r--src/yuzu/debugger/graphics/graphics_surface.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index e4cb3390f..bf0fabb29 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -106,6 +106,8 @@ struct SurfaceParams {
106 switch (format) { 106 switch (format) {
107 case Tegra::RenderTargetFormat::RGBA8_UNORM: 107 case Tegra::RenderTargetFormat::RGBA8_UNORM:
108 return PixelFormat::ABGR8; 108 return PixelFormat::ABGR8;
109 case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
110 return PixelFormat::A2B10G10R10;
109 default: 111 default:
110 NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format)); 112 NGLOG_CRITICAL(HW_GPU, "Unimplemented format={}", static_cast<u32>(format));
111 UNREACHABLE(); 113 UNREACHABLE();
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp
index 1e4844b57..5fada74be 100644
--- a/src/yuzu/debugger/graphics/graphics_surface.cpp
+++ b/src/yuzu/debugger/graphics/graphics_surface.cpp
@@ -25,6 +25,8 @@ static Tegra::Texture::TextureFormat ConvertToTextureFormat(
25 switch (render_target_format) { 25 switch (render_target_format) {
26 case Tegra::RenderTargetFormat::RGBA8_UNORM: 26 case Tegra::RenderTargetFormat::RGBA8_UNORM:
27 return Tegra::Texture::TextureFormat::A8R8G8B8; 27 return Tegra::Texture::TextureFormat::A8R8G8B8;
28 case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
29 return Tegra::Texture::TextureFormat::A2B10G10R10;
28 default: 30 default:
29 UNIMPLEMENTED_MSG("Unimplemented RT format"); 31 UNIMPLEMENTED_MSG("Unimplemented RT format");
30 } 32 }