Lines Matching defs:offset
384 /* Update the offset for the TMU write based on the
473 struct qreg offset = base_offset;
475 offset = vir_ADD(c, offset,
479 tmu = vir_ADD_dest(c, tmua, offset, data);
592 * offset is the target address and we don't need to add it
593 * to a base offset.
2690 int offset,
2696 * to load scalar 8-bit/16-bit uniforms so long as their offset
2708 if (offset % 4 != 0)
2712 offset = offset / 4;
2716 vir_uniform(c, contents, offset + i));
2731 int offset = (nir_intrinsic_base(instr) +
2734 if (try_emit_uniform(c, offset, instr->num_components,
2769 int offset = nir_src_as_uint(instr->src[1]);
2770 if (try_emit_uniform(c, offset, instr->num_components,
2784 /* XXX: Use ldvpmv (uniform offset) or ldvpmd (non-uniform offset).
2791 * to scratch. If we implement non-uniform offset here we might be able
2795 unsigned offset =
2801 * vpmsetup when not just taking the next offset).
2820 for (int i = 0; i < offset; i++)
2831 struct qreg input = c->inputs[offset * 4 + comp];
2855 unsigned offset = (rt * V3D_MAX_SAMPLES + sample_idx) * 4;
2857 c->sample_colors[offset + i] =
2866 unsigned offset = (nir_intrinsic_base(instr) +
2870 c->outputs[offset + i] =
2880 struct qreg offset = ntq_get_src(c, instr->src[1], 0);
2885 offset = vir_ADD(c, vir_uniform_ui(c, base_offset), offset);
2898 /* The offset isn’t necessarily dynamically uniform for a geometry
2902 * instruction to have a different offset for each lane.
2907 vir_VPM_WRITE_indirect(c, val, offset, is_uniform_offset);
2929 struct qreg offset = vir_ADD(c,
2935 vir_VPM_WRITE_indirect(c, val, offset, is_uniform_offset);
3025 /* Get offset at selected sample index */
3029 /* Select pixel center [offset=(0,0)] if two opposing samples (or none)
3113 * current unifa offset is 4 bytes ahead of the offset of the last load.
3118 /* We can only use unifa if the offset is uniform */
3119 nir_src offset = is_uniform ? instr->src[0] : instr->src[1];
3120 if (nir_src_is_divergent(offset))
3133 bool dynamic_src = !nir_src_is_const(offset);
3137 uint32_t const_offset = dynamic_src ? 0 : nir_src_as_uint(offset);
3145 * loads with a constant offset.
3153 /* If we are loading from an unaligned offset, fix
3177 * constant offset loads. If the new load targets the same buffer and
3216 ntq_get_src(c, offset, 0));
3649 * unused, its VPM offset is used by the next used
3652 * and we need to compute the VPM offset for each input by
3772 const uint32_t offset = nir_src_as_uint(instr->src[1]);
3776 (nir_intrinsic_base(instr) + offset) * 4 +
3791 * offset.