From 5da809d70fb50eb4b290ee7cbe1b8f09e9286f4e Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 1 Jun 2015 12:22:54 -0700 Subject: [PATCH] prog_to_nir: Remove OPCODE_MOV special case. OPCODE_MOV is in the op_trans[] array. Reviewed-by: Kenneth Graunke --- src/mesa/program/prog_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.30.2