VERY experimental Nintendo Switch 2 emulator
C++
shader_decode: Stub RRO_C, RRO_R and RRO_IMM
ReinUsesLispb558235ec616
diff --git a/src/video_core/shader/decode/arithmetic.cpp b/src/video_core/shader/decode/arithmetic.cppindex 0b66543976..9f8c27b3ea 100644--- a/src/video_core/shader/decode/arithmetic.cpp+++ b/src/video_core/shader/decode/arithmetic.cpp@@ -140,6 +140,15 @@ u32 ShaderIR::DecodeArithmetic(BasicBlock& bb, u32 pc) {Operation(OperationCode::Select, NO_PRECISE, condition, min, max));break;}+ case OpCode::Id::RRO_C:+ case OpCode::Id::RRO_R:+ case OpCode::Id::RRO_IMM: {+ // Currently RRO is only implemented as a register move.+ op_b = GetOperandAbsNegFloat(op_b, instr.alu.abs_b, instr.alu.negate_b);+ SetRegister(bb, instr.gpr0, op_b);+ LOG_WARNING(HW_GPU, "RRO instruction is incomplete");+ break;+ }default:UNIMPLEMENTED_MSG("Unhandled arithmetic instruction: {}", opcode->get().GetName());}