diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-14 14:44:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-14 14:44:38 +0200 |
commit | 0ec9da2f9f610c7ac733269e554b40f28aa97a11 (patch) | |
tree | b78676331a8cc7fc1db7d1ed5139ec0f167b67a3 /src/video_core/shader | |
parent | Merge pull request #2730 from DarkLordZach/master (diff) | |
parent | shader/texture: Add F16 support for TLDS (diff) | |
download | yuzu-0ec9da2f9f610c7ac733269e554b40f28aa97a11.tar yuzu-0ec9da2f9f610c7ac733269e554b40f28aa97a11.tar.gz yuzu-0ec9da2f9f610c7ac733269e554b40f28aa97a11.tar.bz2 yuzu-0ec9da2f9f610c7ac733269e554b40f28aa97a11.tar.lz yuzu-0ec9da2f9f610c7ac733269e554b40f28aa97a11.tar.xz yuzu-0ec9da2f9f610c7ac733269e554b40f28aa97a11.tar.zst yuzu-0ec9da2f9f610c7ac733269e554b40f28aa97a11.zip |
Diffstat (limited to 'src/video_core/shader')
-rw-r--r-- | src/video_core/shader/decode/texture.cpp | 8 |
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: |