shader/texture: Add F16 support for TLDS

This commit is contained in:
ReinUsesLisp committed 2019-07-07 16:05:56 -03:00
1 parent fcf404c244
commit 48d485d6df
2 files changed
+9 -2

No files matched your search

+7 -1
View File
@@ -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: