Lines Matching refs:ins

1350       struct etna_inst ins = { };
1351 ins.opcode = INST_OPCODE_SELECT;
1352 ins.cond = INST_CONDITION_LT;
1353 ins.dst = etna_native_to_dst(inner_temp, INST_COMPS_Y);
1354 ins.src[0] = ins.src[2] = alloc_imm_f32(c, 0.0);
1355 ins.src[1] = swizzle(src[0], SWIZZLE(Y, Y, Y, Y));
1356 emit_inst(c, &ins);
1367 struct etna_inst ins = { };
1368 ins.opcode = INST_OPCODE_SELECT;
1369 ins.cond = INST_CONDITION_GT;
1370 ins.dst = etna_native_to_dst(inner_temp, INST_COMPS_W);
1371 ins.src[0] = ins.src[2] = alloc_imm_f32(c, 128.);
1372 ins.src[1] = swizzle(src[0], SWIZZLE(W, W, W, W));
1373 emit_inst(c, &ins);
1374 ins.cond = INST_CONDITION_LT;
1375 ins.src[0].neg = !ins.src[0].neg;
1376 ins.src[2].neg = !ins.src[2].neg;
1377 ins.src[1] = src_w;
1378 emit_inst(c, &ins);
1386 struct etna_inst ins[3] = { };
1387 ins[0].opcode = INST_OPCODE_LOG;
1388 ins[0].dst = etna_native_to_dst(inner_temp, INST_COMPS_X);
1389 ins[0].src[2] = src_y;
1391 emit_inst(c, &ins[0]);
1422 struct etna_inst ins[2] = { };
1424 ins[0].opcode = INST_OPCODE_SET;
1425 ins[0].cond = INST_CONDITION_NZ;
1426 ins[0].dst = etna_native_to_dst(temp, INST_COMPS_X | INST_COMPS_Y |
1428 ins[0].src[0] = src[0];
1430 ins[1].opcode = INST_OPCODE_SELECT;
1431 ins[1].cond = INST_CONDITION_LZ;
1432 ins[1].sat = inst->Instruction.Saturate;
1433 ins[1].dst = convert_dst(c, &inst->Dst[0]);
1434 ins[1].src[0] = src[0];
1435 ins[1].src[2] = etna_native_to_src(temp, INST_SWIZ_IDENTITY);
1436 ins[1].src[1] = negate(ins[1].src[2]);
1438 emit_inst(c, &ins[0]);
1439 emit_inst(c, &ins[1]);
1523 struct etna_inst *p, ins[9] = { };
1534 struct etna_inst ins = { };
1535 ins.opcode = INST_OPCODE_MOV;
1536 ins.dst = etna_native_to_dst(t0, INST_COMPS_X);
1537 ins.src[2] = in;
1538 emit_inst(c, &ins);
1542 ins[0].opcode = INST_OPCODE_MAD;
1543 ins[0].dst = etna_native_to_dst(t0, INST_COMPS_X | INST_COMPS_Z | INST_COMPS_W);
1544 ins[0].src[0] = swizzle(in, SWIZZLE(X, X, X, X));
1545 ins[0].src[1] = swizzle(sincos[1], SWIZZLE(X, W, X, W)); /* 1/2*PI */
1546 ins[0].src[2] = swizzle(sincos[1], SWIZZLE(Y, W, Z, W)); /* 0.75, 0, 0.5, 0 */
1548 ins[1].opcode = INST_OPCODE_FRC;
1549 ins[1].dst = etna_native_to_dst(t0, INST_COMPS_X | INST_COMPS_Z);
1550 ins[1].src[2] = swizzle(t0s, SWIZZLE(X, W, Z, W));
1552 ins[2].opcode = INST_OPCODE_MAD;
1553 ins[2].dst = etna_native_to_dst(t0, INST_COMPS_X | INST_COMPS_Z);
1554 ins[2].src[0] = swizzle(t0s, SWIZZLE(X, W, Z, W));
1555 ins[2].src[1] = swizzle(sincos[0], SWIZZLE(X, X, X, X)); /* 2 */
1556 ins[2].src[2] = swizzle(sincos[0], SWIZZLE(Y, Y, Y, Y)); /* -1 */
1567 ins[3].opcode = INST_OPCODE_MUL;
1568 ins[3].dst = etna_native_to_dst(t0, INST_COMPS_Y);
1569 ins[3].src[0] = swizzle(t0s, mul_swiz);
1570 ins[3].src[1] = absolute(ins[3].src[0]);
1572 ins[4].opcode = INST_OPCODE_DP3;
1573 ins[4].dst = etna_native_to_dst(t0, INST_COMPS_X | INST_COMPS_Z);
1574 ins[4].src[0] = swizzle(t0s, dp3_swiz);
1575 ins[4].src[1] = swizzle(sincos[0], SWIZZLE(Z, W, W, W));
1578 ins[5] = ins[3];
1579 ins[6] = ins[4];
1580 ins[4].dst.comps = INST_COMPS_X;
1581 ins[6].dst.comps = INST_COMPS_Z;
1582 ins[5].src[0] = swizzle(t0s, SWIZZLE(W, Z, W, W));
1583 ins[6].src[0] = swizzle(t0s, SWIZZLE(Z, Y, W, W));
1584 ins[5].src[1] = absolute(ins[5].src[0]);
1585 p = &ins[7];
1587 p = &ins[5];
1604 for (int i = 0; &ins[i] <= p; i++)
1605 emit_inst(c, &ins[i]);
1618 struct etna_inst ins[2] = { };
1620 ins[0].opcode = INST_OPCODE_DP3;
1621 ins[0].dst = etna_native_to_dst(temp, INST_COMPS_X | INST_COMPS_Y |
1623 ins[0].src[0] = src[0];
1624 ins[0].src[1] = src[1];
1626 ins[1].opcode = INST_OPCODE_ADD;
1627 ins[1].sat = inst->Instruction.Saturate;
1628 ins[1].dst = convert_dst(c, &inst->Dst[0]);
1629 ins[1].src[0] = etna_native_to_src(temp, INST_SWIZ_IDENTITY);
1630 ins[1].src[2] = swizzle(src[1], SWIZZLE(W, W, W, W));
1632 emit_inst(c, &ins[0]);
1633 emit_inst(c, &ins[1]);
1645 struct etna_inst ins[2] = { };
1648 ins[0].opcode = INST_OPCODE_MUL;
1649 ins[0].dst = etna_native_to_dst(temp, INST_COMPS_X);
1650 ins[0].src[0] = src[0];
1651 ins[0].src[1] = alloc_imm(c, ETNA_IMMEDIATE_TEXRECT_SCALE_X, unit);
1653 ins[1].opcode = INST_OPCODE_MUL;
1654 ins[1].dst = etna_native_to_dst(temp, INST_COMPS_Y);
1655 ins[1].src[0] = src[0];
1656 ins[1].src[1] = alloc_imm(c, ETNA_IMMEDIATE_TEXRECT_SCALE_Y, unit);
1658 emit_inst(c, &ins[0]);
1659 emit_inst(c, &ins[1]);