Home | History | Annotate | Download | only in nv30

Lines Matching refs:DST

202          int slot, struct nvfx_reg dst)
206 switch (dst.type) {
220 hw[0] |= (dst.index << NV30_VP_INST_DEST_TEMP_ID_SHIFT);
224 hw[0] |= (dst.index << NV40_VP_INST_VEC_DEST_TEMP_SHIFT);
226 hw[3] |= (dst.index << NV40_VP_INST_SCA_DEST_TEMP_SHIFT);
232 switch (dst.index) {
234 dst.index = NVFX_VP(INST_DEST_FOGC);
238 dst.index = NVFX_VP(INST_DEST_FOGC);
242 dst.index = NVFX_VP(INST_DEST_FOGC);
246 dst.index = NVFX_VP(INST_DEST_PSZ);
250 dst.index = NVFX_VP(INST_DEST_PSZ);
254 dst.index = NVFX_VP(INST_DEST_PSZ);
267 hw[3] |= (dst.index << NV30_VP_INST_DEST_SHIFT);
275 hw[3] |= (dst.index << NV40_VP_INST_DEST_SHIFT);
331 if (insn.dst.type == NVFXSR_OUTPUT) {
354 emit_dst(nv30, vpc, hw, slot, insn.dst);
420 struct nvfx_reg dst;
424 dst = nvfx_reg(NVFXSR_NONE, 0);
427 dst = vpc->r_result[fdst->Register.Index];
430 dst = vpc->r_temp[fdst->Register.Index];
433 dst = vpc->r_address[fdst->Register.Index];
436 NOUVEAU_ERR("bad dst file %i\n", fdst->Register.File);
437 dst.index = 0;
438 dst.type = 0;
442 return dst;
462 struct nvfx_reg dst;
535 if(finst->Dst[0].Register.File == TGSI_FILE_ADDRESS &&
539 final_dst = dst = tgsi_dst(vpc, &finst->Dst[0]);
540 mask = tgsi_mask(finst->Dst[0].Register.WriteMask);
546 if(dst.type != NVFXSR_TEMP)
547 dst = temp(vpc);
552 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, abs(src[0]), none, none));
555 nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, src[0], none, src[1]));
558 nvfx_vp_emit(vpc, arith(0, VEC, ARL, dst
563 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, neg(tmp), none, none));
570 insn = arith(sat, VEC, MOV, dst, mask, src[2], none, none);
574 insn = arith(sat, VEC, MOV, dst, mask, src[1], none, none);
579 nvfx_vp_emit(vpc, arith(sat, SCA, COS, dst, mask, none, none, src[0]));
584 nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, swz(tmp, X, X, X, X), none, swz(tmp, Y, Y, Y, Y)));
587 nvfx_vp_emit(vpc, arith(sat, VEC, DP3, dst, mask, src[0], src[1], none));
590 nvfx_vp_emit(vpc, arith(sat, VEC, DP4, dst, mask, src[0], src[1], none));
593 nvfx_vp_emit(vpc, arith(sat, VEC, DPH, dst, mask, src[0], src[1], none));
596 nvfx_vp_emit(vpc, arith(sat, VEC, DST, dst, mask, src[0], src[1], none));
599 nvfx_vp_emit(vpc, arith(sat, SCA, EX2, dst, mask, none, none, src[0]));
602 nvfx_vp_emit(vpc, arith(sat, SCA, EXP, dst, mask, none, none, src[0]));
605 nvfx_vp_emit(vpc, arith(sat, VEC, FLR, dst, mask, src[0], none, none));
608 nvfx_vp_emit(vpc, arith(sat, VEC, FRC, dst, mask, src[0], none, none));
611 nvfx_vp_emit(vpc, arith(sat, SCA, LG2, dst, mask, none, none, src[0]));
614 nvfx_vp_emit(vpc, arith(sat, SCA, LIT, dst, mask, none, none, src[0]));
617 nvfx_vp_emit(vpc, arith(sat, SCA, LOG, dst, mask, none, none, src[0]));
622 nvfx_vp_emit(vpc, arith(sat, VEC, MAD, dst, mask, src[0], src[1], tmp));
625 nvfx_vp_emit(vpc, arith(sat, VEC, MAD, dst, mask, src[0], src[1], src[2]));
628 nvfx_vp_emit(vpc, arith(sat, VEC, MAX, dst, mask, src[0], src[1], none));
631 nvfx_vp_emit(vpc, arith(sat, VEC, MIN, dst, mask, src[0], src[1], none));
634 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, src[0], none, none));
637 nvfx_vp_emit(vpc, arith(sat, VEC, MUL, dst, mask, src[0], src[1], none));
645 nvfx_vp_emit(vpc, arith(sat, SCA, EX2, dst, mask, none, none, swz(tmp, X, X, X, X)));
648 nvfx_vp_emit(vpc, arith(sat, SCA, RCP, dst, mask, none, none, src[0]));
651 nvfx_vp_emit(vpc, arith(sat, SCA, RSQ, dst, mask, none, none, abs(src[0])));
654 nvfx_vp_emit(vpc, arith(sat, VEC, SEQ, dst, mask, src[0], src[1], none));
657 nvfx_vp_emit(vpc, arith(sat, VEC, SFL, dst, mask, src[0], src[1], none));
660 nvfx_vp_emit(vpc, arith(sat, VEC, SGE, dst, mask, src[0], src[1], none));
663 nvfx_vp_emit(vpc, arith(sat, VEC, SGT, dst, mask, src[0], src[1], none));
666 nvfx_vp_emit(vpc, arith(sat, SCA, SIN, dst, mask, none, none, src[0]));
669 nvfx_vp_emit(vpc, arith(sat, VEC, SLE, dst, mask, src[0], src[1], none));
672 nvfx_vp_emit(vpc, arith(sat, VEC, SLT, dst, mask, src[0], src[1], none));
675 nvfx_vp_emit(vpc, arith(sat, VEC, SNE, dst, mask, src[0], src[1], none));
678 nvfx_vp_emit(vpc, arith(sat, VEC, SSG, dst, mask, src[0], none, none));
681 nvfx_vp_emit(vpc, arith(sat, VEC, STR, dst, mask, src[0], src[1], none));
684 nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, src[0], none, neg(src[1])));
693 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, tmp, none, none));
695 insn = arith(sat, VEC, MOV, dst, mask, neg(tmp), none, none);
702 nvfx_vp_emit(vpc, arith(sat, VEC, MAD, dst, (mask & ~NVFX_VP_MASK_W), swz(src[0], Y, Z, X, X), swz(src[1], Z, X, Y, Y), neg(tmp)));
808 nvfx_vp_emit(vpc, arith(0, VEC, MAX, dst, mask, nvfx_src(dst), swz(nvfx_src(vpc->r_0_1), X, X, X, X), none));
809 nvfx_vp_emit(vpc, arith(0, VEC, MIN, final_dst, mask, nvfx_src(dst), swz(nvfx_src(vpc->r_0_1), Y, Y, Y, Y), none));