Lines Matching refs:vbi
77 const unsigned vbi = ve->vertex_buffer_index;
101 if (so->vb_access_size[vbi] < (ve->src_offset + size))
102 so->vb_access_size[vbi] = ve->src_offset + size;
106 so->instance_bufs |= 1 << vbi;
107 if (ve->instance_divisor < so->min_instance_div[vbi])
108 so->min_instance_div[vbi] = ve->instance_divisor;
121 transkey.element[j].input_buffer = vbi;
199 nvc0_user_vbuf_range(struct nvc0_context *nvc0, int vbi,
202 if (unlikely(nvc0->vertex->instance_bufs & (1 << vbi))) {
203 const uint32_t div = nvc0->vertex->min_instance_div[vbi];
204 *base = nvc0->instance_off * nvc0->vtxbuf[vbi].stride;
205 *size = (nvc0->instance_max / div) * nvc0->vtxbuf[vbi].stride +
206 nvc0->vertex->vb_access_size[vbi];
210 *base = nvc0->vb_elt_first * nvc0->vtxbuf[vbi].stride;
211 *size = nvc0->vb_elt_limit * nvc0->vtxbuf[vbi].stride +
212 nvc0->vertex->vb_access_size[vbi];