summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-07-26 05:12:38 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-07-26 05:12:38 +0200
commit77f1a676a102aa56f929e4a3d43948c5198fac51 (patch)
treee65ad6ac3328ea59dedb4d7c29e3424da8707c53 /src/video_core/shader
parentMerge pull request #2739 from lioncash/cflow (diff)
downloadyuzu-77f1a676a102aa56f929e4a3d43948c5198fac51.tar
yuzu-77f1a676a102aa56f929e4a3d43948c5198fac51.tar.gz
yuzu-77f1a676a102aa56f929e4a3d43948c5198fac51.tar.bz2
yuzu-77f1a676a102aa56f929e4a3d43948c5198fac51.tar.lz
yuzu-77f1a676a102aa56f929e4a3d43948c5198fac51.tar.xz
yuzu-77f1a676a102aa56f929e4a3d43948c5198fac51.tar.zst
yuzu-77f1a676a102aa56f929e4a3d43948c5198fac51.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/half_set_predicate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/half_set_predicate.cpp b/src/video_core/shader/decode/half_set_predicate.cpp
index a82a6a15c..a6c082cc9 100644
--- a/src/video_core/shader/decode/half_set_predicate.cpp
+++ b/src/video_core/shader/decode/half_set_predicate.cpp
@@ -52,15 +52,15 @@ u32 ShaderIR::DecodeHalfSetPredicate(NodeBlock& bb, u32 pc) {
}
const OperationCode combiner = GetPredicateCombiner(instr.hsetp2.op);
- const Node pred39 = GetPredicate(instr.hsetp2.pred39, instr.hsetp2.neg_pred);
+ const Node combined_pred = GetPredicate(instr.hsetp2.pred3, instr.hsetp2.neg_pred);
const auto Write = [&](u64 dest, Node src) {
- SetPredicate(bb, dest, Operation(combiner, std::move(src), pred39));
+ SetPredicate(bb, dest, Operation(combiner, std::move(src), combined_pred));
};
const Node comparison = GetPredicateComparisonHalf(cond, op_a, op_b);
const u64 first = instr.hsetp2.pred0;
- const u64 second = instr.hsetp2.pred3;
+ const u64 second = instr.hsetp2.pred39;
if (h_and) {
const Node joined = Operation(OperationCode::LogicalAnd2, comparison);
Write(first, joined);