Lines Matching refs:vbi
341 unsigned i, v, vbi;
369 vbi = velem->vertex_buffer_index;
370 vbuf = &r300->vertex_buffer[vbi];
374 if (!map[vbi]) {
375 map[vbi] = (uint32_t*)r300->rws->buffer_map(
378 map[vbi] += (vbuf->buffer_offset / 4) + stride[i] * info->start;
380 mapelem[i] = map[vbi] + (velem->src_offset / 4);
401 vbi = r300->velems->velem[i].vertex_buffer_index;
403 if (map[vbi]) {
404 r300->rws->buffer_unmap(r300_resource(r300->vertex_buffer[vbi].buffer)->cs_buf);
405 map[vbi] = NULL;