summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-02-25 21:19:34 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-25 21:19:34 +0100
commit466ce715e4bbd7c4b3889f98e282c1ca4c167e71 (patch)
tree82f45c5fc23e4ffe23be8fa6e100d82b859b4d98 /src
parentMerge pull request #3417 from ReinUsesLisp/r32i (diff)
downloadyuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar.gz
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar.bz2
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar.lz
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar.xz
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.tar.zst
yuzu-466ce715e4bbd7c4b3889f98e282c1ca4c167e71.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/gpu.h1
-rw-r--r--src/video_core/surface.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 07727210c..d220327f5 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -57,6 +57,7 @@ enum class RenderTargetFormat : u32 {
RG16_UINT = 0xDD,
RG16_FLOAT = 0xDE,
R11G11B10_FLOAT = 0xE0,
+ R32_SINT = 0xE3,
R32_UINT = 0xE4,
R32_FLOAT = 0xE5,
B5G6R5_UNORM = 0xE8,
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index 1655ccf16..9707c353d 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -155,6 +155,8 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format)
return PixelFormat::R16I;
case Tegra::RenderTargetFormat::R32_FLOAT:
return PixelFormat::R32F;
+ case Tegra::RenderTargetFormat::R32_SINT:
+ return PixelFormat::R32I;
case Tegra::RenderTargetFormat::R32_UINT:
return PixelFormat::R32UI;
case Tegra::RenderTargetFormat::RG32_UINT: