diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-27 20:50:36 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:53 +0100 |
commit | 2d6c064e66bac4cb871aa26a12066441a8852008 (patch) | |
tree | 52baf7c971830bbe9cb5c8631235f1ebcda95d30 /src/video_core/shader/decode/float_set.cpp | |
parent | shader_ir: Remove composite primitives and use temporals instead (diff) | |
download | yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.gz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.bz2 yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.lz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.xz yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.zst yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/decode/float_set.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/video_core/shader/decode/float_set.cpp b/src/video_core/shader/decode/float_set.cpp index b69d94c2e..8e266cc4e 100644 --- a/src/video_core/shader/decode/float_set.cpp +++ b/src/video_core/shader/decode/float_set.cpp @@ -45,13 +45,12 @@ u32 ShaderIR::DecodeFloatSet(BasicBlock& bb, u32 pc) { const Node value = Operation(OperationCode::Select, PRECISE, predicate, true_value, false_value); - SetRegister(bb, instr.gpr0, value); - - if (instr.generates_cc) { - const Node is_zero = Operation(OperationCode::LogicalFEqual, value, Immediate(0.0f)); - SetInternalFlag(bb, InternalFlag::Zero, is_zero); - LOG_WARNING(HW_GPU, "FSET condition code is incomplete"); + if (instr.fset.bf) { + SetInternalFlagsFromFloat(bb, value, instr.generates_cc); + } else { + SetInternalFlagsFromInteger(bb, value, instr.generates_cc); } + SetRegister(bb, instr.gpr0, value); return pc; } |