Lines Matching refs:index
242 nir_ssa_def *index = nir_ssa_for_src(b, deref->arr.index, 1);
243 assert(deref->arr.index.ssa);
245 nir_imul(b, index, nir_imm_int(b, array_size)));
252 /* Accessing an invalid surface index with the dataport can result in a
253 * hang. According to the spec "if the index used to select an individual
257 * Clamp the index to prevent access outside of the array bounds.
297 nir_ssa_def *index =
300 nir_rewrite_image_intrinsic(intrin, index, false);
779 int index = u_bit_scan64(&mask);
780 fprintf(fp, " [%u] %s #%d\n", entry++, surface_group_names[i], index);
792 * Map a <group, index> pair to a binding table index.
794 * For example: <UBO, 5> => binding table index 12
798 enum iris_surface_group group, uint32_t index)
800 assert(index < bt->sizes[group]);
802 uint64_t bit = 1ull << index;
811 * Map a binding table index back to a <group, index> pair.
813 * For example: binding table index 12 => <UBO, 5>
843 uint32_t index = nir_src_as_uint(*src);
844 bti = nir_imm_intN_t(b, iris_group_index_to_bti(bt, group, index),
863 uint64_t index = nir_src_as_uint(*src);
864 assert(index < bt->sizes[group]);
865 bt->used_mask[group] |= 1ull << index;