aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2020-02-25 17:47:14 -0500
committerGitHub <noreply@github.com>2020-02-25 17:47:14 -0500
commit45ac1c62c63ed97dc9d4eacbc42f29e41c061deb (patch)
treea5b6389d647c281bd8cd5bc92b4da4315f3970dc
parent00e3eab9c13e7f7ff4bf2d4d12b152c2257b3de6 (diff)
parent466ce715e4bbd7c4b3889f98e282c1ca4c167e71 (diff)
Merge pull request #3461 from ReinUsesLisp/r32i-rt
video_core/surface: Add R32_SINT render target format
-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 8bb6fc60e4..ba8c9d6655 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 1655ccf16e..9707c353d8 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: