mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-31 16:09:03 -05:00 
			
		
		
		
	GPU: Don't mark uniform buffers and registers as used for instructions which don't have them.
Like the MOV32I and FMUL32I instructions. This fixes a potential crash when using these instructions.
This commit is contained in:
		| @@ -526,6 +526,7 @@ public: | ||||
|     enum class Type { | ||||
|         Trivial, | ||||
|         Arithmetic, | ||||
|         ArithmeticImmediate, | ||||
|         ArithmeticInteger, | ||||
|         ArithmeticIntegerImmediate, | ||||
|         Bfe, | ||||
| @@ -655,7 +656,7 @@ private: | ||||
|             INST("0100110001101---", Id::FMUL_C, Type::Arithmetic, "FMUL_C"), | ||||
|             INST("0101110001101---", Id::FMUL_R, Type::Arithmetic, "FMUL_R"), | ||||
|             INST("0011100-01101---", Id::FMUL_IMM, Type::Arithmetic, "FMUL_IMM"), | ||||
|             INST("00011110--------", Id::FMUL32_IMM, Type::Arithmetic, "FMUL32_IMM"), | ||||
|             INST("00011110--------", Id::FMUL32_IMM, Type::ArithmeticImmediate, "FMUL32_IMM"), | ||||
|             INST("0100110000010---", Id::IADD_C, Type::ArithmeticInteger, "IADD_C"), | ||||
|             INST("0101110000010---", Id::IADD_R, Type::ArithmeticInteger, "IADD_R"), | ||||
|             INST("0011100-00010---", Id::IADD_IMM, Type::ArithmeticInteger, "IADD_IMM"), | ||||
| @@ -676,7 +677,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("000000010000----", Id::MOV32_IMM, Type::Arithmetic, "MOV32_IMM"), | ||||
|             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"), | ||||
|             INST("0011100-01100---", Id::FMNMX_IMM, Type::Arithmetic, "FMNMX_IMM"), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Subv
					Subv