• Home
  • Raw
  • Download

Lines Matching refs:sam

1192    struct ir3_instruction *sam, *addr;  in emit_sam()  local
1196 sam = ir3_SAM(ctx->block, opc, type, 0b1111, info.flags, info.samp_tex, src0, in emit_sam()
1199 ir3_instr_set_address(sam, addr); in emit_sam()
1202 sam->cat5.tex_base = info.base; in emit_sam()
1203 sam->cat5.samp = info.combined_idx; in emit_sam()
1205 return sam; in emit_sam()
1223 struct ir3_instruction *sam; in emit_intrinsic_load_image() local
1244 sam = emit_sam(ctx, OPC_ISAM, info, type, 0b1111, in emit_intrinsic_load_image()
1247 ir3_handle_nonuniform(sam, intr); in emit_intrinsic_load_image()
1249 sam->barrier_class = IR3_BARRIER_IMAGE_R; in emit_intrinsic_load_image()
1250 sam->barrier_conflict = IR3_BARRIER_IMAGE_W; in emit_intrinsic_load_image()
1252 ir3_split_dest(b, dst, sam, 0, 4); in emit_intrinsic_load_image()
1263 struct ir3_instruction *sam, *lod; in emit_intrinsic_image_size_tex() local
1270 sam = emit_sam(ctx, OPC_GETSIZE, info, dst_type, 0b1111, lod, NULL); in emit_intrinsic_image_size_tex()
1284 ir3_split_dest(b, tmp, sam, 0, 4); in emit_intrinsic_image_size_tex()
2386 struct ir3_instruction **dst, *sam, *src0[12], *src1[4]; in emit_tex() local
2658 sam = ir3_SAM(b, opc, type, MASK(ncomp), 0, NULL, in emit_tex()
2660 sam->prefetch.input_offset = ir3_nir_coord_offset(tex->src[idx].src.ssa); in emit_tex()
2662 sam->flags = flags | (info.flags & IR3_INSTR_B); in emit_tex()
2663 sam->prefetch.tex = info.tex_idx; in emit_tex()
2664 sam->prefetch.samp = info.samp_idx; in emit_tex()
2665 sam->prefetch.tex_base = info.tex_base; in emit_tex()
2666 sam->prefetch.samp_base = info.samp_base; in emit_tex()
2669 sam = emit_sam(ctx, opc, info, type, MASK(ncomp), col0, col1); in emit_tex()
2677 sam->dsts[0]->wrmask = 0x7; in emit_tex()
2678 ir3_split_dest(b, dst, sam, 0, 3); in emit_tex()
2683 sam = ir3_SAM(b, opc, type, 0b1000, flags | info.flags, info.samp_tex, in emit_tex()
2686 array_insert(ctx->ir, ctx->ir->astc_srgb, sam); in emit_tex()
2689 ir3_split_dest(b, &dst[3], sam, 3, 1); in emit_tex()
2692 ir3_split_dest(b, dst, sam, 0, ncomp); in emit_tex()
2713 struct ir3_instruction **dst, *sam; in emit_tex_info() local
2719 sam = emit_sam(ctx, OPC_GETINFO, info, dst_type, 1 << idx, NULL, NULL); in emit_tex_info()
2724 ir3_split_dest(b, dst, sam, idx, 1); in emit_tex_info()
2739 struct ir3_instruction **dst, *sam; in emit_tex_txs() local
2762 sam = emit_sam(ctx, OPC_GETSIZE, info, dst_type, 0b1111, lod, NULL); in emit_tex_txs()
2769 sam = emit_sam(ctx, OPC_GETBUF, info, dst_type, 0b1111, NULL, NULL); in emit_tex_txs()
2772 ir3_split_dest(b, dst, sam, 0, 4); in emit_tex_txs()
3842 struct ir3_instruction *sam = ctx->ir->astc_srgb[i]; in fixup_astc_srgb() local
3844 compile_assert(ctx, sam->cat5.tex < ARRAY_SIZE(alt_tex_state)); in fixup_astc_srgb()
3846 if (alt_tex_state[sam->cat5.tex] == 0) { in fixup_astc_srgb()
3848 alt_tex_state[sam->cat5.tex] = tex_idx++; in fixup_astc_srgb()
3849 so->astc_srgb.orig_idx[idx++] = sam->cat5.tex; in fixup_astc_srgb()
3853 sam->cat5.tex = alt_tex_state[sam->cat5.tex]; in fixup_astc_srgb()