if (r)
return r;
alu.src[1].sel = V_SQ_ALU_SRC_0; /*0.0*/
- alu.src[1].chan = tgsi_chan(&inst->Src[0], 0);
+ alu.src[1].chan = 0;
r = tgsi_dst(ctx, &inst->Dst[0], 1, &alu.dst);
if (r)
return r;
r = tgsi_src(ctx, &inst->Src[0], &alu.src[0]);
if (r)
return r;
- alu.src[0].chan = tgsi_chan(&inst->Src[0], 1);
+ alu.src[0].chan = tgsi_chan(&inst->Src[0], 3);
r = tgsi_dst(ctx, &inst->Dst[0], 2, &alu.dst);
if (r)
return r;
r = r600_bc_add_literal(ctx->bc, ctx->value);
if (r)
return r;
+
chan = alu.dst.chan;
sel = alu.dst.sel;