(src1->mux == QPU_MUX_A || src1->mux == QPU_MUX_B) &&
src0.addr != src1->addr) {
queue(c, qpu_inst(qpu_a_MOV(qpu_r3(), *src1),
- qpu_m_NOP()));
+ qpu_NOP()));
*src1 = qpu_r3();
}
}
}
if (needs_raddr_vs_waddr_nop) {
- serialize_one_inst(c, qpu_inst(qpu_a_NOP(),
- qpu_m_NOP()));
+ serialize_one_inst(c, qpu_NOP());
}
/* "After an SFU lookup instruction, accumulator r4 must not
*/
if (reads_r4) {
while (c->qpu_inst_count - last_sfu_write < 3) {
- serialize_one_inst(c, qpu_inst(qpu_a_NOP(),
- qpu_m_NOP()));
+ serialize_one_inst(c, qpu_NOP());
}
}
while (c->qpu_inst_count < 3 ||
QPU_GET_FIELD(c->qpu_insts[c->qpu_inst_count - 1],
QPU_SIG) != QPU_SIG_NONE) {
- serialize_one_inst(c, qpu_inst(qpu_a_NOP(),
- qpu_m_NOP()));
+ serialize_one_inst(c, qpu_NOP());
}
c->qpu_insts[c->qpu_inst_count - 1] =
qpu_set_sig(c->qpu_insts[c->qpu_inst_count - 1],
if (dst.mux == QPU_MUX_A || dst.mux == QPU_MUX_B ||
dst.mux != src[0].mux || dst.addr != src[0].addr) {
queue(c, qpu_inst(qpu_a_MOV(dst, src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
}
break;
case QOP_CMP:
queue(c, qpu_inst(qpu_a_MOV(qpu_ra(QPU_W_NOP),
src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
*last_inst(c) |= QPU_SF;
if (dst.mux <= QPU_MUX_R3) {
if (dst.mux == src[1].mux &&
dst.addr == src[1].addr) {
queue(c, qpu_inst(qpu_a_MOV(dst, src[1]),
- qpu_m_NOP()));
+ qpu_NOP()));
queue(c, qpu_inst(qpu_a_MOV(dst, src[2]),
- qpu_m_NOP()));
+ qpu_NOP()));
*last_inst(c) = qpu_set_cond_add(*last_inst(c),
QPU_COND_NC);
} else {
queue(c, qpu_inst(qpu_a_MOV(dst, src[2]),
- qpu_m_NOP()));
+ qpu_NOP()));
queue(c, qpu_inst(qpu_a_MOV(dst, src[1]),
- qpu_m_NOP()));
+ qpu_NOP()));
*last_inst(c) = qpu_set_cond_add(*last_inst(c),
QPU_COND_NS);
}
fixup_raddr_conflict(c, src[0], &src[1]);
queue(c, qpu_inst(qpu_a_FSUB(qpu_ra(QPU_W_NOP),
src[0], src[1]),
- qpu_m_NOP()));
+ qpu_NOP()));
*last_inst(c) |= QPU_SF;
queue(c, qpu_load_imm_f(dst, 0.0));
case QOP_VPM_WRITE:
queue(c, qpu_inst(qpu_a_MOV(qpu_ra(QPU_W_VPM), src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_VPM_READ:
queue(c, qpu_inst(qpu_a_MOV(dst, qpu_ra(QPU_R_VPM)),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_RCP:
case QOP_RCP:
queue(c, qpu_inst(qpu_a_MOV(qpu_rb(QPU_W_SFU_RECIP),
src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_RSQ:
queue(c, qpu_inst(qpu_a_MOV(qpu_rb(QPU_W_SFU_RECIPSQRT),
src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_EXP2:
queue(c, qpu_inst(qpu_a_MOV(qpu_rb(QPU_W_SFU_EXP),
src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_LOG2:
queue(c, qpu_inst(qpu_a_MOV(qpu_rb(QPU_W_SFU_LOG),
src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
default:
abort();
}
queue(c, qpu_inst(qpu_a_MOV(dst, qpu_r4()),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_PACK_COLORS:
for (int i = 0; i < 4; i++) {
- queue(c, qpu_inst(qpu_a_NOP(),
+ queue(c, qpu_inst(qpu_NOP(),
qpu_m_MOV(qpu_r3(), src[i])));
*last_inst(c) |= QPU_PM;
*last_inst(c) |= QPU_SET_FIELD(QPU_PACK_MUL_8A + i,
}
queue(c, qpu_inst(qpu_a_MOV(dst, qpu_r3()),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_FRAG_X:
queue(c, qpu_inst(qpu_a_ITOF(dst,
qpu_ra(QPU_R_XY_PIXEL_COORD)),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_FRAG_Y:
queue(c, qpu_inst(qpu_a_ITOF(dst,
qpu_rb(QPU_R_XY_PIXEL_COORD)),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_FRAG_Z:
queue(c, qpu_inst(qpu_a_ITOF(dst,
qpu_rb(QPU_R_FRAG_PAYLOAD_ZW)),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_FRAG_RCP_W:
queue(c, qpu_inst(qpu_a_MOV(qpu_rb(QPU_W_SFU_RECIP),
qpu_ra(QPU_R_FRAG_PAYLOAD_ZW)),
- qpu_m_NOP()));
+ qpu_NOP()));
queue(c, qpu_inst(qpu_a_MOV(dst, qpu_r4()),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_TLB_DISCARD_SETUP:
discard = true;
queue(c, qpu_inst(qpu_a_MOV(src[0], src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
*last_inst(c) |= QPU_SF;
break;
case QOP_TLB_PASSTHROUGH_Z_WRITE:
queue(c, qpu_inst(qpu_a_MOV(qpu_ra(QPU_W_TLB_Z),
qpu_rb(QPU_R_FRAG_PAYLOAD_ZW)),
- qpu_m_NOP()));
+ qpu_NOP()));
if (discard) {
*last_inst(c) = qpu_set_cond_add(*last_inst(c),
QPU_COND_ZS);
break;
case QOP_TLB_COLOR_READ:
- queue(c, qpu_inst(qpu_a_NOP(), qpu_m_NOP()));
+ queue(c, qpu_NOP());
*last_inst(c) = qpu_set_sig(*last_inst(c),
QPU_SIG_COLOR_LOAD);
case QOP_TLB_COLOR_WRITE:
queue(c, qpu_inst(qpu_a_MOV(qpu_tlbc(),
src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
if (discard) {
*last_inst(c) = qpu_set_cond_add(*last_inst(c),
QPU_COND_ZS);
case QOP_VARY_ADD_C:
queue(c, qpu_inst(qpu_a_FADD(dst,
src[0], qpu_r5()),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_PACK_SCALED: {
uint64_t a = (qpu_inst(qpu_a_MOV(dst, src[0]),
- qpu_m_NOP()) |
+ qpu_NOP()) |
QPU_SET_FIELD(QPU_PACK_A_16A,
QPU_PACK));
uint64_t b = (qpu_inst(qpu_a_MOV(dst, src[1]),
- qpu_m_NOP()) |
+ qpu_NOP()) |
QPU_SET_FIELD(QPU_PACK_A_16B,
QPU_PACK));
(qinst->op -
QOP_TEX_S)),
src[0]),
- qpu_m_NOP()));
+ qpu_NOP()));
break;
case QOP_TEX_RESULT:
- queue(c, qpu_inst(qpu_a_NOP(), qpu_m_NOP()));
+ queue(c, qpu_NOP());
*last_inst(c) = qpu_set_sig(*last_inst(c),
QPU_SIG_LOAD_TMU0);
case QOP_R4_UNPACK_C:
case QOP_R4_UNPACK_D:
queue(c, qpu_inst(qpu_a_MOV(dst, qpu_r4()),
- qpu_m_NOP()));
+ qpu_NOP()));
*last_inst(c) |= QPU_PM;
*last_inst(c) |= QPU_SET_FIELD(QPU_UNPACK_R4_8A +
(qinst->op -
fixup_raddr_conflict(c, src[0], &src[1]);
if (translate[qinst->op].is_mul) {
- queue(c, qpu_inst(qpu_a_NOP(),
+ queue(c, qpu_inst(qpu_NOP(),
qpu_m_alu2(translate[qinst->op].op,
dst,
src[0], src[1])));
queue(c, qpu_inst(qpu_a_alu2(translate[qinst->op].op,
dst,
src[0], src[1]),
- qpu_m_NOP()));
+ qpu_NOP()));
}
break;
}
QPU_WADDR_ADD) == QPU_W_VPM ||
QPU_GET_FIELD(c->qpu_insts[c->qpu_inst_count - 1],
QPU_WADDR_MUL) == QPU_W_VPM) {
- serialize_one_inst(c, qpu_inst(qpu_a_NOP(), qpu_m_NOP()));
+ serialize_one_inst(c, qpu_NOP());
}
c->qpu_insts[c->qpu_inst_count - 1] =
qpu_set_sig(c->qpu_insts[c->qpu_inst_count - 1],
QPU_SIG_PROG_END);
- serialize_one_inst(c, qpu_inst(qpu_a_NOP(), qpu_m_NOP()));
- serialize_one_inst(c, qpu_inst(qpu_a_NOP(), qpu_m_NOP()));
+ serialize_one_inst(c, qpu_NOP());
+ serialize_one_inst(c, qpu_NOP());
switch (c->stage) {
case QSTAGE_VERT: