Lines Matching refs:index
33 nir_ssa_def *index = NULL;
48 if (nir_src_is_const(deref->arr.index) && index == NULL) {
49 /* We're still building a direct index */
50 unsigned index_in_array = nir_src_as_uint(deref->arr.index);
61 * so just clamp the index.
64 * of bounds, and they are used as an index to arrays of driver state.
72 if (index == NULL) {
74 index = nir_imm_int(b, base_index);
78 index = nir_iadd(b, index,
80 nir_ssa_for_src(b, deref->arr.index, 1)));
88 if (index)
89 index = nir_umin(b, index, nir_imm_int(b, array_elements - 1));
99 if (index) {
101 nir_src_for_ssa(index));