Lines Matching refs:vtn_ssa_value
57 static struct vtn_ssa_value *
60 struct vtn_ssa_value *val = rzalloc(b, struct vtn_ssa_value);
69 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems);
92 static struct vtn_ssa_value *
101 struct vtn_ssa_value *val = rzalloc(b, struct vtn_ssa_value);
124 val->elems = ralloc_array(b, struct vtn_ssa_value *, columns);
127 struct vtn_ssa_value *col_val = rzalloc(b, struct vtn_ssa_value);
145 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems);
155 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems);
172 struct vtn_ssa_value *
173 vtn_ssa_value(struct vtn_builder *b, uint32_t value_id)
1328 struct vtn_ssa_value *arg_ssa = vtn_ssa_value(b, arg_id);
1356 struct vtn_ssa_value *
1359 struct vtn_ssa_value *val = rzalloc(b, struct vtn_ssa_value);
1364 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems);
1397 src.src = nir_src_for_ssa(vtn_ssa_value(b, index)->def);
1544 coord = vtn_ssa_value(b, w[idx++])->def;
1598 const struct vtn_ssa_value *gather_offsets = NULL;
1626 gather_offsets = vtn_ssa_value(b, w[idx++]);
1777 nir_src_for_ssa(nir_ineg(&b->nb, vtn_ssa_value(b, w[6])->def));
1781 src[0] = nir_src_for_ssa(vtn_ssa_value(b, w[8])->def);
1782 src[1] = nir_src_for_ssa(vtn_ssa_value(b, w[7])->def);
1794 src[0] = nir_src_for_ssa(vtn_ssa_value(b, w[6])->def);
1805 struct vtn_ssa_value *coord = vtn_ssa_value(b, value);
1829 val->image->sample = vtn_ssa_value(b, w[5])->def;
1872 image.sample = vtn_ssa_value(b, w[6])->def;
1887 image.sample = vtn_ssa_value(b, w[5])->def;
1947 intrin->src[2] = nir_src_for_ssa(vtn_ssa_value(b, w[4])->def);
1950 intrin->src[2] = nir_src_for_ssa(vtn_ssa_value(b, w[3])->def);
2098 atomic->src[0] = nir_src_for_ssa(vtn_ssa_value(b, w[4])->def);
2142 atomic->src[0] = nir_src_for_ssa(vtn_ssa_value(b, w[4])->def);
2179 val->ssa = rzalloc(b, struct vtn_ssa_value);
2207 struct vtn_ssa_value *
2208 vtn_ssa_transpose(struct vtn_builder *b, struct vtn_ssa_value *src)
2213 struct vtn_ssa_value *dest =
2341 static struct vtn_ssa_value *
2342 vtn_composite_copy(void *mem_ctx, struct vtn_ssa_value *src)
2344 struct vtn_ssa_value *dest = rzalloc(mem_ctx, struct vtn_ssa_value);
2352 dest->elems = ralloc_array(mem_ctx, struct vtn_ssa_value *, elems);
2360 static struct vtn_ssa_value *
2361 vtn_composite_insert(struct vtn_builder *b, struct vtn_ssa_value *src,
2362 struct vtn_ssa_value *insert, const uint32_t *indices,
2365 struct vtn_ssa_value *dest = vtn_composite_copy(b, src);
2367 struct vtn_ssa_value *cur = dest;
2387 static struct vtn_ssa_value *
2388 vtn_composite_extract(struct vtn_builder *b, struct vtn_ssa_value *src,
2391 struct vtn_ssa_value *cur = src;
2400 struct vtn_ssa_value *ret = rzalloc(b, struct vtn_ssa_value);
2423 val->ssa->def = vtn_vector_extract_dynamic(b, vtn_ssa_value(b, w[3])->def,
2424 vtn_ssa_value(b, w[4])->def);
2428 val->ssa->def = vtn_vector_insert_dynamic(b, vtn_ssa_value(b, w[3])->def,
2429 vtn_ssa_value(b, w[4])->def,
2430 vtn_ssa_value(b, w[5])->def);
2435 vtn_ssa_value(b, w[3])->def,
2436 vtn_ssa_value(b, w[4])->def,
2445 srcs[i] = vtn_ssa_value(b, w[3 + i])->def;
2450 val->ssa->elems = ralloc_array(b, struct vtn_ssa_value *, elems);
2452 val->ssa->elems[i] = vtn_ssa_value(b, w[3 + i]);
2457 val->ssa = vtn_composite_extract(b, vtn_ssa_value(b, w[3]),
2462 val->ssa = vtn_composite_insert(b, vtn_ssa_value(b, w[4]),
2463 vtn_ssa_value(b, w[3]),
2468 val->ssa = vtn_composite_copy(b, vtn_ssa_value(b, w[3]));