Skip to content
Snippets Groups Projects
Commit 22afb9d8 authored by Tony Wasserka's avatar Tony Wasserka
Browse files

Pica/VertexShader: Run instruction handlers according to the effective opcode.

This allows for proper emulation of the different CMP/LRP/MAD instructions.
parent cd163fb5
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ static void ProcessShaderCode(VertexShaderState& state) { ...@@ -172,7 +172,7 @@ static void ProcessShaderCode(VertexShaderState& state) {
state.debug.max_opdesc_id = std::max<u32>(state.debug.max_opdesc_id, 1+instr.common.operand_desc_id); state.debug.max_opdesc_id = std::max<u32>(state.debug.max_opdesc_id, 1+instr.common.operand_desc_id);
switch (instr.opcode) { switch (instr.opcode.EffectiveOpCode()) {
case Instruction::OpCode::ADD: case Instruction::OpCode::ADD:
{ {
for (int i = 0; i < 4; ++i) { for (int i = 0; i < 4; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment