summaryrefslogtreecommitdiff
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorGravatar Mat M2020-04-15 03:16:56 -0400
committerGravatar GitHub2020-04-15 03:16:56 -0400
commit50c0a92db8d72879b73b0d8a08ff3633e1b4dda7 (patch)
tree696e10403e644283b81799e07933327bdd2a58af /src/video_core/shader
parentMerge pull request #3664 from ReinUsesLisp/fe3h-black-squares (diff)
parentshader/arithmetic: Add FCMP_CR variant (diff)
downloadyuzu-50c0a92db8d72879b73b0d8a08ff3633e1b4dda7.tar.gz
yuzu-50c0a92db8d72879b73b0d8a08ff3633e1b4dda7.tar.xz
yuzu-50c0a92db8d72879b73b0d8a08ff3633e1b4dda7.zip
Merge pull request #3663 from ReinUsesLisp/fcmp-rc
shader/arithmetic: Add FCMP_CR variant
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/arithmetic.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/arithmetic.cpp b/src/video_core/shader/decode/arithmetic.cpp
index 478394682..4db329fa5 100644
--- a/src/video_core/shader/decode/arithmetic.cpp
+++ b/src/video_core/shader/decode/arithmetic.cpp
@@ -136,7 +136,8 @@ u32 ShaderIR::DecodeArithmetic(NodeBlock& bb, u32 pc) {
136 SetRegister(bb, instr.gpr0, value); 136 SetRegister(bb, instr.gpr0, value);
137 break; 137 break;
138 } 138 }
139 case OpCode::Id::FCMP_R: { 139 case OpCode::Id::FCMP_RR:
140 case OpCode::Id::FCMP_RC: {
140 UNIMPLEMENTED_IF(instr.fcmp.ftz == 0); 141 UNIMPLEMENTED_IF(instr.fcmp.ftz == 0);
141 Node op_c = GetRegister(instr.gpr39); 142 Node op_c = GetRegister(instr.gpr39);
142 Node comp = GetPredicateComparisonFloat(instr.fcmp.cond, std::move(op_c), Immediate(0.0f)); 143 Node comp = GetPredicateComparisonFloat(instr.fcmp.cond, std::move(op_c), Immediate(0.0f));