Lines Matching defs:offset
292 unsigned offset = 0;
296 offset = ALIGN_POT(offset, elem_align);
298 offset += elem_size;
300 return offset;
310 unsigned offset = 0;
314 offset += nir_src_as_uint((*p)->arr.index) *
320 offset += struct_type_get_field_offset(parent->type, size_align,
325 /* A cast doesn't contribute to the offset */
334 return offset;
344 nir_ssa_def *offset = nir_imm_intN_t(b, 0, deref->dest.ssa.bit_size);
351 offset = nir_iadd(b, offset, nir_amul_imm(b, index, stride));
360 offset = nir_iadd_imm(b, offset, field_offset);
364 /* A cast doesn't contribute to the offset */
373 return offset;
1004 * it's possible that the parent's alignment offset disagrees with the
1005 * cast's alignment offset. In this case, we consider the cast as