From 392fa6e595653513d68a3f29e3190911f7ac7d81 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Wed, 26 Apr 2023 21:55:18 +0300 Subject: [PATCH] [PICA] Fix slti/sgei operand descriptor --- src/core/PICA/shader_interpreter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/PICA/shader_interpreter.cpp b/src/core/PICA/shader_interpreter.cpp index ec5a269d..e9ef2fdf 100644 --- a/src/core/PICA/shader_interpreter.cpp +++ b/src/core/PICA/shader_interpreter.cpp @@ -430,7 +430,7 @@ void PICAShader::slt(u32 instruction) { } void PICAShader::sgei(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x1f]; + const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; const u32 src1 = (instruction >> 14) & 0x1f; u32 src2 = (instruction >> 7) & 0x7f; const u32 idx = (instruction >> 19) & 3; @@ -451,7 +451,7 @@ void PICAShader::sgei(u32 instruction) { } void PICAShader::slti(u32 instruction) { - const u32 operandDescriptor = operandDescriptors[instruction & 0x1f]; + const u32 operandDescriptor = operandDescriptors[instruction & 0x7f]; const u32 src1 = (instruction >> 14) & 0x1f; u32 src2 = (instruction >> 7) & 0x7f; const u32 idx = (instruction >> 19) & 3;