aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/vertex_shader.cpp
diff options
context:
space:
mode:
authorGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-12-13 21:23:41 +0100
committerGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-12-20 18:06:55 +0100
commit22afb9d8309f56494d95f6132561a413b8e7895c (patch)
treec30dea8bc794454f70a6c0a8bfe704fdd7e8c2aa /src/video_core/vertex_shader.cpp
parentcd163fb59ae2922d33aa931f51ef5d116c0adc3f (diff)
Pica/VertexShader: Run instruction handlers according to the effective opcode.
This allows for proper emulation of the different CMP/LRP/MAD instructions.
Diffstat (limited to 'src/video_core/vertex_shader.cpp')
-rw-r--r--src/video_core/vertex_shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp
index 742e5a9f..dd406f9c 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) {