aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/arithmetic.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-10-28 17:05:41 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-10-28 17:05:41 -0300
commit016fb60ff53150ba37839dd16c121fe2cf874c3e (patch)
treeff128344b1a902ae61557c8515dc2fb546720463 /src/video_core/shader/decode/arithmetic.cpp
parent46265b72a2e3989613dcf3ed7f6b761d6c930888 (diff)
shader/arithmetic: Implement FCMP immediate + register variant
Trivially add the encoding for this.
Diffstat (limited to 'src/video_core/shader/decode/arithmetic.cpp')
-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 4db329fa53..afef5948d0 100644
--- a/src/video_core/shader/decode/arithmetic.cpp
+++ b/src/video_core/shader/decode/arithmetic.cpp
@@ -137,7 +137,8 @@ u32 ShaderIR::DecodeArithmetic(NodeBlock& bb, u32 pc) {
break;
}
case OpCode::Id::FCMP_RR:
- case OpCode::Id::FCMP_RC: {
+ case OpCode::Id::FCMP_RC:
+ case OpCode::Id::FCMP_IMMR: {
UNIMPLEMENTED_IF(instr.fcmp.ftz == 0);
Node op_c = GetRegister(instr.gpr39);
Node comp = GetPredicateComparisonFloat(instr.fcmp.cond, std::move(op_c), Immediate(0.0f));