[Mesa-dev] [PATCH 2/2] prog_to_nir: Remove OPCODE_MOV special case.
Matt Turner
mattst88 at gmail.com
Mon Jun 1 13:03:10 PDT 2015
OPCODE_MOV is in the op_trans[] array.
---
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 5e104e7..d6f165e 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.3.6
More information about the mesa-dev
mailing list