Home | History | Annotate | Download | only in nine

Lines Matching refs:ureg

445     struct ureg_program *ureg;
627 tx->lconstf[n].reg = ureg_imm4f(tx->ureg, f[0], f[1], f[2], f[3]);
653 ureg_imm4i(tx->ureg, i[0], i[1], i[2], i[3]) :
654 ureg_imm4f(tx->ureg, i[0], i[1], i[2], i[3]);
678 ureg_imm1u(tx->ureg, b ? 0xffffffff : 0) :
679 ureg_imm1f(tx->ureg, b ? 1.0f : 0.0f);
690 tx->regs.t[tx->num_scratch] = ureg_DECL_local_temporary(tx->ureg);
725 tx->regs.r[idx] = ureg_DECL_temporary(tx->ureg);
733 tx->regs.address = ureg_DECL_address(tx->ureg);
735 tx->regs.a0 = ureg_DECL_temporary(tx->ureg);
743 tx->regs.p = ureg_DECL_predicate(tx->ureg);
763 ureg_MOV(tx->ureg, dst, src);
766 ureg_RCP(tx->ureg, tmp, ureg_scalar(src, dim-1));
767 ureg_MUL(tx->ureg, dst, tx_src_scalar(tmp), src);
784 ureg_TEX(tx->ureg, dst, target, src0, src1);
786 ureg_TXP(tx->ureg, dst, target, src0, src1);
790 ureg_TEX(tx->ureg, dst, target, ureg_src(tmp), src1);
800 tx->regs.vT[idx] = ureg_DECL_fs_input(tx->ureg, tx->texcoord_sn, idx,
819 ureg_fixup_label(tx->ureg, tx->loop_labels[tx->loop_depth],
820 ureg_get_instruction_number(tx->ureg));
837 tx->regs.rL[l] = ureg_DECL_local_temporary(tx->ureg);
883 ureg_fixup_label(tx->ureg, tx->cond_labels[tx->cond_depth],
884 ureg_get_instruction_number(tx->ureg));
896 struct ureg_program *ureg = tx->ureg;
899 return ureg_DECL_system_value(ureg, TGSI_SEMANTIC_POSITION, 0);
901 return ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_POSITION,
908 struct ureg_program *ureg = tx->ureg;
930 ureg_ARL(ureg, tx->regs.address, ureg_src(tx->regs.a0));
932 ureg_ARR(ureg, tx->regs.address, ureg_src(tx->regs.a0));
951 ureg, TGSI_SEMANTIC_COLOR, param->idx,
970 tx->regs.v_consecutive = ureg_src(ureg_DECL_array_temporary(ureg, 10, 0));
973 ureg_MOV(ureg, ureg_dst_array_offset(ureg_dst(tx->regs.v_consecutive), i), tx->regs.v[i]);
975 ureg_MOV(ureg, ureg_dst_array_offset(ureg_dst(tx->regs.v_consecutive), i), ureg_imm4f(ureg, 0.0f, 0.0f, 0.0f, 1.0f));
1028 ureg_MIN(ureg, tmp, src, ureg_imm1f(ureg, 1.0f));
1029 ureg_MAX(ureg, tmp, ureg_src(tmp), ureg_imm1f(ureg, -1.0f));
1038 src = ureg_imm1f(ureg, 0.0f);
1070 tx->regs.address = ureg_DECL_address(ureg);
1072 ureg_ARR(ureg, tx->regs.address, tx_get_loopal(tx));
1074 ureg_UARL(ureg
1085 ureg_ADD(ureg, wpos, tx->regs.vPos,
1086 ureg_imm4f(ureg, -0.5f, -0.5f, 0.0f, 0.0f));
1097 ureg_DECL_system_value(ureg, TGSI_SEMANTIC_FACE, 0);
1100 ureg_UCMP(ureg, tmp, ureg_scalar(tx->regs.vFace, TGSI_SWIZZLE_X),
1101 ureg_imm1f(ureg, 1), ureg_imm1f(ureg, -1));
1104 tx->regs.vFace = ureg_DECL_fs_input(ureg,
1130 ureg_RCP(ureg, ureg_writemask(tmp, NINED3DSP_WRITEMASK_3), src);
1131 ureg_MUL(ureg, tmp, src, ureg_swizzle(ureg_src(tmp), NINE_SWIZZLE4(W,W,W,W)));
1137 ureg_RCP(ureg, ureg_writemask(tmp, NINED3DSP_WRITEMASK_2), src);
1138 ureg_MUL(ureg, tmp, src, ureg_swizzle(ureg_src(tmp), NINE_SWIZZLE4(Z,Z,Z,Z)));
1164 ureg_ADD(ureg, tmp, src, ureg_imm1f(ureg, -0.5f));
1169 ureg_ADD(ureg, tmp, ureg_imm1f(ureg, 0.5f), ureg_negate(src));
1175 ureg_NOT(ureg, tmp, src);
1182 ureg_ADD(ureg, tmp, ureg_imm1f(ureg, 1.0f), ureg_negate(src));
1191 ureg_MAD(ureg, tmp, src, ureg_imm1f(ureg, 2.0f), ureg_imm1f(ureg, -1.0f));
1196 ureg_MAD(ureg, tmp, src, ureg_imm1f(ureg, -2.0f), ureg_imm1f(ureg, 1.0f));
1201 ureg_ADD(ureg, tmp, src, src);
1206 ureg_ADD(ureg, tmp, src, src);
1234 tx->regs.tS[param->idx] = ureg_DECL_temporary(tx->ureg);
1251 ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_POSITION, 0);
1257 ureg_saturate(ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_FOG, 0));
1262 tx->regs.oPts = ureg_DECL_temporary(tx->ureg);
1274 dst = ureg_DECL_output(tx->ureg, tx->texcoord_sn, param->idx);
1289 tx->regs.oCol[0] = ureg_DECL_temporary(tx->ureg);
1292 ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_COLOR, param->idx);
1303 ureg_DECL_output_masked(tx->ureg, TGSI_SEMANTIC_POSITION, 0,
1357 ureg_MUL(tx->ureg, rdst, ureg_src(tx->regs.tdst), ureg_imm1f(tx->ureg, f));
1406 struct ureg_program *ureg = tx->ureg;
1429 ureg_DP3(ureg, ureg_writemask(dst, m), src[0], src[1]);
1432 ureg_DP4(ureg, ureg_writemask(dst, m), src[0], src[1]);
1585 struct ureg_program *ureg = tx->ureg;
1590 ureg_ADD(ureg, dst, src0, ureg_negate(src1));
1596 struct ureg_program *ureg = tx->ureg;
1600 ureg_MOV(ureg, dst, ureg_abs(src));
1631 ureg_CMP(tx->ureg, tx_dst_param(tx, &tx->insn.dst[0]),
1651 ureg_MOV(tx->ureg,
1662 ureg_SGT(tx->ureg, cgt, cnd, ureg_imm1f(tx->ureg, 0.5f));
1664 ureg_CMP(tx->ureg, dst, ureg_negate(ureg_src(cgt)),
1673 ureg_CAL(tx->ureg, &tx->inst_labels[tx->insn.src[0].idx]);
1679 struct ureg_program *ureg = tx->ureg;
1683 ureg_IF(ureg, src, tx_cond(tx));
1685 ureg_UIF(ureg, src, tx_cond(tx));
1686 ureg_CAL(ureg, &tx->inst_labels[tx->insn.src[0].idx]);
1688 ureg_ENDIF(ureg);
1694 struct ureg_program *ureg = tx->ureg;
1706 ureg_MOV(ureg, ctr, src);
1707 ureg_BGNLOOP(tx->ureg, label);
1717 ureg_SGE(ureg, tmp, ureg_imm1f(ureg, 0.5f), ctrx);
1718 ureg_IF(ureg, tx_src_scalar(tmp), tx_cond(tx));
1721 ureg_ISGE(ureg, tmp, ureg_imm1i(ureg, 0), ctrx);
1722 ureg_UIF(ureg, tx_src_scalar(tmp), tx_cond(tx));
1724 ureg_BRK(ureg);
1726 ureg_ENDIF(ureg);
1732 ureg_RET(tx->ureg);
1738 struct ureg_program *ureg = tx->ureg;
1751 ureg_ADD(ureg, dst_ctrx, src_ctr, ureg_imm1f(ureg, -1.0f));
1752 ureg_ADD(ureg, dst_al, src_ctr, al_counter);
1754 ureg_UADD(ureg, dst_ctrx, src_ctr, ureg_imm1i(ureg, -1));
1755 ureg_UADD(ureg, dst_al, src_ctr, al_counter);
1757 ureg_ENDLOOP(tx->ureg, tx_endloop(tx));
1771 tx->inst_labels[n] = ureg_get_instruction_number(tx->ureg);
1783 ureg_SCS(tx->ureg, dst, src);
1789 ureg_SSG(tx->ureg,
1797 struct ureg_program *ureg = tx->ureg;
1812 ureg_MOV(ureg, ctr, rep);
1813 ureg_BGNLOOP(ureg, label);
1822 ureg_SGE(ureg, tmp, ureg_imm1f(ureg, 0.5f), ctrx);
1823 ureg_IF(ureg, tx_src_scalar(tmp), tx_cond(tx));
1826 ureg_ISGE(ureg, tmp, ureg_imm1i(ureg, 0), ctrx);
1827 ureg_UIF(ureg, tx_src_scalar(tmp), tx_cond(tx));
1829 ureg_BRK(ureg);
1831 ureg_ENDIF(ureg);
1838 struct ureg_program *ureg = tx->ureg;
1845 ureg_ADD(ureg, dst_ctrx, src_ctr, ureg_imm1f(ureg, -1.0f));
1847 ureg_UADD(ureg, dst_ctrx, src_ctr, ureg_imm1i(ureg, -1));
1849 ureg_ENDLOOP(tx->ureg, tx_endloop(tx));
1856 ureg_ENDIF(tx->ureg);
1865 ureg_UIF(tx->ureg, src, tx_cond(tx));
1867 ureg_IF(tx->ureg, src, tx_cond(tx));
1895 ureg_insn(tx->ureg, cmp_op, &tmp, 1, src, 2);
1896 ureg_IF(tx->ureg, ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), tx_cond(tx));
1902 ureg_ELSE(tx->ureg, tx_elsecond(tx));
1913 ureg_insn(tx->ureg, cmp_op, &tmp, 1, src, 2);
1914 ureg_IF(tx->ureg, ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), tx_cond(tx));
1915 ureg_BRK(tx->ureg);
1917 ureg_ENDIF(tx->ureg);
2131 struct ureg_program *ureg = tx->ureg;
2157 ureg_DECL_sampler(ureg, sem.reg.idx);
2169 ureg_DECL_vs_input(ureg, sem.reg.idx);
2183 ureg, tgsi.Name, tgsi.Index, sem.reg.mask, 0, 1);
2187 tx->regs.o[sem.reg.idx] = ureg_DECL_temporary(ureg);
2192 ureg);
2220 ureg, tgsi.Name, tgsi.Index,
2228 ureg_DECL_output_masked(ureg, tgsi.Name, tgsi.Index, sem.reg.mask,
2260 ureg_POW(tx->ureg, dst, ureg_abs(src[0]), src[1]);
2266 struct ureg_program *ureg = tx->ureg;
2270 ureg_RSQ(ureg, tmp, ureg_abs(src));
2271 ureg_MIN(ureg, dst, ureg_imm1f(ureg, FLT_MAX), ureg_src(tmp));
2277 struct ureg_program *ureg = tx->ureg;
2281 ureg_LG2(ureg, tmp, ureg_abs(src));
2282 ureg_MAX(ureg, dst, ureg_imm1f(ureg, -FLT_MAX), tx_src_scalar(tmp));
2288 struct ureg_program *ureg = tx->ureg;
2292 ureg_LIT(ureg, tmp, src);
2296 ureg_CMP(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Z),
2298 ureg_src(tmp), ureg_imm1f(ureg, 0.0f));
2299 ureg_MOV(ureg, ureg_writemask(dst, TGSI_WRITEMASK_XYW), ureg_src(tmp));
2305 struct ureg_program *ureg = tx->ureg;
2310 ureg_DP3(ureg, tmp, src, src);
2311 ureg_RSQ(ureg, tmp, nrm);
2312 ureg_MIN(ureg, tmp, ureg_imm1f(ureg, FLT_MAX), nrm);
2313 ureg_MUL(ureg, dst, src, nrm);
2328 ureg_DP2(tx->ureg, tmp, src[0], src[1]);
2329 ureg_ADD(tx->ureg, dst, src[2], dp2);
2336 struct ureg_program *ureg = tx->ureg;
2341 ureg_MOV(ureg, ureg_writemask(ureg_saturate(dst), TGSI_WRITEMASK_XYZ), tx->regs.vT[s]);
2342 ureg_MOV(ureg, ureg_writemask(dst, TGSI_WRITEMASK_W), ureg_imm1f(tx->ureg, 1.0f));
2349 struct ureg_program *ureg = tx->ureg;
2355 ureg_MOV(ureg, dst, src);
2372 ureg_KILL_IF(tx->ureg, reg);
2379 struct ureg_program *ureg = tx->ureg;
2389 sample = ureg_DECL_sampler(ureg, m);
2422 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), m00,
2425 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), m10,
2430 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), m01,
2433 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), m11,
2440 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m), ureg_src(tmp), sample);
2443 ureg_TEX(ureg, tmp, ps1x_sampler_type(tx->info, m), ureg_src(tmp), sample);
2444 ureg_MAD(ureg, tmp2, NINE_APPLY_SWIZZLE(ureg_src(tx->regs.tS[n]), Z),
2446 ureg_MUL(ureg, dst, ureg_src(tmp), ureg_src(tmp2));
2456 struct ureg_program *ureg = tx->ureg;
2463 sample = ureg_DECL_sampler(ureg, m);
2465 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m), ureg_swizzle(ureg_src(tx->regs.tS[n]), NINE_SWIZZLE4(W,X,X,X)), sample);
2472 struct ureg_program *ureg = tx->ureg;
2479 sample = ureg_DECL_sampler(ureg, m);
2481 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m), ureg_swizzle(ureg_src(tx->regs.tS[n]), NINE_SWIZZLE4(Y,Z,Z,Z)), sample);
2493 struct ureg_program *ureg = tx->ureg;
2504 ureg_DP3(ureg, ureg_writemask(dst, TGSI_WRITEMASK_X), tx->regs.vT[m], ureg_src(tx->regs.tS[n]));
2505 ureg_DP3(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Y), tx->regs.vT[m+1], ureg_src(tx->regs.tS[n]));
2507 sample = ureg_DECL_sampler(ureg, m + 1);
2509 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m + 1), ureg_src(dst), sample);
2521 struct ureg_program *ureg = tx->ureg;
2534 ureg_DP3(ureg, ureg_writemask(dst, TGSI_WRITEMASK_X), tx->regs.vT[m], ureg_src(tx->regs.tS[n]));
2535 ureg_DP3(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Y), tx->regs.vT[m+1], ureg_src(tx->regs.tS[n]));
2536 ureg_DP3(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Z), tx->regs.vT[m+2], ureg_src(tx->regs.tS[n]));
2538 sample = ureg_DECL_sampler(ureg, m + 2);
2545 ureg_DP3(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_src(dst), ureg_src(dst));
2546 ureg_RCP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X));
2548 ureg_DP3(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_src(dst), E);
2550 ureg_MUL(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y));
2552 ureg_MUL(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(ureg, 2.0f));
2553 ureg_MUL(ureg, tmp, ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_src(dst));
2555 ureg_ADD(ureg, tmp, ureg_src(tmp), ureg_negate(E));
2556 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m + 2), ureg_src(tmp), sample);
2563 struct ureg_program *ureg = tx->ureg;
2570 sample = ureg_DECL_sampler(ureg, m);
2572 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m), ureg_src(tx->regs.tS[n]), sample);
2579 struct ureg_program *ureg = tx->ureg;
2590 ureg_DP3(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), tx->regs.vT[m], ureg_src(tx->regs.tS[n]));
2591 ureg_MOV(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_YZ), ureg_imm1f(ureg, 0.0f));
2593 sample = ureg_DECL_sampler(ureg, m);
2595 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m), ureg_src(tmp), sample);
2602 struct ureg_program *ureg = tx->ureg;
2614 ureg_DP3(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), tx->regs.vT[m], ureg_src(tx->regs.tS[n]));
2615 ureg_DP3(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), tx->regs.vT[m+1], ureg_src(tx->regs.tS[n]));
2617 ureg_RCP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Z), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y));
2619 ureg_MUL(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Z));
2621 ureg_CMP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_negate(ureg_abs(ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y))),
2622 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(ureg, 1.0f));
2624 tx->regs.oDepth = ureg_DECL_output_masked(ureg, TGSI_SEMANTIC_POSITION, 0,
2626 ureg_MOV(ureg, tx->regs.oDepth, ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X));
2633 struct ureg_program *ureg = tx->ureg;
2641 ureg_DP3(ureg, dst, tx->regs.vT[m], ureg_src(tx->regs.tS[n]));
2648 struct ureg_program *ureg = tx->ureg;
2660 ureg_DP3(ureg
2661 ureg_DP3(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Y), tx->regs.vT[m+1], ureg_src(tx->regs.tS[n]));
2662 ureg_DP3(ureg, ureg_writemask(dst, TGSI_WRITEMASK_Z), tx->regs.vT[m+2], ureg_src(tx->regs.tS[n]));
2666 ureg_MOV(ureg, ureg_writemask(dst, TGSI_WRITEMASK_W), ureg_imm1f(ureg, 1.0f));
2669 sample = ureg_DECL_sampler(ureg, m + 2);
2671 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m + 2), ureg_src(dst), sample);
2674 sample = ureg_DECL_sampler(ureg, m + 2);
2678 ureg_MOV(ureg, ureg_writemask(E, TGSI_WRITEMASK_X), ureg_scalar(tx->regs.vT[m], TGSI_SWIZZLE_W));
2679 ureg_MOV(ureg, ureg_writemask(E, TGSI_WRITEMASK_Y), ureg_scalar(tx->regs.vT[m+1], TGSI_SWIZZLE_W));
2680 ureg_MOV(ureg, ureg_writemask(E, TGSI_WRITEMASK_Z), ureg_scalar(tx->regs.vT[m+2], TGSI_SWIZZLE_W));
2684 ureg_DP3(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_src(dst), ureg_src(dst));
2685 ureg_RCP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X));
2687 ureg_DP3(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_src(dst), ureg_src(E));
2689 ureg_MUL(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_Y));
2691 ureg_MUL(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_imm1f(ureg, 2.0f));
2692 ureg_MUL(ureg, tmp, ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_X), ureg_src(dst));
2694 ureg_ADD(ureg, tmp, ureg_src(tmp), ureg_negate(ureg_src(E)));
2695 ureg_TEX(ureg, dst, ps1x_sampler_type(tx->info, m + 2), ureg_src(tmp), sample);
2705 struct ureg_program *ureg = tx->ureg;
2717 ureg_RCP(ureg, ureg_writemask(r5, TGSI_WRITEMASK_Z), r5g);
2718 ureg_MUL(ureg, ureg_writemask(r5, TGSI_WRITEMASK_X), r5r, ureg_scalar(ureg_src(r5), TGSI_SWIZZLE_Z));
2720 ureg_CMP(ureg, ureg_writemask(r5, TGSI_WRITEMASK_X), ureg_negate(ureg_abs(r5g)),
2721 r5r, ureg_imm1f(ureg, 1.0f));
2723 tx->regs.oDepth = ureg_DECL_output_masked(ureg, TGSI_SEMANTIC_POSITION, 0,
2725 ureg_MOV(ureg, tx->regs.oDepth, r5r);
2732 struct ureg_program *ureg = tx->ureg;
2752 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), m00,
2755 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), m10,
2759 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), m01,
2762 ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), m11,
2764 ureg_MOV(ureg, ureg_writemask(dst, TGSI_WRITEMASK_XY), ureg_src(tmp));
2773 struct ureg_program *ureg = tx->ureg;
2786 ureg_TEX(ureg, dst, target, src[0], src[1]);
2789 ureg_TXP(ureg, dst, target, src[0], src[1]);
2792 ureg_TXB(ureg, dst, target, src[0], src[1]);
2803 struct ureg_program *ureg = tx->ureg;
2810 ureg_TEX(ureg, dst, t, src, ureg_DECL_sampler(ureg, s));
2817 struct ureg_program *ureg = tx->ureg;
2826 src[1] = ureg_DECL_sampler(ureg, s);
2848 ureg_TXD(tx->ureg, dst, target, src[0], src[2], src[3], src[1]);
2864 ureg_TXL(tx->ureg, dst, target, src[0], src[1]);
3043 ureg_insn(tx->ureg, tx->insn.info->opcode,
3416 struct ureg_program *ureg = tx->ureg;
3419 /* struct ureg_dst pos_tmp = ureg_DECL_temporary(ureg);*/
3425 * ureg_MUL(ureg, ureg_writemask(pos_tmp, TGSI_WRITEMASK_XYZ), ureg_src(tx->regs.oPos), c0);
3426 * ureg_ADD(ureg, ureg_writemask(tx->regs.oPos_out, TGSI_WRITEMASK_XYZ), ureg_src(pos_tmp), c1);
3428 ureg_MOV(ureg, ureg_writemask(tx->regs.oPos_out, TGSI_WRITEMASK_XYZ), ureg_src(tx->regs.oPos));
3434 struct ureg_program *ureg = tx->ureg;
3435 struct ureg_dst oCol0 = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0);
3441 ureg_MOV(ureg, oCol0, src_col);
3457 ureg_ADD(ureg, fog_factor, fog_end, ureg_negate(depth));
3458 ureg_MUL(ureg, ureg_saturate(fog_factor), tx_src_scalar(fog_factor), fog_coeff);
3461 ureg_MUL(ureg, fog_factor, depth, fog_density);
3462 ureg_MUL(ureg, fog_factor, tx_src_scalar(fog_factor), ureg_imm1f(ureg, -1.442695f));
3463 ureg_EX2(ureg, fog_factor, tx_src_scalar(fog_factor));
3466 ureg_MUL(ureg, fog_factor, depth, fog_density);
3467 ureg_MUL(ureg, fog_factor, tx_src_scalar(fog_factor), tx_src_scalar(fog_factor));
3468 ureg_MUL(ureg, fog_factor, tx_src_scalar(fog_factor), ureg_imm1f(ureg, -1.442695f));
3469 ureg_EX2(ureg, fog_factor, tx_src_scalar(fog_factor));
3471 fog_vs = ureg_scalar(ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_FOG, 0,
3474 ureg_MOV(ureg, fog_factor, fog_vs);
3477 ureg_LRP(ureg, ureg_writemask(oCol0, TGSI_WRITEMASK_XYZ),
3479 ureg_MOV(ureg, ureg_writemask(oCol0, TGSI_WRITEMASK_W), src_col);
3516 tx->ureg = ureg_create(processor);
3517 if (!tx->ureg) {
3560 tx->regs.oPos = ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_POSITION, 0);
3562 ureg_property(tx->ureg, TGSI_PROPERTY_FS_COORD_ORIGIN, TGSI_FS_COORD_ORIGIN_UPPER_LEFT);
3564 ureg_property(tx->ureg, TGSI_PROPERTY_FS_COORD_PIXEL_CENTER, TGSI_FS_COORD_PIXEL_CENTER_INTEGER);
3576 ureg_destroy(tx->ureg);
3592 tx->regs.oFog = ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_FOG, 0);
3593 ureg_MOV(tx->ureg, ureg_writemask(tx->regs.oFog, TGSI_WRITEMASK_X), ureg_imm1f(tx->ureg, 0.0f));
3597 ureg_property(tx->ureg, TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION, TRUE);
3600 struct ureg_dst oPts = ureg_DECL_output(tx->ureg, TGSI_SEMANTIC_PSIZE, 0);
3601 ureg_MAX(tx->ureg, tx->regs.oPts, ureg_src(tx->regs.oPts), ureg_imm1f(tx->ureg, info->point_size_min));
3602 ureg_MIN(tx->ureg, oPts, ureg_src(tx->regs.oPts), ureg_imm1f(tx->ureg, info->point_size_max));
3609 ureg_END(tx->ureg);
3693 ureg_DECL_constant(tx->ureg, s);
3695 ureg_DECL_constant2D(tx->ureg, 0, 4095, 0);
3696 ureg_DECL_constant2D(tx->ureg, 0, 4095, 1);
3697 ureg_DECL_constant2D(tx->ureg, 0, 2047, 2);
3698 ureg_DECL_constant2D(tx->ureg, 0, 511, 3);
3702 ureg_DECL_constant2D(tx->ureg, 0, 2, 4); /* Viewport data */
3706 const struct tgsi_token *toks = ureg_get_tokens(tx->ureg, &count);
3716 info->cso = ureg_create_shader_with_so_and_destroy(tx->ureg, pipe, &(info->so));
3718 info->cso = ureg_create_shader_and_destroy(tx->ureg, pipe);