Lines Matching refs:tctx

58 tgsi_lowering_context(struct tgsi_transform_context *tctx)
60 return (struct tgsi_lowering_context *)tctx;
131 create_mov(struct tgsi_transform_context *tctx,
145 tctx->emit_instruction(tctx, &new_inst);
197 transform_dst(struct tgsi_transform_context *tctx,
200 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
207 create_mov(tctx, &ctx->tmp[A].dst, src0, TGSI_WRITEMASK_YZ, 0);
212 create_mov(tctx, &ctx->tmp[B].dst, src1, TGSI_WRITEMASK_YW, 0);
225 tctx->emit_instruction(tctx, &new_inst);
236 tctx->emit_instruction(tctx, &new_inst);
247 tctx->emit_instruction(tctx, &new_inst);
258 tctx->emit_instruction(tctx, &new_inst);
278 transform_lrp(struct tgsi_transform_context *tctx,
281 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
299 tctx->emit_instruction(tctx, &new_inst);
311 tctx->emit_instruction(tctx, &new_inst);
328 transform_frc(struct tgsi_transform_context *tctx,
331 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
344 tctx->emit_instruction(tctx, &new_inst);
355 tctx->emit_instruction(tctx, &new_inst);
373 transform_pow(struct tgsi_transform_context *tctx,
376 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
390 tctx->emit_instruction(tctx, &new_inst);
400 tctx->emit_instruction(tctx, &new_inst);
409 tctx->emit_instruction(tctx, &new_inst);
433 transform_lit(struct tgsi_transform_context *tctx,
436 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
450 tctx->emit_instruction(tctx, &new_inst);
460 tctx->emit_instruction(tctx, &new_inst);
471 tctx->emit_instruction(tctx, &new_inst);
480 tctx->emit_instruction(tctx, &new_inst);
490 tctx->emit_instruction(tctx, &new_inst);
499 tctx->emit_instruction(tctx, &new_inst);
511 tctx->emit_instruction(tctx, &new_inst);
520 tctx->emit_instruction(tctx, &new_inst);
531 tctx->emit_instruction(tctx, &new_inst);
558 transform_exp(struct tgsi_transform_context *tctx,
561 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
575 tctx->emit_instruction(tctx, &new_inst);
586 tctx->emit_instruction(tctx, &new_inst);
595 tctx->emit_instruction(tctx, &new_inst);
607 tctx->emit_instruction(tctx, &new_inst);
620 tctx->emit_instruction(tctx, &new_inst);
631 tctx->emit_instruction(tctx, &new_inst);
642 tctx->emit_instruction(tctx, &new_inst);
653 tctx->emit_instruction(tctx, &new_inst);
681 transform_log(struct tgsi_transform_context *tctx,
684 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
698 tctx->emit_instruction(tctx, &new_inst);
710 tctx->emit_instruction(tctx, &new_inst);
721 tctx->emit_instruction(tctx, &new_inst);
730 tctx->emit_instruction(tctx, &new_inst);
742 tctx->emit_instruction(tctx, &new_inst);
751 tctx->emit_instruction(tctx, &new_inst);
762 tctx->emit_instruction(tctx, &new_inst);
773 tctx->emit_instruction(tctx, &new_inst);
784 tctx->emit_instruction(tctx, &new_inst);
819 transform_dotp(struct tgsi_transform_context *tctx,
822 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
842 tctx->emit_instruction(tctx, &new_inst);
856 tctx->emit_instruction(tctx, &new_inst);
869 tctx->emit_instruction(tctx, &new_inst);
886 tctx->emit_instruction(tctx, &new_inst);
905 transform_flr_ceil(struct tgsi_transform_context *tctx,
908 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
925 tctx->emit_instruction(tctx, &new_inst);
937 tctx->emit_instruction(tctx, &new_inst);
959 transform_trunc(struct tgsi_transform_context *tctx,
962 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
977 tctx->emit_instruction(tctx, &new_inst);
989 tctx->emit_instruction(tctx, &new_inst);
999 tctx->emit_instruction(tctx, &new_inst);
1011 tctx->emit_instruction(tctx, &new_inst);
1032 transform_samp(struct tgsi_transform_context *tctx,
1035 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
1110 create_mov(tctx, &ctx->tmp[A].dst, coord, TGSI_WRITEMASK_XYZW, 0);
1126 tctx->emit_instruction(tctx, &new_inst);
1136 tctx->emit_instruction(tctx, &new_inst);
1143 create_mov(tctx, &ctx->tmp[A].dst, &ctx->tmp[A].src, mask, 1);
1150 tctx->emit_instruction(tctx, &new_inst);
1167 emit_twoside(struct tgsi_transform_context *tctx)
1169 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
1191 tctx->emit_declaration(tctx, &decl);
1202 tctx->emit_declaration(tctx, &decl);
1212 tctx->emit_declaration(tctx, &decl);
1245 tctx->emit_instruction(tctx, &new_inst);
1250 emit_decls(struct tgsi_transform_context *tctx)
1252 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
1270 tctx->emit_immediate(tctx, &immed);
1284 tctx->emit_declaration(tctx, &decl);
1299 emit_twoside(tctx);
1323 transform_instr(struct tgsi_transform_context *tctx,
1326 struct tgsi_lowering_context *ctx = tgsi_lowering_context(tctx);
1329 emit_decls(tctx);
1343 transform_dst(tctx, inst);
1348 transform_lrp(tctx, inst);
1353 transform_frc(tctx, inst);
1358 transform_pow(tctx, inst);
1363 transform_lit(tctx, inst);
1368 transform_exp(tctx, inst);
1373 transform_log(tctx, inst);
1378 transform_dotp(tctx, inst);
1383 transform_dotp(tctx, inst);
1388 transform_dotp(tctx, inst);
1393 transform_flr_ceil(tctx, inst);
1398 transform_flr_ceil(tctx, inst);
1403 transform_trunc(tctx, inst);
1410 if (transform_samp(tctx, inst))
1415 tctx->emit_instruction(tctx, inst);