Lines Matching refs:chain

82    struct vtn_access_chain *chain;
85 size_t size = sizeof(*chain) +
86 (MAX2(length, 1) - 1) * sizeof(chain->link[0]);
87 chain = rzalloc_size(b, size);
88 chain->length = length;
90 return chain;
231 /* Dereference the given base pointer by the access chain */
314 * a pointer which just has a block index and a later access chain
325 /* If we got here, there's more access chain to handle and we have the
327 * start the deref chain.
446 * operation to add the index from the first link in the access chain
505 /* We need at least one element in the chain */
564 /* Dereference the given base pointer by the access chain */
628 struct vtn_access_chain chain = {
631 ptr = vtn_nir_deref_pointer_dereference(b, ptr, &chain);
741 struct vtn_access_chain chain = {
744 ptr = vtn_ssa_offset_pointer_dereference(b, ptr, &chain);
1126 struct vtn_access_chain chain = {
1133 chain.link[0].id = i;
1134 struct vtn_pointer *elem = vtn_pointer_dereference(b, ptr, &chain);
1142 vtn_fail("Invalid access chain type");
1202 struct vtn_access_chain chain = {
1210 chain.link[0].id = i;
1212 vtn_pointer_dereference(b, src, &chain);
1214 vtn_pointer_dereference(b, dest, &chain);
1222 vtn_fail("Invalid access chain type");
1853 struct vtn_access_chain chain = {
1856 ptr = vtn_ssa_offset_pointer_dereference(b, ptr, &chain);
1890 struct vtn_access_chain chain = {
1893 ptr = vtn_nir_deref_pointer_dereference(b, ptr, &chain);
2397 struct vtn_access_chain *chain = vtn_access_chain_create(b, count - 4);
2399 chain->ptr_as_array = (opcode == SpvOpPtrAccessChain || opcode == SpvOpInBoundsPtrAccessChain);
2405 chain->link[idx].mode = vtn_access_mode_literal;
2409 chain->link[idx].id = link_val->constant->values[0][0].i8;
2412 chain->link[idx].id = link_val->constant->values[0][0].i16;
2415 chain->link[idx].id = link_val->constant->values[0][0].i32;
2418 chain->link[idx].id = link_val->constant->values[0][0].i64;
2424 chain->link[idx].mode = vtn_access_mode_id;
2425 chain->link[idx].id = w[i];
2438 * sampler when crawling the access chain, but it does leave us
2446 vtn_pointer_dereference(b, base_val->sampled_image->image, chain);
2455 vtn_pointer_dereference(b, base_val->pointer, chain);
2555 struct vtn_access_chain chain = {
2558 ptr = vtn_pointer_dereference(b, ptr, &chain);