VERY experimental Nintendo Switch 2 emulator
C++
shader_bytecode: Rename MOV_SYS to S2R
ReinUsesLisp2eef8d72494e
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.hindex c141b27b73..498936f0cd 100644--- a/src/video_core/engines/shader_bytecode.h+++ b/src/video_core/engines/shader_bytecode.h@@ -1844,7 +1844,7 @@ public:MOV_C,MOV_R,MOV_IMM,- MOV_SYS,+ S2R,MOV32_IMM,SHL_C,SHL_R,@@ -2138,7 +2138,7 @@ private:INST("0100110010011---", Id::MOV_C, Type::Arithmetic, "MOV_C"),INST("0101110010011---", Id::MOV_R, Type::Arithmetic, "MOV_R"),INST("0011100-10011---", Id::MOV_IMM, Type::Arithmetic, "MOV_IMM"),- INST("1111000011001---", Id::MOV_SYS, Type::Trivial, "MOV_SYS"),+ INST("1111000011001---", Id::S2R, Type::Trivial, "S2R"),INST("000000010000----", Id::MOV32_IMM, Type::ArithmeticImmediate, "MOV32_IMM"),INST("0100110001100---", Id::FMNMX_C, Type::Arithmetic, "FMNMX_C"),INST("0101110001100---", Id::FMNMX_R, Type::Arithmetic, "FMNMX_R"),diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cppindex 4944e9d69f..94e39c125c 100644--- a/src/video_core/shader/decode/other.cpp+++ b/src/video_core/shader/decode/other.cpp@@ -66,18 +66,18 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) {bb.push_back(Operation(OperationCode::Discard));break;}- case OpCode::Id::MOV_SYS: {+ case OpCode::Id::S2R: {const Node value = [this, instr] {switch (instr.sys20) {case SystemVariable::LaneId:- LOG_WARNING(HW_GPU, "MOV_SYS instruction with LaneId is incomplete");+ LOG_WARNING(HW_GPU, "S2R instruction with LaneId is incomplete");return Immediate(0U);case SystemVariable::InvocationId:return Operation(OperationCode::InvocationId);case SystemVariable::Ydirection:return Operation(OperationCode::YNegate);case SystemVariable::InvocationInfo:- LOG_WARNING(HW_GPU, "MOV_SYS instruction with InvocationInfo is incomplete");+ LOG_WARNING(HW_GPU, "S2R instruction with InvocationInfo is incomplete");return Immediate(0U);case SystemVariable::Tid: {Node value = Immediate(0);