Home | History | Annotate | Download | only in nv30

Lines Matching refs:DST

160 emit_dst(struct nvfx_fpc *fpc, struct nvfx_reg dst)
165 switch (dst.type) {
167 if (dst.index == 1)
171 dst.index <<= 1;
175 if (fpc->num_regs < (dst.index + 1))
176 fpc->num_regs = dst.index + 1;
185 hw[0] |= (dst.index << NVFX_FP_OP_OUT_REG_SHIFT);
222 emit_dst(fpc, insn.dst);
422 NOUVEAU_ERR("bad dst file %d\n", fdst->Register.File);
446 struct nvfx_reg dst;
526 dst = tgsi_dst(fpc, &finst->Dst[0]);
527 mask = tgsi_mask(finst->Dst[0].Register.WriteMask);
532 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, abs(src[0]), none, none));
535 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, src[0], src[1], none));
540 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, neg(tmp), none, none));
547 insn = arith(sat, MOV, dst, mask, src[2], none, none);
551 insn = arith(sat, MOV, dst, mask, src[1], none, none);
556 nvfx_fp_emit(fpc, arith(sat, COS, dst, mask, src[0], none, none));
564 nvfx_fp_emit(fpc, arith(0, MOV, dst, mask, tmp, none, none));
566 nvfx_fp_emit(fpc, arith(sat, DDX, dst, mask, src[0], none, none));
575 nvfx_fp_emit(fpc, arith(0, MOV, dst, mask, tmp, none, none));
577 nvfx_fp_emit(fpc, arith(sat, DDY, dst, mask, src[0], none, none));
583 nvfx_fp_emit(fpc, arith(0, ADD, dst, mask, swz(tmp, X, X, X, X), swz(tmp, Y, Y, Y, Y), none));
586 nvfx_fp_emit(fpc, arith(sat, DP3, dst, mask, src[0], src[1], none));
589 nvfx_fp_emit(fpc, arith(sat, DP4, dst, mask, src[0], src[1], none));
594 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, swz(tmp, X, X, X, X), swz(src[1], W, W, W, W), none));
597 nvfx_fp_emit(fpc, arith(sat, DST, dst, mask, src[0], src[1], none));
600 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, src[0], none, none));
603 nvfx_fp_emit(fpc, arith(sat, FLR, dst, mask, src[0], none, none));
606 nvfx_fp_emit(fpc, arith(sat, FRC, dst, mask, src[0], none, none));
621 nvfx_fp_emit(fpc, arith(sat, LG2, dst, mask, src[0], none, none));
625 nvfx_fp_emit(fpc, arith(sat, LIT_NV30, dst, mask, src[0], none, none));
641 nvfx_fp_emit(fpc, arith(sat, LITEX2_NV40, dst, mask, swz(tmp, Y, Y, W, W), none, none));
646 nvfx_fp_emit(fpc, arith(sat, LRP_NV30, dst, mask, src[0], src[1], src[2]));
650 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, src[0], src[1], tmp));
654 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, src[0], src[1], src[2]));
657 nvfx_fp_emit(fpc, arith(sat, MAX, dst, mask, src[0], src[1], none));
660 nvfx_fp_emit(fpc, arith(sat, MIN, dst, mask, src[0], src[1], none));
663 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, src[0], none, none));
666 nvfx_fp_emit(fpc, arith(sat, MUL, dst, mask, src[0], src[1], none));
672 nvfx_fp_emit(fpc, arith(sat, POW_NV30, dst, mask, src[0], src[1], none));
677 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, swz(tmp, X, X, X, X), none, none));
681 nvfx_fp_emit(fpc, arith(sat, RCP, dst, mask, src[0], none, none));
685 nvfx_fp_emit(fpc, arith(0, RFL_NV30, dst, mask, src[0], src[1], none));
693 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, swz(tmp, Z, Z, Z, Z), src[0], neg(src[1])));
698 nvfx_fp_emit(fpc, arith(sat, RSQ_NV30, dst, mask, abs(swz(src[0], X, X, X, X)), none, none));
704 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, neg(swz(tmp, X, X, X, X)), none, none));
712 nvfx_fp_emit(fpc, arith(sat, COS, dst, NVFX_FP_MASK_X, swz(src[0], X, X, X, X), none, none));
714 nvfx_fp_emit(fpc, arith(sat, SIN, dst, NVFX_FP_MASK_Y, swz(src[0], X, X, X, X), none, none));
719 nvfx_fp_emit(fpc, arith(sat, SIN, dst, NVFX_FP_MASK_Y, swz(src[0], X, X, X, X), none, none));
721 nvfx_fp_emit(fpc, arith(sat, COS, dst, NVFX_FP_MASK_X, swz(src[0], X, X, X, X), none, none));
725 nvfx_fp_emit(fpc, arith(sat, SEQ, dst, mask, src[0], src[1], none));
728 nvfx_fp_emit(fpc, arith(sat, SFL, dst, mask, src[0], src[1], none));
731 nvfx_fp_emit(fpc, arith(sat, SGE, dst, mask, src[0], src[1], none));
734 nvfx_fp_emit(fpc, arith(sat, SGT, dst, mask, src[0], src[1], none));
737 nvfx_fp_emit(fpc, arith(sat, SIN, dst, mask, src[0], none, none));
740 nvfx_fp_emit(fpc, arith(sat, SLE, dst, mask, src[0], src[1], none));
743 nvfx_fp_emit(fpc, arith(sat, SLT, dst, mask, src[0], src[1], none));
746 nvfx_fp_emit(fpc, arith(sat, SNE, dst, mask, src[0], src[1], none));
752 insn = arith(sat, MOV, dst, mask, src[0], none, none);
756 insn = arith(0, STR, dst, mask, none, none, none);
761 insn = arith(0, MOV, dst, mask, minones, none, none);
768 nvfx_fp_emit(fpc, arith(sat, STR, dst, mask, src[0], src[1], none));
771 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, src[0], neg(src[1]), none));
774 nvfx_fp_emit(fpc, tex(sat, TEX, unit, dst, mask, src[0], none, none));
783 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, tmp, none, none));
785 insn = arith(sat, MOV, dst, mask, neg(tmp), none, none);
790 nvfx_fp_emit(fpc, tex(sat, TXB, unit, dst, mask, src[0], none, none));
794 nvfx_fp_emit(fpc, tex(sat, TXL_NV40, unit, dst, mask, src[0], none, none));
796 nvfx_fp_emit(fpc, tex(sat, TEX, unit, dst, mask, src[0], none, none));
799 nvfx_fp_emit(fpc, tex(sat, TXP, unit, dst, mask, src[0], none, none));
804 nvfx_fp_emit(fpc, arith(sat, MAD, dst, (mask & ~NVFX_FP_MASK_W), swz(src[0], Y, Z, X, X), swz(src[1], Z, X, Y, Y), neg(tmp)));
1239 nvfx_fp_memcpy(void* dst, const void* src, size_t len)
1242 memcpy(dst, src, len);
1247 *(uint32_t*)((char*)dst + i) = (v >> 16) | (v << 16);