From 22afb9d8309f56494d95f6132561a413b8e7895c Mon Sep 17 00:00:00 2001
From: Tony Wasserka <NeoBrainX@gmail.com>
Date: Sat, 13 Dec 2014 21:23:41 +0100
Subject: [PATCH] Pica/VertexShader: Run instruction handlers according to the
 effective opcode.

This allows for proper emulation of the different CMP/LRP/MAD instructions.
---
 src/video_core/vertex_shader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index 742e5a9f21..dd406f9ca5 100644
--- a/src/video_core/vertex_shader.cpp
+++ b/src/video_core/vertex_shader.cpp
@@ -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);
 
-            switch (instr.opcode) {
+            switch (instr.opcode.EffectiveOpCode()) {
             case Instruction::OpCode::ADD:
             {
                 for (int i = 0; i < 4; ++i) {