summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-08-28 02:57:43 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-08-28 02:57:43 +0200
commit6207751b00e8c365487317729c0b95ffabc92417 (patch)
treec8eb5f68170c9a8a942e34f0f06aa917527f142e /src/video_core/shader
parentMerge pull request #2748 from FernandoS27/align-memory (diff)
downloadyuzu-6207751b00e8c365487317729c0b95ffabc92417.tar
yuzu-6207751b00e8c365487317729c0b95ffabc92417.tar.gz
yuzu-6207751b00e8c365487317729c0b95ffabc92417.tar.bz2
yuzu-6207751b00e8c365487317729c0b95ffabc92417.tar.lz
yuzu-6207751b00e8c365487317729c0b95ffabc92417.tar.xz
yuzu-6207751b00e8c365487317729c0b95ffabc92417.tar.zst
yuzu-6207751b00e8c365487317729c0b95ffabc92417.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/float_set_predicate.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/shader/decode/float_set_predicate.cpp b/src/video_core/shader/decode/float_set_predicate.cpp
index 2323052b0..815464f28 100644
--- a/src/video_core/shader/decode/float_set_predicate.cpp
+++ b/src/video_core/shader/decode/float_set_predicate.cpp
@@ -18,8 +18,8 @@ u32 ShaderIR::DecodeFloatSetPredicate(NodeBlock& bb, u32 pc) {
const Instruction instr = {program_code[pc]};
const auto opcode = OpCode::Decode(instr);
- const Node op_a = GetOperandAbsNegFloat(GetRegister(instr.gpr8), instr.fsetp.abs_a != 0,
- instr.fsetp.neg_a != 0);
+ Node op_a = GetOperandAbsNegFloat(GetRegister(instr.gpr8), instr.fsetp.abs_a != 0,
+ instr.fsetp.neg_a != 0);
Node op_b = [&]() {
if (instr.is_b_imm) {
return GetImmediate19(instr);
@@ -29,12 +29,13 @@ u32 ShaderIR::DecodeFloatSetPredicate(NodeBlock& bb, u32 pc) {
return GetConstBuffer(instr.cbuf34.index, instr.cbuf34.GetOffset());
}
}();
- op_b = GetOperandAbsNegFloat(op_b, instr.fsetp.abs_b, false);
+ op_b = GetOperandAbsNegFloat(std::move(op_b), instr.fsetp.abs_b, instr.fsetp.neg_b);
// We can't use the constant predicate as destination.
ASSERT(instr.fsetp.pred3 != static_cast<u64>(Pred::UnusedIndex));
- const Node predicate = GetPredicateComparisonFloat(instr.fsetp.cond, op_a, op_b);
+ const Node predicate =
+ GetPredicateComparisonFloat(instr.fsetp.cond, std::move(op_a), std::move(op_b));
const Node second_pred = GetPredicate(instr.fsetp.pred39, instr.fsetp.neg_pred != 0);
const OperationCode combiner = GetPredicateCombiner(instr.fsetp.op);