prog_to_nir: Remove OPCODE_MOV special case.
OPCODE_MOV is in the op_trans[] array. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -891,7 +891,7 @@ ptn_emit_instruction(struct ptn_compile *c, struct prog_instruction *prog_inst)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (op_trans[op] != 0 || op == OPCODE_MOV) {
|
if (op_trans[op] != 0) {
|
||||||
ptn_alu(b, op_trans[op], dest, src);
|
ptn_alu(b, op_trans[op], dest, src);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "unknown opcode: %s\n", _mesa_opcode_string(op));
|
fprintf(stderr, "unknown opcode: %s\n", _mesa_opcode_string(op));
|
||||||
|
Reference in New Issue
Block a user