Lines Matching defs:offset

894    struct ir3_instruction *offset = ir3_get_src(ctx, &intr->src[1])[0];
896 struct ir3_instruction *ldc = ir3_LDC(b, idx, 0, offset, 0);
921 struct ir3_instruction *offset = ir3_get_src(ctx, &intr->src[1])[0];
923 struct ir3_instruction *ldc = ir3_LDC_K(b, idx, 0, offset, 0);
975 /* For load_ubo_indirect, second src is indirect offset: */
978 /* and add offset to addr: */
982 /* if offset is to large to encode in the ldg, split it out: */
1023 unsigned offset = nir_intrinsic_base(intr);
1029 offset += src0->srcs[0]->iim_val;
1032 compile_assert(ctx, !(offset & 0x3));
1034 dst[0] = create_uniform(b, p + (offset / 4));
1037 compile_assert(ctx, !(offset & 0x3));
1045 dst[0] = create_uniform_indirect(b, offset / 4, TYPE_U32,
1077 /* src[] = { offset }. const_index[] = { base } */
1083 struct ir3_instruction *ldl, *offset;
1086 offset = ir3_get_src(ctx, &intr->src[0])[0];
1089 ldl = ir3_LDL(b, offset, 0, create_immed(b, base), 0,
1101 /* src[] = { value, offset }. const_index[] = { base, write_mask } */
1106 struct ir3_instruction *stl, *offset;
1111 offset = ir3_get_src(ctx, &intr->src[1])[0];
1119 stl = ir3_STL(b, offset, 0, ir3_create_collect(b, value, ncomp), 0,
1129 /* src[] = { offset }. const_index[] = { base } */
1136 struct ir3_instruction *load, *offset;
1139 offset = ir3_get_src(ctx, &intr->src[0])[0];
1142 load = ir3_LDLW(b, offset, 0, create_immed(b, base), 0,
1158 /* src[] = { value, offset }. const_index[] = { base } */
1164 struct ir3_instruction *store, *offset;
1168 offset = ir3_get_src(ctx, &intr->src[1])[0];
1170 store = ir3_STLW(b, offset, 0,
1197 * 0: The offset into the shared variable storage region that the atomic
1210 src0 = ir3_get_src(ctx, &intr->src[0])[0]; /* offset */
1266 struct ir3_instruction **offset, int32_t *base)
1272 /* The base offset field is only 13 bits, and it's signed. Try to make the
1273 * offset constant whenever the original offsets are similar, to avoid
1278 *offset = create_immed(b, offset_val);
1282 *offset = ir3_get_src(ctx, src)[0];
1286 /* src[] = { offset }. */
1292 struct ir3_instruction *ldp, *offset;
1295 stp_ldp_offset(ctx, &intr->src[0], &offset, &base);
1297 ldp = ir3_LDP(b, offset, 0, create_immed(b, base), 0,
1309 /* src[] = { value, offset }. const_index[] = { write_mask } */
1314 struct ir3_instruction *stp, *offset;
1321 stp_ldp_offset(ctx, &intr->src[1], &offset, &base);
1328 stp = ir3_STP(b, offset, 0, ir3_create_collect(b, value, ncomp), 0,
1531 /* src[] = { buffer_index, offset }. No const_index */
1546 struct ir3_instruction *offset = ir3_get_src(ctx, &intr->src[2])[0];
1547 struct ir3_instruction *coords = ir3_collect(b, offset, create_immed(b, 0));
2173 struct ir3_instruction *offset =
2175 offset->dsts[0]->wrmask = 0x3;
2176 offset->cat5.type = TYPE_F32;
2178 ir3_split_dest(b, dst, offset, 0, 2);
2203 * dword-offset in the last source.
3052 * - starting at offset 4, dpdx.xy, dpdy.xy
3244 /* scale and offset the unorm data */
3922 unsigned offset = nir_src_as_uint(intr->src[coord ? 1 : 0]);
3924 unsigned n = nir_intrinsic_base(intr) + offset;
3925 unsigned slot = nir_intrinsic_io_semantics(intr).location + offset;
4120 unsigned offset = nir_src_as_uint(intr->src[1]);
4121 unsigned n = nir_intrinsic_base(intr) + offset;
4126 * views, each with a corresponding driver_location, and the offset is for
4131 * itself) and the indirect offset corresponds to the view.
4133 unsigned slot = io.location + (io.per_view ? 0 : offset);
4203 so->outputs[n].view = offset;