Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Shaders: Added bit decodings for the I2I instruction.

Subv1755d4bec310
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 6cae6ff45a..f4d11fa5df 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -275,6 +275,9 @@ public:
I2F_C,
I2F_R,
I2F_IMM,
+ I2I_C,
+ I2I_R,
+ I2I_IMM,
LOP32I,
MOV_C,
MOV_R,
@@ -427,6 +430,9 @@ private:
INST("0100110010111---", Id::I2F_C, Type::Arithmetic, "I2F_C"),
INST("0101110010111---", Id::I2F_R, Type::Arithmetic, "I2F_R"),
INST("0011100-10111---", Id::I2F_IMM, Type::Arithmetic, "I2F_IMM"),
+ INST("0100110011100---", Id::I2I_C, Type::Arithmetic, "I2I_C"),
+ INST("0101110011100---", Id::I2I_R, Type::Arithmetic, "I2I_R"),
+ INST("01110001-1000---", Id::I2I_IMM, Type::Arithmetic, "I2I_IMM"),
INST("000001----------", Id::LOP32I, Type::Arithmetic, "LOP32I"),
INST("0100110010011---", Id::MOV_C, Type::Arithmetic, "MOV_C"),
INST("0101110010011---", Id::MOV_R, Type::Arithmetic, "MOV_R"),