Просмотр исходного кода

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

This allows for proper emulation of the different CMP/LRP/MAD instructions.
Tony Wasserka 11 лет назад
Родитель
Сommit
22afb9d830
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/video_core/vertex_shader.cpp

+ 1 - 1
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) {