From 8d70d1ea455f7dbf3a599a4feffd5335cc15efe4 Mon Sep 17 00:00:00 2001 From: Subv Date: Tue, 5 Jun 2018 21:07:40 -0500 Subject: GPU: Allow the usage of RGBA32_FLOAT in the texture copy engine. --- src/video_core/gpu.cpp | 2 ++ src/video_core/gpu.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp index 756518ee7..1c9a523fc 100644 --- a/src/video_core/gpu.cpp +++ b/src/video_core/gpu.cpp @@ -26,6 +26,8 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) { ASSERT(format != RenderTargetFormat::NONE); switch (format) { + case RenderTargetFormat::RGBA32_FLOAT: + return 16; case RenderTargetFormat::RGBA8_UNORM: case RenderTargetFormat::RGB10_A2_UNORM: return 4; diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h index f168a5171..9f8465444 100644 --- a/src/video_core/gpu.h +++ b/src/video_core/gpu.h @@ -15,6 +15,7 @@ namespace Tegra { enum class RenderTargetFormat : u32 { NONE = 0x0, + RGBA32_FLOAT = 0xC0, RGBA16_FLOAT = 0xCA, RGB10_A2_UNORM = 0xD1, RGBA8_UNORM = 0xD5, -- cgit v1.2.3