Lines Matching refs:tctx
57 tgsi_lowering_context(struct tgsi_transform_context *tctx) in tgsi_lowering_context() argument
59 return (struct tgsi_lowering_context *)tctx; in tgsi_lowering_context()
130 create_mov(struct tgsi_transform_context *tctx, in create_mov() argument
144 tctx->emit_instruction(tctx, &new_inst); in create_mov()
196 transform_dst(struct tgsi_transform_context *tctx, in transform_dst() argument
199 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_dst()
206 create_mov(tctx, &ctx->tmp[A].dst, src0, TGSI_WRITEMASK_YZ, 0); in transform_dst()
211 create_mov(tctx, &ctx->tmp[B].dst, src1, TGSI_WRITEMASK_YW, 0); in transform_dst()
224 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
235 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
246 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
257 tctx->emit_instruction(tctx, &new_inst); in transform_dst()
277 transform_lrp(struct tgsi_transform_context *tctx, in transform_lrp() argument
280 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_lrp()
298 tctx->emit_instruction(tctx, &new_inst); in transform_lrp()
310 tctx->emit_instruction(tctx, &new_inst); in transform_lrp()
327 transform_frc(struct tgsi_transform_context *tctx, in transform_frc() argument
330 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_frc()
343 tctx->emit_instruction(tctx, &new_inst); in transform_frc()
354 tctx->emit_instruction(tctx, &new_inst); in transform_frc()
372 transform_pow(struct tgsi_transform_context *tctx, in transform_pow() argument
375 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_pow()
389 tctx->emit_instruction(tctx, &new_inst); in transform_pow()
399 tctx->emit_instruction(tctx, &new_inst); in transform_pow()
408 tctx->emit_instruction(tctx, &new_inst); in transform_pow()
432 transform_lit(struct tgsi_transform_context *tctx, in transform_lit() argument
435 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_lit()
449 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
459 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
470 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
479 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
489 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
498 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
510 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
519 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
530 tctx->emit_instruction(tctx, &new_inst); in transform_lit()
557 transform_exp(struct tgsi_transform_context *tctx, in transform_exp() argument
560 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_exp()
574 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
585 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
594 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
606 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
619 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
630 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
641 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
652 tctx->emit_instruction(tctx, &new_inst); in transform_exp()
680 transform_log(struct tgsi_transform_context *tctx, in transform_log() argument
683 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_log()
697 tctx->emit_instruction(tctx, &new_inst); in transform_log()
709 tctx->emit_instruction(tctx, &new_inst); in transform_log()
720 tctx->emit_instruction(tctx, &new_inst); in transform_log()
729 tctx->emit_instruction(tctx, &new_inst); in transform_log()
741 tctx->emit_instruction(tctx, &new_inst); in transform_log()
750 tctx->emit_instruction(tctx, &new_inst); in transform_log()
761 tctx->emit_instruction(tctx, &new_inst); in transform_log()
772 tctx->emit_instruction(tctx, &new_inst); in transform_log()
783 tctx->emit_instruction(tctx, &new_inst); in transform_log()
818 transform_dotp(struct tgsi_transform_context *tctx, in transform_dotp() argument
821 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_dotp()
841 tctx->emit_instruction(tctx, &new_inst); in transform_dotp()
855 tctx->emit_instruction(tctx, &new_inst); in transform_dotp()
868 tctx->emit_instruction(tctx, &new_inst); in transform_dotp()
885 tctx->emit_instruction(tctx, &new_inst); in transform_dotp()
904 transform_flr_ceil(struct tgsi_transform_context *tctx, in transform_flr_ceil() argument
907 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_flr_ceil()
924 tctx->emit_instruction(tctx, &new_inst); in transform_flr_ceil()
936 tctx->emit_instruction(tctx, &new_inst); in transform_flr_ceil()
958 transform_trunc(struct tgsi_transform_context *tctx, in transform_trunc() argument
961 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_trunc()
976 tctx->emit_instruction(tctx, &new_inst); in transform_trunc()
988 tctx->emit_instruction(tctx, &new_inst); in transform_trunc()
998 tctx->emit_instruction(tctx, &new_inst); in transform_trunc()
1010 tctx->emit_instruction(tctx, &new_inst); in transform_trunc()
1031 transform_samp(struct tgsi_transform_context *tctx, in transform_samp() argument
1034 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_samp()
1109 create_mov(tctx, &ctx->tmp[A].dst, coord, TGSI_WRITEMASK_XYZW, 0); in transform_samp()
1125 tctx->emit_instruction(tctx, &new_inst); in transform_samp()
1135 tctx->emit_instruction(tctx, &new_inst); in transform_samp()
1142 create_mov(tctx, &ctx->tmp[A].dst, &ctx->tmp[A].src, mask, 1); in transform_samp()
1149 tctx->emit_instruction(tctx, &new_inst); in transform_samp()
1166 emit_twoside(struct tgsi_transform_context *tctx) in emit_twoside() argument
1168 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in emit_twoside()
1191 tctx->emit_declaration(tctx, &decl); in emit_twoside()
1202 tctx->emit_declaration(tctx, &decl); in emit_twoside()
1212 tctx->emit_declaration(tctx, &decl); in emit_twoside()
1245 tctx->emit_instruction(tctx, &new_inst); in emit_twoside()
1250 emit_decls(struct tgsi_transform_context *tctx) in emit_decls() argument
1252 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in emit_decls()
1270 tctx->emit_immediate(tctx, &immed); in emit_decls()
1284 tctx->emit_declaration(tctx, &decl); in emit_decls()
1299 emit_twoside(tctx); in emit_decls()
1323 transform_instr(struct tgsi_transform_context *tctx, in transform_instr() argument
1326 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx); in transform_instr()
1329 emit_decls(tctx); in transform_instr()
1343 transform_dst(tctx, inst); in transform_instr()
1348 transform_lrp(tctx, inst); in transform_instr()
1353 transform_frc(tctx, inst); in transform_instr()
1358 transform_pow(tctx, inst); in transform_instr()
1363 transform_lit(tctx, inst); in transform_instr()
1368 transform_exp(tctx, inst); in transform_instr()
1373 transform_log(tctx, inst); in transform_instr()
1378 transform_dotp(tctx, inst); in transform_instr()
1383 transform_dotp(tctx, inst); in transform_instr()
1388 transform_dotp(tctx, inst); in transform_instr()
1393 transform_flr_ceil(tctx, inst); in transform_instr()
1398 transform_flr_ceil(tctx, inst); in transform_instr()
1403 transform_trunc(tctx, inst); in transform_instr()
1410 if (transform_samp(tctx, inst)) in transform_instr()
1415 tctx->emit_instruction(tctx, inst); in transform_instr()