summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-14 20:47:58 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-07-07 21:05:56 +0200
commitd0966b9f7ceac5a82e54b76d896cbf44f64749ea (patch)
tree8a291be414f72eddd5af27c8eb734f0ffb4111b5 /src/video_core/shader/decode
parentMerge pull request #2674 from lioncash/reporter (diff)
downloadyuzu-d0966b9f7ceac5a82e54b76d896cbf44f64749ea.tar
yuzu-d0966b9f7ceac5a82e54b76d896cbf44f64749ea.tar.gz
yuzu-d0966b9f7ceac5a82e54b76d896cbf44f64749ea.tar.bz2
yuzu-d0966b9f7ceac5a82e54b76d896cbf44f64749ea.tar.lz
yuzu-d0966b9f7ceac5a82e54b76d896cbf44f64749ea.tar.xz
yuzu-d0966b9f7ceac5a82e54b76d896cbf44f64749ea.tar.zst
yuzu-d0966b9f7ceac5a82e54b76d896cbf44f64749ea.zip
Diffstat (limited to 'src/video_core/shader/decode')
-rw-r--r--src/video_core/shader/decode/texture.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp
index cb480be9b..323be3f14 100644
--- a/src/video_core/shader/decode/texture.cpp
+++ b/src/video_core/shader/decode/texture.cpp
@@ -269,7 +269,13 @@ u32 ShaderIR::DecodeTexture(NodeBlock& bb, u32 pc) {
LOG_WARNING(HW_GPU, "TLDS.NODEP implementation is incomplete");
}
- WriteTexsInstructionFloat(bb, instr, GetTldsCode(instr, texture_type, is_array));
+ const Node4 components = GetTldsCode(instr, texture_type, is_array);
+
+ if (instr.tlds.fp32_flag) {
+ WriteTexsInstructionFloat(bb, instr, components);
+ } else {
+ WriteTexsInstructionHalfFloat(bb, instr, components);
+ }
break;
}
default: