summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-06 00:24:13 -0400
committerGravatar GitHub2018-06-06 00:24:13 -0400
commit9a85277d83bfd5a24052b2809c52458e7351e18a (patch)
tree9ed1cc96f8886b4fbd422762d2201519bc44f261
parentMerge pull request #528 from Subv/rg11b10f (diff)
parentGPU: Allow the usage of RGBA16_FLOAT in the texture copy engine. (diff)
downloadyuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.gz
yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.tar.xz
yuzu-9a85277d83bfd5a24052b2809c52458e7351e18a.zip
Merge pull request #527 from Subv/rgba32f_texcopy
GPU: Allow the usage of RGBA32_FLOAT and RGBA16_FLOAT in the texture copy engine.
Diffstat (limited to '')
-rw-r--r--src/video_core/gpu.cpp4
-rw-r--r--src/video_core/gpu.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/gpu.cpp b/src/video_core/gpu.cpp
index 756518ee7..66351fe6e 100644
--- a/src/video_core/gpu.cpp
+++ b/src/video_core/gpu.cpp
@@ -26,6 +26,10 @@ u32 RenderTargetBytesPerPixel(RenderTargetFormat format) {
26 ASSERT(format != RenderTargetFormat::NONE); 26 ASSERT(format != RenderTargetFormat::NONE);
27 27
28 switch (format) { 28 switch (format) {
29 case RenderTargetFormat::RGBA32_FLOAT:
30 return 16;
31 case RenderTargetFormat::RGBA16_FLOAT:
32 return 8;
29 case RenderTargetFormat::RGBA8_UNORM: 33 case RenderTargetFormat::RGBA8_UNORM:
30 case RenderTargetFormat::RGB10_A2_UNORM: 34 case RenderTargetFormat::RGB10_A2_UNORM:
31 return 4; 35 return 4;
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 2762a22ec..5852b9619 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -15,6 +15,7 @@ namespace Tegra {
15 15
16enum class RenderTargetFormat : u32 { 16enum class RenderTargetFormat : u32 {
17 NONE = 0x0, 17 NONE = 0x0,
18 RGBA32_FLOAT = 0xC0,
18 RGBA16_FLOAT = 0xCA, 19 RGBA16_FLOAT = 0xCA,
19 RGB10_A2_UNORM = 0xD1, 20 RGB10_A2_UNORM = 0xD1,
20 RGBA8_UNORM = 0xD5, 21 RGBA8_UNORM = 0xD5,