summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-09 05:43:04 +0200
committerGitHub <noreply@github.com>2018-08-09 05:43:04 +0200
commitc333bfc1934f697026788f9cab365eb738d13775 (patch)
treefe8af6ff13b2d1b13dbb4693fb5986b159a28f98
parentMerge pull request #987 from lioncash/vec (diff)
parentgl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM. (diff)
downloadyuzu-c333bfc1934f697026788f9cab365eb738d13775.tar
yuzu-c333bfc1934f697026788f9cab365eb738d13775.tar.gz
yuzu-c333bfc1934f697026788f9cab365eb738d13775.tar.bz2
yuzu-c333bfc1934f697026788f9cab365eb738d13775.tar.lz
yuzu-c333bfc1934f697026788f9cab365eb738d13775.tar.xz
yuzu-c333bfc1934f697026788f9cab365eb738d13775.tar.zst
yuzu-c333bfc1934f697026788f9cab365eb738d13775.zip
-rw-r--r--src/video_core/gpu.h1
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 440505c9d..874eddd78 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -34,6 +34,7 @@ enum class RenderTargetFormat : u32 {
RG16_FLOAT = 0xDE,
R11G11B10_FLOAT = 0xE0,
R32_FLOAT = 0xE5,
+ B5G6R5_UNORM = 0xE8,
R16_FLOAT = 0xF2,
R8_UNORM = 0xF3,
};
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
index 0c6652c7a..4168129f9 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h
@@ -221,6 +221,8 @@ struct SurfaceParams {
return PixelFormat::RG32F;
case Tegra::RenderTargetFormat::R11G11B10_FLOAT:
return PixelFormat::R11FG11FB10F;
+ case Tegra::RenderTargetFormat::B5G6R5_UNORM:
+ return PixelFormat::B5G6R5;
case Tegra::RenderTargetFormat::RGBA32_UINT:
return PixelFormat::RGBA32UI;
case Tegra::RenderTargetFormat::R8_UNORM:
@@ -441,6 +443,7 @@ struct SurfaceParams {
case Tegra::RenderTargetFormat::RGB10_A2_UNORM:
case Tegra::RenderTargetFormat::R8_UNORM:
case Tegra::RenderTargetFormat::RG16_UNORM:
+ case Tegra::RenderTargetFormat::B5G6R5_UNORM:
return ComponentType::UNorm;
case Tegra::RenderTargetFormat::RG16_SNORM:
return ComponentType::SNorm;