• Home
  • Raw
  • Download

Lines Matching refs:Src

143    reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W));  in create_mov()
201 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_dst()
202 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_dst()
222 reg_src(&new_inst.Src[0], src0, SWIZ(_, Y, _, _)); in transform_dst()
223 reg_src(&new_inst.Src[1], src1, SWIZ(_, Y, _, _)); in transform_dst()
234 reg_src(&new_inst.Src[0], src0, SWIZ(_, _, Z, _)); in transform_dst()
245 reg_src(&new_inst.Src[0], src1, SWIZ(_, _, _, W)); in transform_dst()
256 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(Y, _, _, _)); in transform_dst()
282 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_lrp()
283 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_lrp()
284 struct tgsi_full_src_register *src2 = &inst->Src[2]; in transform_lrp()
294 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_lrp()
295 reg_src(&new_inst.Src[1], src2, SWIZ(X, Y, Z, W)); in transform_lrp()
296 reg_src(&new_inst.Src[2], src2, SWIZ(X, Y, Z, W)); in transform_lrp()
297 new_inst.Src[2].Register.Negate = !new_inst.Src[2].Register.Negate; in transform_lrp()
306 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_lrp()
307 reg_src(&new_inst.Src[1], src1, SWIZ(X, Y, Z, W)); in transform_lrp()
308 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in transform_lrp()
309 new_inst.Src[2].Register.Negate = true; in transform_lrp()
332 struct tgsi_full_src_register *src = &inst->Src[0]; in transform_frc()
342 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in transform_frc()
351 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, Z, W)); in transform_frc()
352 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in transform_frc()
353 new_inst.Src[1].Register.Negate = 1; in transform_frc()
377 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_pow()
378 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_pow()
388 reg_src(&new_inst.Src[0], src0, SWIZ(X, _, _, _)); in transform_pow()
397 reg_src(&new_inst.Src[0], src1, SWIZ(X, _, _, _)); in transform_pow()
398 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, _, _, _)); in transform_pow()
407 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(X, _, _, _)); in transform_pow()
437 struct tgsi_full_src_register *src = &inst->Src[0]; in transform_lit()
447 reg_src(&new_inst.Src[0], src, SWIZ(X, Y, _, _)); in transform_lit()
448 reg_src(&new_inst.Src[1], &ctx->imm, SWIZ(X, X, _, _)); in transform_lit()
457 reg_src(&new_inst.Src[0], src, SWIZ(_, _, W, _)); in transform_lit()
458 reg_src(&new_inst.Src[1], &ctx->imm, SWIZ(_, _, Z, _)); in transform_lit()
467 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, _, Z, _)); in transform_lit()
468 reg_src(&new_inst.Src[1], &ctx->imm, SWIZ(_, _, Z, _)); in transform_lit()
469 new_inst.Src[1].Register.Negate = true; in transform_lit()
478 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, _, _)); in transform_lit()
487 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, Z, _, _)); in transform_lit()
488 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Y, _, _)); in transform_lit()
497 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, _, _)); in transform_lit()
506 reg_src(&new_inst.Src[0], src, SWIZ(_, X, _, _)); in transform_lit()
507 new_inst.Src[0].Register.Negate = true; in transform_lit()
508 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Y, _, _)); in transform_lit()
509 reg_src(&new_inst.Src[2], &ctx->imm, SWIZ(_, X, _, _)); in transform_lit()
518 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, Y, _)); in transform_lit()
529 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(Y, _, _, Y)); in transform_lit()
562 struct tgsi_full_src_register *src = &inst->Src[0]; in transform_exp()
573 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _)); in transform_exp()
582 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _)); in transform_exp()
583 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, _, _, _)); in transform_exp()
584 new_inst.Src[1].Register.Negate = 1; in transform_exp()
593 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _)); in transform_exp()
605 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _)); in transform_exp()
616 reg_src(&new_inst.Src[0], src, SWIZ(_, X, _, _)); in transform_exp()
617 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, X, _, _)); in transform_exp()
618 new_inst.Src[1].Register.Negate = 1; in transform_exp()
629 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(X, _, _, _)); in transform_exp()
640 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, _, Y, _)); in transform_exp()
651 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(_, _, _, Y)); in transform_exp()
685 struct tgsi_full_src_register *src = &inst->Src[0]; in transform_log()
695 reg_src(&new_inst.Src[0], src, SWIZ(X, _, _, _)); in transform_log()
696 new_inst.Src[0].Register.Absolute = true; in transform_log()
708 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, _, _)); in transform_log()
717 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, _, _)); in transform_log()
718 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Y, _, _)); in transform_log()
719 new_inst.Src[1].Register.Negate = 1; in transform_log()
728 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(_, X, _, _)); in transform_log()
740 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, _, _)); in transform_log()
749 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Z, _, _, _)); in transform_log()
758 reg_src(&new_inst.Src[0], src, SWIZ(_, X, _, _)); in transform_log()
759 new_inst.Src[0].Register.Absolute = true; in transform_log()
760 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(_, Z, _, _)); in transform_log()
771 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(Y, _, X, _)); in transform_log()
782 reg_src(&new_inst.Src[0], &ctx->imm, SWIZ(_, _, _, Y)); in transform_log()
823 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_dotp()
824 struct tgsi_full_src_register *src1 = &inst->Src[1]; in transform_dotp()
839 reg_src(&new_inst.Src[0], src0, SWIZ(X, _, _, _)); in transform_dotp()
840 reg_src(&new_inst.Src[1], src1, SWIZ(X, _, _, _)); in transform_dotp()
849 reg_src(&new_inst.Src[0], src0, SWIZ(Y, Y, Y, Y)); in transform_dotp()
850 reg_src(&new_inst.Src[1], src1, SWIZ(Y, Y, Y, Y)); in transform_dotp()
851 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, X, X, X)); in transform_dotp()
863 reg_src(&new_inst.Src[0], src0, SWIZ(Z, Z, Z, Z)); in transform_dotp()
864 reg_src(&new_inst.Src[1], src1, SWIZ(Z, Z, Z, Z)); in transform_dotp()
865 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, X, X, X)); in transform_dotp()
876 reg_src(&new_inst.Src[0], src0, SWIZ(W, W, W, W)); in transform_dotp()
877 reg_src(&new_inst.Src[1], src1, SWIZ(W, W, W, W)); in transform_dotp()
878 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, X, X, X)); in transform_dotp()
909 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_flr_ceil()
920 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_flr_ceil()
923 new_inst.Src[0].Register.Negate = !new_inst.Src[0].Register.Negate; in transform_flr_ceil()
932 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_flr_ceil()
933 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in transform_flr_ceil()
935 new_inst.Src[1].Register.Negate = 1; in transform_flr_ceil()
963 struct tgsi_full_src_register *src0 = &inst->Src[0]; in transform_trunc()
973 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_trunc()
974 new_inst.Src[0].Register.Absolute = true; in transform_trunc()
975 new_inst.Src[0].Register.Negate = false; in transform_trunc()
983 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_trunc()
984 new_inst.Src[0].Register.Absolute = true; in transform_trunc()
985 new_inst.Src[0].Register.Negate = false; in transform_trunc()
986 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in transform_trunc()
987 new_inst.Src[1].Register.Negate = 1; in transform_trunc()
995 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_trunc()
996 new_inst.Src[0].Register.Absolute = true; in transform_trunc()
997 new_inst.Src[0].Register.Negate = false; in transform_trunc()
1006 reg_src(&new_inst.Src[0], src0, SWIZ(X, Y, Z, W)); in transform_trunc()
1007 reg_src(&new_inst.Src[1], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in transform_trunc()
1008 new_inst.Src[1].Register.Negate = true; in transform_trunc()
1009 reg_src(&new_inst.Src[2], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in transform_trunc()
1035 struct tgsi_full_src_register *coord = &inst->Src[0]; in transform_samp()
1046 samp = &inst->Src[2]; in transform_samp()
1048 samp = &inst->Src[1]; in transform_samp()
1124 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(W, _, _, _)); in transform_samp()
1133 reg_src(&new_inst.Src[0], &ctx->tmp[A].src, SWIZ(X, Y, Z, W)); in transform_samp()
1134 reg_src(&new_inst.Src[1], &ctx->tmp[B].src, SWIZ(X, X, X, X)); in transform_samp()
1148 new_inst.Src[0] = ctx->tmp[A].src; in transform_samp()
1226 new_inst.Src[0].Register.File = TGSI_FILE_INPUT; in emit_twoside()
1227 new_inst.Src[0].Register.Index = ctx->face_idx; in emit_twoside()
1228 new_inst.Src[0].Register.SwizzleX = TGSI_SWIZZLE_X; in emit_twoside()
1229 new_inst.Src[0].Register.SwizzleY = TGSI_SWIZZLE_X; in emit_twoside()
1230 new_inst.Src[0].Register.SwizzleZ = TGSI_SWIZZLE_X; in emit_twoside()
1231 new_inst.Src[0].Register.SwizzleW = TGSI_SWIZZLE_X; in emit_twoside()
1232 new_inst.Src[1].Register.File = TGSI_FILE_INPUT; in emit_twoside()
1233 new_inst.Src[1].Register.Index = inbase + i; in emit_twoside()
1234 new_inst.Src[1].Register.SwizzleX = TGSI_SWIZZLE_X; in emit_twoside()
1235 new_inst.Src[1].Register.SwizzleY = TGSI_SWIZZLE_Y; in emit_twoside()
1236 new_inst.Src[1].Register.SwizzleZ = TGSI_SWIZZLE_Z; in emit_twoside()
1237 new_inst.Src[1].Register.SwizzleW = TGSI_SWIZZLE_W; in emit_twoside()
1238 new_inst.Src[2].Register.File = TGSI_FILE_INPUT; in emit_twoside()
1239 new_inst.Src[2].Register.Index = ctx->two_side_idx[i]; in emit_twoside()
1240 new_inst.Src[2].Register.SwizzleX = TGSI_SWIZZLE_X; in emit_twoside()
1241 new_inst.Src[2].Register.SwizzleY = TGSI_SWIZZLE_Y; in emit_twoside()
1242 new_inst.Src[2].Register.SwizzleZ = TGSI_SWIZZLE_Z; in emit_twoside()
1243 new_inst.Src[2].Register.SwizzleW = TGSI_SWIZZLE_W; in emit_twoside()
1308 struct tgsi_src_register *src = &inst->Src[i].Register; in rename_color_inputs()