• Home
  • Raw
  • Download

Lines Matching refs:ureg

171 static void nine_ureg_tgsi_dump(struct ureg_program *ureg, boolean override)  in nine_ureg_tgsi_dump()  argument
174 const struct tgsi_token *toks = ureg_get_tokens(ureg, NULL); in nine_ureg_tgsi_dump()
194 ureg_src_indirect(ureg_DECL_constant(ureg, i), _X(AL))
197 ureg_DECL_constant(ureg, 19 + (i))
199 #define _CONST(n) ureg_DECL_constant(ureg, n)
277 struct ureg_program *ureg; member
314 return ureg_DECL_vs_input(vs->ureg, i); in build_vs_add_input()
319 ureg_normalize3(struct ureg_program *ureg, in ureg_normalize3() argument
322 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in ureg_normalize3()
325 ureg_DP3(ureg, tmp_x, src, src); in ureg_normalize3()
326 ureg_RSQ(ureg, tmp_x, _X(tmp)); in ureg_normalize3()
327 ureg_MUL(ureg, dst, src, _X(tmp)); in ureg_normalize3()
328 ureg_release_temporary(ureg, tmp); in ureg_normalize3()
335 struct ureg_program *ureg = ureg_create(PIPE_SHADER_VERTEX); in nine_ff_build_vs() local
345 vs->ureg = ureg; in nine_ff_build_vs()
375 vs->aNrm = ureg_imm1f(ureg, 0.0f); in nine_ff_build_vs()
379 vs->aCol[0] = ureg_imm1f(ureg, 1.0f); in nine_ff_build_vs()
380 vs->aCol[1] = ureg_imm1f(ureg, 0.0f); in nine_ff_build_vs()
421 oPos = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0); /* HPOS */ in nine_ff_build_vs()
422 oCol[0] = ureg_saturate(ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0)); in nine_ff_build_vs()
423 oCol[1] = ureg_saturate(ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 1)); in nine_ff_build_vs()
425 oFog = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 16); in nine_ff_build_vs()
430 oPsz = ureg_DECL_output_masked(ureg, TGSI_SEMANTIC_PSIZE, 0, in nine_ff_build_vs()
436 AR = ureg_DECL_address(ureg); in nine_ff_build_vs()
443 ureg_MOV(ureg, oPos, vs->aVtx); in nine_ff_build_vs()
445 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
451 ureg_MOV(ureg, tmp, vs->aVtx); in nine_ff_build_vs()
453 … ureg_ADD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_XYZ), ureg_src(tmp), ureg_negate(_CONST(101))); in nine_ff_build_vs()
454 ureg_MUL(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_XYZ), ureg_src(tmp), _CONST(100)); in nine_ff_build_vs()
455 … ureg_ADD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_XY), ureg_src(tmp), ureg_imm1f(ureg, -1.0f)); in nine_ff_build_vs()
457 ureg_MOV(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_Y), ureg_negate(ureg_src(tmp))); in nine_ff_build_vs()
459 …ureg_CMP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_W), ureg_negate(ureg_abs(ureg_scalar(ureg_src(tm… in nine_ff_build_vs()
460 ureg_scalar(ureg_src(tmp), TGSI_SWIZZLE_W), ureg_imm1f(ureg, 1.0f)); in nine_ff_build_vs()
462 ureg_RCP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_W), _W(tmp)); in nine_ff_build_vs()
464 ureg_MUL(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_XYZ), ureg_src(tmp), _W(tmp)); in nine_ff_build_vs()
465 ureg_MOV(ureg, oPos, ureg_src(tmp)); in nine_ff_build_vs()
466 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
469 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
470 struct ureg_dst tmp2 = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
471 struct ureg_dst aVtx_dst = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
472 struct ureg_dst aNrm_dst = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
473 struct ureg_dst sum_blendweights = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
477 ureg_DECL_constant(ureg, i); in nine_ff_build_vs()
481 ureg_MAD(ureg, tmp, vs->aInd, ureg_imm1f(ureg, 4.0f), ureg_imm1f(ureg, 160.0f)); in nine_ff_build_vs()
482 ureg_ARL(ureg, AR, ureg_src(tmp)); in nine_ff_build_vs()
485 ureg_MOV(ureg, aVtx_dst, ureg_imm4f(ureg, 0.0f, 0.0f, 0.0f, 0.0f)); in nine_ff_build_vs()
486 ureg_MOV(ureg, aNrm_dst, ureg_imm4f(ureg, 0.0f, 0.0f, 0.0f, 0.0f)); in nine_ff_build_vs()
487 ureg_MOV(ureg, sum_blendweights, ureg_imm4f(ureg, 1.0f, 1.0f, 1.0f, 1.0f)); in nine_ff_build_vs()
497 ureg_MUL(ureg, tmp, _XXXX(vs->aVtx), cWM[0]); in nine_ff_build_vs()
498 ureg_MAD(ureg, tmp, _YYYY(vs->aVtx), cWM[1], ureg_src(tmp)); in nine_ff_build_vs()
499 ureg_MAD(ureg, tmp, _ZZZZ(vs->aVtx), cWM[2], ureg_src(tmp)); in nine_ff_build_vs()
500 ureg_MAD(ureg, tmp, _WWWW(vs->aVtx), cWM[3], ureg_src(tmp)); in nine_ff_build_vs()
507 ureg_MUL(ureg, tmp2, _XXXX(vs->aNrm), cWM[0]); in nine_ff_build_vs()
508 ureg_MAD(ureg, tmp2, _YYYY(vs->aNrm), cWM[1], ureg_src(tmp2)); in nine_ff_build_vs()
509 ureg_MAD(ureg, tmp2, _ZZZZ(vs->aNrm), cWM[2], ureg_src(tmp2)); in nine_ff_build_vs()
514 … ureg_MAD(ureg, aVtx_dst, ureg_src(tmp), ureg_scalar(vs->aWgt, i), ureg_src(aVtx_dst)); in nine_ff_build_vs()
516 … ureg_MAD(ureg, aNrm_dst, ureg_src(tmp2), ureg_scalar(vs->aWgt, i), ureg_src(aNrm_dst)); in nine_ff_build_vs()
518 …ureg_ADD(ureg, sum_blendweights, ureg_src(sum_blendweights), ureg_negate(ureg_scalar(vs->aWgt, i))… in nine_ff_build_vs()
523 …ureg_MAD(ureg, aVtx_dst, ureg_src(tmp), ureg_scalar(ureg_src(sum_blendweights), key->vertexblend -… in nine_ff_build_vs()
525 …ureg_MAD(ureg, aNrm_dst, ureg_src(tmp2), ureg_scalar(ureg_src(sum_blendweights), key->vertexblend … in nine_ff_build_vs()
528 ureg_MUL(ureg, tmp, _X(aVtx_dst), _CONST(8)); in nine_ff_build_vs()
529 ureg_MAD(ureg, tmp, _Y(aVtx_dst), _CONST(9), ureg_src(tmp)); in nine_ff_build_vs()
530 ureg_MAD(ureg, tmp, _Z(aVtx_dst), _CONST(10), ureg_src(tmp)); in nine_ff_build_vs()
531 ureg_MAD(ureg, oPos, _W(aVtx_dst), _CONST(11), ureg_src(tmp)); in nine_ff_build_vs()
536 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
537 ureg_release_temporary(ureg, tmp2); in nine_ff_build_vs()
538 ureg_release_temporary(ureg, sum_blendweights); in nine_ff_build_vs()
540 ureg_release_temporary(ureg, aVtx_dst); in nine_ff_build_vs()
544 ureg_normalize3(ureg, aNrm_dst, ureg_src(aNrm_dst)); in nine_ff_build_vs()
547 ureg_release_temporary(ureg, aNrm_dst); in nine_ff_build_vs()
549 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
552 struct ureg_dst aVtx_dst = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
553 ureg_LRP(ureg, aVtx_dst, _XXXX(_CONST(30)), vs->aVtx1, vs->aVtx); in nine_ff_build_vs()
556 struct ureg_dst aNrm_dst = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
557 ureg_LRP(ureg, aNrm_dst, _XXXX(_CONST(30)), vs->aNrm1, vs->aNrm); in nine_ff_build_vs()
563 ureg_MUL(ureg, tmp, _XXXX(vs->aVtx), _CONST(0)); in nine_ff_build_vs()
564 ureg_MAD(ureg, tmp, _YYYY(vs->aVtx), _CONST(1), ureg_src(tmp)); in nine_ff_build_vs()
565 ureg_MAD(ureg, tmp, _ZZZZ(vs->aVtx), _CONST(2), ureg_src(tmp)); in nine_ff_build_vs()
566 ureg_MAD(ureg, oPos, _WWWW(vs->aVtx), _CONST(3), ureg_src(tmp)); in nine_ff_build_vs()
567 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
570 … struct ureg_dst aVtx_dst = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_XYZ); in nine_ff_build_vs()
571 ureg_MUL(ureg, aVtx_dst, _XXXX(vs->aVtx), _CONST(4)); in nine_ff_build_vs()
572 ureg_MAD(ureg, aVtx_dst, _YYYY(vs->aVtx), _CONST(5), ureg_src(aVtx_dst)); in nine_ff_build_vs()
573 ureg_MAD(ureg, aVtx_dst, _ZZZZ(vs->aVtx), _CONST(6), ureg_src(aVtx_dst)); in nine_ff_build_vs()
574 ureg_MAD(ureg, aVtx_dst, _WWWW(vs->aVtx), _CONST(7), ureg_src(aVtx_dst)); in nine_ff_build_vs()
578 … struct ureg_dst aNrm_dst = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_XYZ); in nine_ff_build_vs()
579 ureg_MUL(ureg, aNrm_dst, _XXXX(vs->aNrm), _CONST(16)); in nine_ff_build_vs()
580 ureg_MAD(ureg, aNrm_dst, _YYYY(vs->aNrm), _CONST(17), ureg_src(aNrm_dst)); in nine_ff_build_vs()
581 ureg_MAD(ureg, aNrm_dst, _ZZZZ(vs->aNrm), _CONST(18), ureg_src(aNrm_dst)); in nine_ff_build_vs()
583 ureg_normalize3(ureg, aNrm_dst, ureg_src(aNrm_dst)); in nine_ff_build_vs()
591 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
596 struct ureg_src cPsz1 = ureg_DECL_constant(ureg, 26); in nine_ff_build_vs()
597 ureg_MAX(ureg, tmp_z, _XXXX(vs->aPsz), _XXXX(cPsz1)); in nine_ff_build_vs()
598 ureg_MIN(ureg, tmp_z, _Z(tmp), _YYYY(cPsz1)); in nine_ff_build_vs()
600 struct ureg_src cPsz1 = ureg_DECL_constant(ureg, 26); in nine_ff_build_vs()
601 ureg_MOV(ureg, tmp_z, _ZZZZ(cPsz1)); in nine_ff_build_vs()
605 struct ureg_src cPsz1 = ureg_DECL_constant(ureg, 26); in nine_ff_build_vs()
606 struct ureg_src cPsz2 = ureg_DECL_constant(ureg, 27); in nine_ff_build_vs()
608 ureg_DP3(ureg, tmp_x, vs->aVtx, vs->aVtx); in nine_ff_build_vs()
609 ureg_RSQ(ureg, tmp_y, _X(tmp)); in nine_ff_build_vs()
610 ureg_MUL(ureg, tmp_y, _Y(tmp), _X(tmp)); in nine_ff_build_vs()
611 ureg_CMP(ureg, tmp_y, ureg_negate(_Y(tmp)), _Y(tmp), ureg_imm1f(ureg, 0.0f)); in nine_ff_build_vs()
612 ureg_MAD(ureg, tmp_x, _Y(tmp), _YYYY(cPsz2), _XXXX(cPsz2)); in nine_ff_build_vs()
613 ureg_MAD(ureg, tmp_x, _Y(tmp), _X(tmp), _WWWW(cPsz1)); in nine_ff_build_vs()
614 ureg_RSQ(ureg, tmp_x, _X(tmp)); in nine_ff_build_vs()
615 ureg_MUL(ureg, tmp_x, _X(tmp), _Z(tmp)); in nine_ff_build_vs()
616 ureg_MUL(ureg, tmp_x, _X(tmp), _WWWW(_CONST(100))); in nine_ff_build_vs()
617 ureg_MAX(ureg, tmp_x, _X(tmp), _XXXX(cPsz1)); in nine_ff_build_vs()
618 ureg_MIN(ureg, tmp_z, _X(tmp), _YYYY(cPsz1)); in nine_ff_build_vs()
621 ureg_MOV(ureg, oPsz, _Z(tmp)); in nine_ff_build_vs()
622 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
637 oTex = ureg_DECL_output(ureg, texcoord_sn, i); in nine_ff_build_vs()
638 tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
640 input_coord = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
641 transformed = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
649 ureg_MOV(ureg, input_coord, vs->aTex[idx]); in nine_ff_build_vs()
652 ureg_MOV(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_XYZ), vs->aNrm); in nine_ff_build_vs()
653 ureg_MOV(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_W), ureg_imm1f(ureg, 1.0f)); in nine_ff_build_vs()
657 ureg_MOV(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_XYZ), vs->aVtx); in nine_ff_build_vs()
658 ureg_MOV(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_W), ureg_imm1f(ureg, 1.0f)); in nine_ff_build_vs()
663 aVtx_normed = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
664 ureg_normalize3(ureg, aVtx_normed, vs->aVtx); in nine_ff_build_vs()
665 ureg_DP3(ureg, tmp_x, ureg_src(aVtx_normed), vs->aNrm); in nine_ff_build_vs()
666 ureg_MUL(ureg, tmp, vs->aNrm, _X(tmp)); in nine_ff_build_vs()
667 ureg_ADD(ureg, tmp, ureg_src(tmp), ureg_src(tmp)); in nine_ff_build_vs()
668 …ureg_ADD(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_XYZ), ureg_src(aVtx_normed), ureg_negate… in nine_ff_build_vs()
669 ureg_MOV(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_W), ureg_imm1f(ureg, 1.0f)); in nine_ff_build_vs()
670 ureg_release_temporary(ureg, aVtx_normed); in nine_ff_build_vs()
677 aVtx_normed = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
678 tmp2 = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
679 ureg_normalize3(ureg, aVtx_normed, vs->aVtx); in nine_ff_build_vs()
680 ureg_DP3(ureg, tmp_x, ureg_src(aVtx_normed), vs->aNrm); in nine_ff_build_vs()
681 ureg_MUL(ureg, tmp, vs->aNrm, _X(tmp)); in nine_ff_build_vs()
682 ureg_ADD(ureg, tmp, ureg_src(tmp), ureg_src(tmp)); in nine_ff_build_vs()
683 ureg_ADD(ureg, tmp, ureg_src(aVtx_normed), ureg_negate(ureg_src(tmp))); in nine_ff_build_vs()
685 ureg_MOV(ureg, ureg_writemask(tmp2, TGSI_WRITEMASK_XYZ), ureg_src(tmp)); in nine_ff_build_vs()
686 ureg_MUL(ureg, tmp2, ureg_src(tmp2), ureg_src(tmp2)); in nine_ff_build_vs()
687 ureg_DP3(ureg, ureg_writemask(tmp2, TGSI_WRITEMASK_X), ureg_src(tmp2), ureg_src(tmp2)); in nine_ff_build_vs()
688 ureg_RSQ(ureg, ureg_writemask(tmp2, TGSI_WRITEMASK_X), ureg_src(tmp2)); in nine_ff_build_vs()
689 … ureg_MUL(ureg, ureg_writemask(tmp2, TGSI_WRITEMASK_X), ureg_src(tmp2), ureg_imm1f(ureg, 0.5f)); in nine_ff_build_vs()
692 ureg_MUL(ureg, tmp, ureg_src(tmp), _X(tmp2)); in nine_ff_build_vs()
693 …ureg_ADD(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_XY), ureg_src(tmp), ureg_imm1f(ureg, 0.5… in nine_ff_build_vs()
694 …ureg_MOV(ureg, ureg_writemask(input_coord, TGSI_WRITEMASK_ZW), ureg_imm4f(ureg, 0.0f, 0.0f, 0.0f, … in nine_ff_build_vs()
695 ureg_release_temporary(ureg, aVtx_normed); in nine_ff_build_vs()
696 ureg_release_temporary(ureg, tmp2); in nine_ff_build_vs()
709 ureg_release_temporary(ureg, transformed); in nine_ff_build_vs()
717 …case 1: ureg_MAD(ureg, t, _X(input_coord), _XXXX(_CONST(128 + i * 4 + c)), _YYYY(_CONST(128 + i * … in nine_ff_build_vs()
719 case 2: ureg_DP2(ureg, t, ureg_src(input_coord), _CONST(128 + i * 4 + c)); in nine_ff_build_vs()
720 ureg_ADD(ureg, t, ureg_src(transformed), _ZZZZ(_CONST(128 + i * 4 + c))); in nine_ff_build_vs()
722 case 3: ureg_DP3(ureg, t, ureg_src(input_coord), _CONST(128 + i * 4 + c)); in nine_ff_build_vs()
723 ureg_ADD(ureg, t, ureg_src(transformed), _WWWW(_CONST(128 + i * 4 + c))); in nine_ff_build_vs()
725 case 4: ureg_DP4(ureg, t, ureg_src(input_coord), _CONST(128 + i * 4 + c)); break; in nine_ff_build_vs()
731 ureg_release_temporary(ureg, input_coord); in nine_ff_build_vs()
734 ureg_MOV(ureg, ureg_writemask(oTex, writemask), ureg_src(transformed)); in nine_ff_build_vs()
735 ureg_release_temporary(ureg, transformed); in nine_ff_build_vs()
736 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
781 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
785 struct ureg_dst rAtt = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_W); in nine_ff_build_vs()
786 struct ureg_dst rHit = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_XYZ); in nine_ff_build_vs()
787 struct ureg_dst rMid = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_XYZ); in nine_ff_build_vs()
789 struct ureg_dst rCtr = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_W); in nine_ff_build_vs()
794 struct ureg_dst rD = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_XYZ); in nine_ff_build_vs()
795 struct ureg_dst rA = ureg_writemask(ureg_DECL_temporary(ureg), TGSI_WRITEMASK_XYZ); in nine_ff_build_vs()
796 struct ureg_dst rS = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
820 ureg_DECL_constant(ureg, i); in nine_ff_build_vs()
822 ureg_MOV(ureg, rCtr, ureg_imm1f(ureg, 32.0f)); /* &lightconst(0) */ in nine_ff_build_vs()
823 ureg_MOV(ureg, rD, ureg_imm1f(ureg, 0.0f)); in nine_ff_build_vs()
824 ureg_MOV(ureg, rA, ureg_imm1f(ureg, 0.0f)); in nine_ff_build_vs()
825 ureg_MOV(ureg, rS, ureg_imm1f(ureg, 0.0f)); in nine_ff_build_vs()
828 ureg_BGNLOOP(ureg, &label[loop_label]); in nine_ff_build_vs()
829 ureg_ARL(ureg, AL, _W(rCtr)); in nine_ff_build_vs()
832 ureg_SNE(ureg, tmp_x, cLKind, ureg_imm1f(ureg, D3DLIGHT_DIRECTIONAL)); in nine_ff_build_vs()
833 ureg_MOV(ureg, rHit, ureg_negate(cLDir)); in nine_ff_build_vs()
834 ureg_MOV(ureg, rAtt, ureg_imm1f(ureg, 1.0f)); in nine_ff_build_vs()
835 ureg_IF(ureg, _X(tmp), &label[l++]); in nine_ff_build_vs()
840 ureg_ADD(ureg, rHit, cLPos, ureg_negate(vs->aVtx)); in nine_ff_build_vs()
841 ureg_DP3(ureg, tmp_x, ureg_src(rHit), ureg_src(rHit)); in nine_ff_build_vs()
842 ureg_RSQ(ureg, tmp_y, _X(tmp)); in nine_ff_build_vs()
843 ureg_MUL(ureg, tmp_x, _X(tmp), _Y(tmp)); /* length */ in nine_ff_build_vs()
846 ureg_MAD(ureg, rAtt, _X(tmp), cLAtt2, cLAtt1); in nine_ff_build_vs()
847 ureg_MAD(ureg, rAtt, _X(tmp), _W(rAtt), cLAtt0); in nine_ff_build_vs()
848 ureg_RCP(ureg, rAtt, _W(rAtt)); in nine_ff_build_vs()
850 ureg_SLT(ureg, tmp_x, _X(tmp), cLRng); in nine_ff_build_vs()
851 ureg_MUL(ureg, rAtt, _W(rAtt), _X(tmp)); in nine_ff_build_vs()
853 ureg_fixup_label(ureg, label[l-1], ureg_get_instruction_number(ureg)); in nine_ff_build_vs()
854 ureg_ENDIF(ureg); in nine_ff_build_vs()
857 ureg_normalize3(ureg, rHit, ureg_src(rHit)); in nine_ff_build_vs()
860 ureg_SEQ(ureg, tmp_x, cLKind, ureg_imm1f(ureg, D3DLIGHT_SPOT)); in nine_ff_build_vs()
861 ureg_IF(ureg, _X(tmp), &label[l++]); in nine_ff_build_vs()
873 ureg_DP3(ureg, tmp_y, ureg_negate(ureg_src(rHit)), cLDir); /* rho */ in nine_ff_build_vs()
874 ureg_ADD(ureg, tmp_x, _Y(tmp), ureg_negate(cLPhi)); in nine_ff_build_vs()
875 ureg_MUL(ureg, tmp_x, _X(tmp), cLSDiv); in nine_ff_build_vs()
876 ureg_POW(ureg, tmp_x, _X(tmp), cLFOff); /* spotAtten */ in nine_ff_build_vs()
877 ureg_SGE(ureg, tmp_z, _Y(tmp), cLTht); /* if inside theta && phi */ in nine_ff_build_vs()
878 ureg_SGE(ureg, tmp_y, _Y(tmp), cLPhi); /* if inside phi */ in nine_ff_build_vs()
879 ureg_MAD(ureg, ureg_saturate(tmp_x), _X(tmp), _Y(tmp), _Z(tmp)); in nine_ff_build_vs()
880 ureg_MUL(ureg, rAtt, _W(rAtt), _X(tmp)); in nine_ff_build_vs()
882 ureg_fixup_label(ureg, label[l-1], ureg_get_instruction_number(ureg)); in nine_ff_build_vs()
883 ureg_ENDIF(ureg); in nine_ff_build_vs()
889 ureg_normalize3(ureg, rMid, vs->aVtx); in nine_ff_build_vs()
890 ureg_ADD(ureg, rMid, ureg_src(rHit), ureg_negate(ureg_src(rMid))); in nine_ff_build_vs()
892 ureg_ADD(ureg, rMid, ureg_src(rHit), ureg_imm3f(ureg, 0.0f, 0.0f, -1.0f)); in nine_ff_build_vs()
894 ureg_normalize3(ureg, rMid, ureg_src(rMid)); in nine_ff_build_vs()
895 ureg_DP3(ureg, ureg_saturate(tmp_x), vs->aNrm, ureg_src(rHit)); in nine_ff_build_vs()
896 ureg_DP3(ureg, ureg_saturate(tmp_y), vs->aNrm, ureg_src(rMid)); in nine_ff_build_vs()
897 ureg_MUL(ureg, tmp_z, _X(tmp), _Y(tmp)); in nine_ff_build_vs()
901 ureg_IF(ureg, _Z(tmp), &label[l++]); in nine_ff_build_vs()
903 ureg_DP3(ureg, ureg_saturate(tmp_y), vs->aNrm, ureg_src(rMid)); in nine_ff_build_vs()
904 ureg_POW(ureg, tmp_y, _Y(tmp), mtlP); in nine_ff_build_vs()
905 ureg_MUL(ureg, tmp_y, _W(rAtt), _Y(tmp)); /* power factor * att */ in nine_ff_build_vs()
906 ureg_MAD(ureg, rS, cLColS, _Y(tmp), ureg_src(rS)); /* accumulate specular */ in nine_ff_build_vs()
908 ureg_fixup_label(ureg, label[l-1], ureg_get_instruction_number(ureg)); in nine_ff_build_vs()
909 ureg_ENDIF(ureg); in nine_ff_build_vs()
911 ureg_MUL(ureg, tmp_x, _W(rAtt), _X(tmp)); /* dp3(normal,hitDir) * att */ in nine_ff_build_vs()
912 ureg_MAD(ureg, rD, cLColD, _X(tmp), ureg_src(rD)); /* accumulate diffuse */ in nine_ff_build_vs()
915 ureg_MAD(ureg, rA, cLColA, _W(rAtt), ureg_src(rA)); /* accumulate ambient */ in nine_ff_build_vs()
918 ureg_IF(ureg, cLLast, &label[l++]); in nine_ff_build_vs()
919 ureg_BRK(ureg); in nine_ff_build_vs()
920 ureg_ENDIF(ureg); in nine_ff_build_vs()
921 ureg_fixup_label(ureg, label[l-1], ureg_get_instruction_number(ureg)); in nine_ff_build_vs()
923 ureg_ADD(ureg, rCtr, _W(rCtr), ureg_imm1f(ureg, 8.0f)); in nine_ff_build_vs()
924 ureg_fixup_label(ureg, label[loop_label], ureg_get_instruction_number(ureg)); in nine_ff_build_vs()
925 ureg_ENDLOOP(ureg, &label[loop_label]); in nine_ff_build_vs()
935 … ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_XYZ), ureg_src(rA), vs->mtlA, _CONST(19)); in nine_ff_build_vs()
937 ureg_ADD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_XYZ), ureg_src(rA), _CONST(25)); in nine_ff_build_vs()
938 … ureg_MAD(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_XYZ), vs->mtlA, ureg_src(tmp), vs->mtlE); in nine_ff_build_vs()
941 …ureg_MAD(ureg, ureg_writemask(oCol[0], TGSI_WRITEMASK_XYZ), ureg_src(rD), vs->mtlD, ureg_src(tmp)); in nine_ff_build_vs()
942 ureg_MOV(ureg, ureg_writemask(oCol[0], TGSI_WRITEMASK_W), vs->mtlD); in nine_ff_build_vs()
943 ureg_MUL(ureg, oCol[1], ureg_src(rS), vs->mtlS); in nine_ff_build_vs()
944 ureg_release_temporary(ureg, rAtt); in nine_ff_build_vs()
945 ureg_release_temporary(ureg, rHit); in nine_ff_build_vs()
946 ureg_release_temporary(ureg, rMid); in nine_ff_build_vs()
947 ureg_release_temporary(ureg, rCtr); in nine_ff_build_vs()
948 ureg_release_temporary(ureg, rD); in nine_ff_build_vs()
949 ureg_release_temporary(ureg, rA); in nine_ff_build_vs()
950 ureg_release_temporary(ureg, rS); in nine_ff_build_vs()
951 ureg_release_temporary(ureg, rAtt); in nine_ff_build_vs()
952 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
957 ureg_MOV(ureg, ureg_writemask(oCol[0], TGSI_WRITEMASK_XYZ), _CONST(19)); in nine_ff_build_vs()
959 … ureg_MAD(ureg, ureg_writemask(oCol[0], TGSI_WRITEMASK_XYZ), vs->mtlA, _CONST(25), vs->mtlE); in nine_ff_build_vs()
960 ureg_MOV(ureg, ureg_writemask(oCol[0], TGSI_WRITEMASK_W), vs->mtlD); in nine_ff_build_vs()
961 ureg_MOV(ureg, oCol[1], ureg_imm1f(ureg, 0.0f)); in nine_ff_build_vs()
963 ureg_MOV(ureg, oCol[0], vs->aCol[0]); in nine_ff_build_vs()
964 ureg_MOV(ureg, oCol[1], vs->aCol[1]); in nine_ff_build_vs()
972 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
976 ureg_DP3(ureg, tmp_x, vs->aVtx, vs->aVtx); in nine_ff_build_vs()
977 ureg_RSQ(ureg, tmp_z, _X(tmp)); in nine_ff_build_vs()
978 ureg_MUL(ureg, tmp_z, _Z(tmp), _X(tmp)); in nine_ff_build_vs()
980 ureg_MOV(ureg, tmp_z, ureg_abs(_ZZZZ(vs->aVtx))); in nine_ff_build_vs()
984 ureg_MUL(ureg, tmp_x, _Z(tmp), _ZZZZ(_CONST(28))); in nine_ff_build_vs()
985 ureg_MUL(ureg, tmp_x, _X(tmp), ureg_imm1f(ureg, -1.442695f)); in nine_ff_build_vs()
986 ureg_EX2(ureg, tmp_x, _X(tmp)); in nine_ff_build_vs()
989 ureg_MUL(ureg, tmp_x, _Z(tmp), _ZZZZ(_CONST(28))); in nine_ff_build_vs()
990 ureg_MUL(ureg, tmp_x, _X(tmp), _X(tmp)); in nine_ff_build_vs()
991 ureg_MUL(ureg, tmp_x, _X(tmp), ureg_imm1f(ureg, -1.442695f)); in nine_ff_build_vs()
992 ureg_EX2(ureg, tmp_x, _X(tmp)); in nine_ff_build_vs()
995 ureg_ADD(ureg, tmp_x, _XXXX(_CONST(28)), ureg_negate(_Z(tmp))); in nine_ff_build_vs()
996 ureg_MUL(ureg, ureg_saturate(tmp_x), _X(tmp), _YYYY(_CONST(28))); in nine_ff_build_vs()
998 ureg_MOV(ureg, oFog, _X(tmp)); in nine_ff_build_vs()
999 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
1001 ureg_MOV(ureg, oFog, ureg_scalar(vs->aCol[1], TGSI_SWIZZLE_W)); in nine_ff_build_vs()
1008 output = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 19); in nine_ff_build_vs()
1009 ureg_MOV(ureg, output, input); in nine_ff_build_vs()
1015 output = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 20); in nine_ff_build_vs()
1016 ureg_MOV(ureg, output, input); in nine_ff_build_vs()
1022 output = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 21); in nine_ff_build_vs()
1023 ureg_MOV(ureg, output, input); in nine_ff_build_vs()
1029 output = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 22); in nine_ff_build_vs()
1030 ureg_MOV(ureg, output, input); in nine_ff_build_vs()
1036 output = ureg_DECL_output(ureg, TGSI_SEMANTIC_GENERIC, 23); in nine_ff_build_vs()
1037 ureg_MOV(ureg, output, input); in nine_ff_build_vs()
1045 ureg_MOV(ureg, output, input); in nine_ff_build_vs()
1054 struct ureg_dst clipVect = ureg_DECL_output(ureg, TGSI_SEMANTIC_CLIPVERTEX, 0); in nine_ff_build_vs()
1055 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_vs()
1056 ureg_MUL(ureg, tmp, _XXXX(vs->aVtx), _CONST(12)); in nine_ff_build_vs()
1057 ureg_MAD(ureg, tmp, _YYYY(vs->aVtx), _CONST(13), ureg_src(tmp)); in nine_ff_build_vs()
1058 ureg_MAD(ureg, tmp, _ZZZZ(vs->aVtx), _CONST(14), ureg_src(tmp)); in nine_ff_build_vs()
1059 ureg_ADD(ureg, clipVect, _CONST(15), ureg_src(tmp)); in nine_ff_build_vs()
1060 ureg_release_temporary(ureg, tmp); in nine_ff_build_vs()
1064 ureg_property(ureg, TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION, TRUE); in nine_ff_build_vs()
1066 ureg_END(ureg); in nine_ff_build_vs()
1067 nine_ureg_tgsi_dump(ureg, FALSE); in nine_ff_build_vs()
1068 return nine_create_shader_with_so_and_destroy(ureg, device->context.pipe, NULL); in nine_ff_build_vs()
1089 struct ureg_program *ureg; member
1116 reg = ureg_DECL_constant(ps->ureg, ps->stage.index); in ps_get_ts_arg()
1122 reg = ureg_DECL_fs_input(ps->ureg, TGSI_SEMANTIC_COLOR, 0, TGSI_INTERPOLATE_COLOR); in ps_get_ts_arg()
1125 reg = ureg_DECL_fs_input(ps->ureg, TGSI_SEMANTIC_COLOR, 1, TGSI_INTERPOLATE_COLOR); in ps_get_ts_arg()
1134 reg = ureg_DECL_constant(ps->ureg, 20); in ps_get_ts_arg()
1142 struct ureg_dst dst = ureg_DECL_temporary(ps->ureg); in ps_get_ts_arg()
1143 ureg_ADD(ps->ureg, dst, ureg_imm1f(ps->ureg, 1.0f), ureg_negate(reg)); in ps_get_ts_arg()
1206 struct ureg_program *ureg = ps->ureg; in ps_do_ts_op() local
1207 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in ps_do_ts_op()
1208 struct ureg_dst tmp2 = ureg_DECL_temporary(ureg); in ps_do_ts_op()
1224 ureg_MOV(ureg, dst, arg[1]); in ps_do_ts_op()
1228 ureg_MOV(ureg, dst, arg[2]); in ps_do_ts_op()
1231 ureg_MUL(ureg, dst, arg[1], arg[2]); in ps_do_ts_op()
1234 ureg_MUL(ureg, tmp, arg[1], arg[2]); in ps_do_ts_op()
1235 ureg_ADD(ureg, dst, ureg_src(tmp), ureg_src(tmp)); in ps_do_ts_op()
1238 ureg_MUL(ureg, tmp, arg[1], arg[2]); in ps_do_ts_op()
1239 ureg_MUL(ureg, dst, ureg_src(tmp), ureg_imm1f(ureg, 4.0f)); in ps_do_ts_op()
1242 ureg_ADD(ureg, dst, arg[1], arg[2]); in ps_do_ts_op()
1245 ureg_ADD(ureg, tmp, arg[1], arg[2]); in ps_do_ts_op()
1246 ureg_ADD(ureg, dst, ureg_src(tmp), ureg_imm1f(ureg, -0.5f)); in ps_do_ts_op()
1249 ureg_ADD(ureg, tmp, arg[1], arg[2]); in ps_do_ts_op()
1250 ureg_MAD(ureg, dst, ureg_src(tmp), ureg_imm1f(ureg, 2.0f), ureg_imm1f(ureg, -1.0f)); in ps_do_ts_op()
1253 ureg_ADD(ureg, dst, arg[1], ureg_negate(arg[2])); in ps_do_ts_op()
1256 ureg_ADD(ureg, tmp, ureg_imm1f(ureg, 1.0f), ureg_negate(arg[1])); in ps_do_ts_op()
1257 ureg_MAD(ureg, dst, ureg_src(tmp), arg[2], arg[1]); in ps_do_ts_op()
1260 ureg_LRP(ureg, dst, _WWWW(ps->vC[0]), arg[1], arg[2]); in ps_do_ts_op()
1264 ureg_LRP(ureg, dst, _W(ps->rTex), arg[1], arg[2]); in ps_do_ts_op()
1267 ureg_LRP(ureg, dst, _WWWW(_CONST(20)), arg[1], arg[2]); in ps_do_ts_op()
1270 ureg_ADD(ureg, tmp_x, ureg_imm1f(ureg, 1.0f), ureg_negate(_W(ps->rTex))); in ps_do_ts_op()
1271 ureg_MAD(ureg, dst, arg[2], _X(tmp), arg[1]); in ps_do_ts_op()
1274 ureg_LRP(ureg, dst, _WWWW(ps->rCurSrc), arg[1], arg[2]); in ps_do_ts_op()
1277 ureg_MOV(ureg, dst, arg[1]); in ps_do_ts_op()
1281 ureg_MAD(ureg, dst, _WWWW(arg[1]), arg[2], arg[1]); in ps_do_ts_op()
1284 ureg_MAD(ureg, dst, arg[1], arg[2], _WWWW(arg[1])); in ps_do_ts_op()
1287 ureg_ADD(ureg, tmp_x, ureg_imm1f(ureg, 1.0f), ureg_negate(_WWWW(arg[1]))); in ps_do_ts_op()
1288 ureg_MAD(ureg, dst, _X(tmp), arg[2], arg[1]); in ps_do_ts_op()
1291 ureg_ADD(ureg, tmp, ureg_imm1f(ureg, 1.0f), ureg_negate(arg[1])); in ps_do_ts_op()
1292 ureg_MAD(ureg, dst, ureg_src(tmp), arg[2], _WWWW(arg[1])); in ps_do_ts_op()
1299 ureg_ADD(ureg, tmp, arg[1], ureg_imm4f(ureg,-0.5,-0.5,-0.5,-0.5)); in ps_do_ts_op()
1300 ureg_ADD(ureg, tmp2, arg[2] , ureg_imm4f(ureg,-0.5,-0.5,-0.5,-0.5)); in ps_do_ts_op()
1301 ureg_DP3(ureg, tmp, ureg_src(tmp), ureg_src(tmp2)); in ps_do_ts_op()
1302 ureg_MUL(ureg, ureg_saturate(dst), ureg_src(tmp), ureg_imm4f(ureg,4.0,4.0,4.0,4.0)); in ps_do_ts_op()
1305 ureg_MAD(ureg, dst, arg[1], arg[2], arg[0]); in ps_do_ts_op()
1308 ureg_LRP(ureg, dst, arg[0], arg[1], arg[2]); in ps_do_ts_op()
1317 ureg_release_temporary(ureg, tmp); in ps_do_ts_op()
1318 ureg_release_temporary(ureg, tmp2); in ps_do_ts_op()
1325 struct ureg_program *ureg = ureg_create(PIPE_SHADER_FRAGMENT); in nine_ff_build_ps() local
1331 ps.ureg = ureg; in nine_ff_build_ps()
1334 ps.vC[0] = ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_COLOR, 0, TGSI_INTERPOLATE_COLOR); in nine_ff_build_ps()
1336 ps.rCur = ureg_DECL_temporary(ureg); in nine_ff_build_ps()
1337 ps.rTmp = ureg_DECL_temporary(ureg); in nine_ff_build_ps()
1338 ps.rTex = ureg_DECL_temporary(ureg); in nine_ff_build_ps()
1344 ureg_MOV(ureg, ps.rCur, ps.vC[0]); in nine_ff_build_ps()
1345 ureg_MOV(ureg, ps.rTmp, ureg_imm1f(ureg, 0.0f)); in nine_ff_build_ps()
1346 ureg_MOV(ureg, ps.rTex, ureg_imm1f(ureg, 0.0f)); in nine_ff_build_ps()
1355 ps.vC[1] = ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_COLOR, 1, TGSI_INTERPOLATE_COLOR); in nine_ff_build_ps()
1362 ps.s[s] = ureg_DECL_sampler(ureg, s); in nine_ff_build_ps()
1363 ps.vT[s] = ureg_DECL_fs_input(ureg, texcoord_sn, s, TGSI_INTERPOLATE_PERSPECTIVE); in nine_ff_build_ps()
1367 ps.s[s] = ureg_DECL_sampler(ureg, s); in nine_ff_build_ps()
1374 ps.vC[1] = ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_COLOR, 1, TGSI_INTERPOLATE_COLOR); in nine_ff_build_ps()
1381 ps.s[s] = ureg_DECL_sampler(ureg, s); in nine_ff_build_ps()
1382 ps.vT[s] = ureg_DECL_fs_input(ureg, texcoord_sn, s, TGSI_INTERPOLATE_PERSPECTIVE); in nine_ff_build_ps()
1387 ps.vC[1] = ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_COLOR, 1, TGSI_INTERPOLATE_COLOR); in nine_ff_build_ps()
1389 oCol = ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, 0); in nine_ff_build_ps()
1427 delta = ureg_DECL_temporary(ureg); in nine_ff_build_ps()
1429 … ureg_MUL(ureg, ureg_writemask(delta, TGSI_WRITEMASK_X), _X(ps.rTex), _XXXX(_CONST(8 + s - 1))); in nine_ff_build_ps()
1430 …ureg_MAD(ureg, ureg_writemask(delta, TGSI_WRITEMASK_X), _Y(ps.rTex), _ZZZZ(_CONST(8 + s - 1)), ure… in nine_ff_build_ps()
1432 … ureg_MUL(ureg, ureg_writemask(delta, TGSI_WRITEMASK_Y), _X(ps.rTex), _YYYY(_CONST(8 + s - 1))); in nine_ff_build_ps()
1433 …ureg_MAD(ureg, ureg_writemask(delta, TGSI_WRITEMASK_Y), _Y(ps.rTex), _WWWW(_CONST(8 + s - 1)), ure… in nine_ff_build_ps()
1434 texture_coord = ureg_src(ureg_DECL_temporary(ureg)); in nine_ff_build_ps()
1435 … ureg_MOV(ureg, ureg_writemask(ureg_dst(texture_coord), ureg_dst(ps.vT[s]).WriteMask), ps.vT[s]); in nine_ff_build_ps()
1436 …ureg_ADD(ureg, ureg_writemask(ureg_dst(texture_coord), TGSI_WRITEMASK_XY), texture_coord, ureg_src… in nine_ff_build_ps()
1443 …ureg_MAD(ureg, ureg_saturate(ureg_writemask(delta, TGSI_WRITEMASK_X)), _Z(ps.rTex), bumpenvlscale,… in nine_ff_build_ps()
1449 ureg_TXP(ureg, ps.rTex, target, texture_coord, ps.s[s]); in nine_ff_build_ps()
1451 struct ureg_dst tmp = ureg_DECL_temporary(ureg); in nine_ff_build_ps()
1452 … ureg_RCP(ureg, ureg_writemask(tmp, TGSI_WRITEMASK_X), ureg_scalar(texture_coord, dim-1)); in nine_ff_build_ps()
1453 ureg_MUL(ureg, ps.rTmp, _X(tmp), texture_coord); in nine_ff_build_ps()
1454 ureg_TEX(ureg, ps.rTex, target, ps.rTmpSrc, ps.s[s]); in nine_ff_build_ps()
1455 ureg_release_temporary(ureg, tmp); in nine_ff_build_ps()
1458 ureg_TEX(ureg, ps.rTex, target, texture_coord, ps.s[s]); in nine_ff_build_ps()
1461 ureg_MUL(ureg, ps.rTex, ureg_src(ps.rTex), _X(delta)); in nine_ff_build_ps()
1471 ps.rMod = ureg_DECL_temporary(ureg); in nine_ff_build_ps()
1472 ureg_MUL(ureg, ps.rMod, ps.rCurSrc, ps.rTexSrc); in nine_ff_build_ps()
1508 ureg_ADD(ureg, ureg_writemask(ps.rCur, TGSI_WRITEMASK_XYZ), ps.rCurSrc, ps.vC[1]); in nine_ff_build_ps()
1517 vPos = ureg_DECL_system_value(ureg, TGSI_SEMANTIC_POSITION, 0); in nine_ff_build_ps()
1519 vPos = ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_POSITION, 0, in nine_ff_build_ps()
1534 ureg_MOV(ureg, rFog, _ZZZZ(vPos)); in nine_ff_build_ps()
1537 ureg_RCP(ureg, rFog, _WWWW(vPos)); in nine_ff_build_ps()
1540 ureg_MUL(ureg, rFog, _X(rFog), _ZZZZ(_CONST(22))); in nine_ff_build_ps()
1541 ureg_MUL(ureg, rFog, _X(rFog), ureg_imm1f(ureg, -1.442695f)); in nine_ff_build_ps()
1542 ureg_EX2(ureg, rFog, _X(rFog)); in nine_ff_build_ps()
1545 ureg_MUL(ureg, rFog, _X(rFog), _ZZZZ(_CONST(22))); in nine_ff_build_ps()
1546 ureg_MUL(ureg, rFog, _X(rFog), _X(rFog)); in nine_ff_build_ps()
1547 ureg_MUL(ureg, rFog, _X(rFog), ureg_imm1f(ureg, -1.442695f)); in nine_ff_build_ps()
1548 ureg_EX2(ureg, rFog, _X(rFog)); in nine_ff_build_ps()
1551 ureg_ADD(ureg, rFog, _XXXX(_CONST(22)), ureg_negate(_X(rFog))); in nine_ff_build_ps()
1552 ureg_MUL(ureg, ureg_saturate(rFog), _X(rFog), _YYYY(_CONST(22))); in nine_ff_build_ps()
1554 ureg_LRP(ureg, ureg_writemask(oCol, TGSI_WRITEMASK_XYZ), _X(rFog), ps.rCurSrc, _CONST(21)); in nine_ff_build_ps()
1555 ureg_MOV(ureg, ureg_writemask(oCol, TGSI_WRITEMASK_W), ps.rCurSrc); in nine_ff_build_ps()
1558 …struct ureg_src vFog = ureg_DECL_fs_input(ureg, TGSI_SEMANTIC_GENERIC, 16, TGSI_INTERPOLATE_PERSPE… in nine_ff_build_ps()
1559 … ureg_LRP(ureg, ureg_writemask(oCol, TGSI_WRITEMASK_XYZ), _XXXX(vFog), ps.rCurSrc, _CONST(21)); in nine_ff_build_ps()
1560 ureg_MOV(ureg, ureg_writemask(oCol, TGSI_WRITEMASK_W), ps.rCurSrc); in nine_ff_build_ps()
1562 ureg_MOV(ureg, oCol, ps.rCurSrc); in nine_ff_build_ps()
1565 ureg_END(ureg); in nine_ff_build_ps()
1566 nine_ureg_tgsi_dump(ureg, FALSE); in nine_ff_build_ps()
1567 return nine_create_shader_with_so_and_destroy(ureg, device->context.pipe, NULL); in nine_ff_build_ps()