prog_to_nir: Remove OPCODE_MOV special case.
authorMatt Turner <mattst88@gmail.com>
Mon, 1 Jun 2015 19:22:54 +0000 (12:22 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 2 Jun 2015 19:22:42 +0000 (12:22 -0700)
OPCODE_MOV is in the op_trans[] array.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/program/prog_to_nir.c

index 5e104e70f4aa27422e688e60bfd550f3813de2f3..d6f165e506088dd3f9604f63f5d8e9d722228d70 100644 (file)
@@ -891,7 +891,7 @@ ptn_emit_instruction(struct ptn_compile *c, struct prog_instruction *prog_inst)
       break;
 
    default:
-      if (op_trans[op] != 0 || op == OPCODE_MOV) {
+      if (op_trans[op] != 0) {
          ptn_alu(b, op_trans[op], dest, src);
       } else {
          fprintf(stderr, "unknown opcode: %s\n", _mesa_opcode_string(op));