From: Matt Turner Date: Mon, 1 Jun 2015 19:22:54 +0000 (-0700) Subject: prog_to_nir: Remove OPCODE_MOV special case. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5da809d70fb50eb4b290ee7cbe1b8f09e9286f4e;p=mesa.git prog_to_nir: Remove OPCODE_MOV special case. OPCODE_MOV is in the op_trans[] array. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c index 5e104e70f4a..d6f165e5060 100644 --- a/src/mesa/program/prog_to_nir.c +++ b/src/mesa/program/prog_to_nir.c @@ -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));