Skip to content

Commit

Permalink
Shader decompiler: Optimize mova with both x and y masked
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Jul 28, 2024
1 parent 4040d88 commit 4c67c33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/PICA/shader_decompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,9 @@ void ShaderDecompiler::compileInstruction(u32& pc, bool& finished) {
const bool writeY = getBit<2>(operandDescriptor);

if (writeX) {
decompiledShader += fmt::format("addr_reg.xy = ivec2({}.xy);\n", src1);
decompiledShader += fmt::format("addr_reg.x = int({}.x);\n", src1);
}

if (writeY) {
} else if (writeY) {
decompiledShader += fmt::format("addr_reg.y = int({}.y);\n", src1);
}
break;
Expand Down

0 comments on commit 4c67c33

Please sign in to comment.