Lines Matching refs:ib
345 const struct _mesa_index_buffer *ib, in bind_indices() argument
354 if (!ib) { in bind_indices()
359 if (ib->obj) { in bind_indices()
360 if (!_mesa_bufferobj_mapped(ib->obj, MAP_INTERNAL)) { in bind_indices()
362 bo[*nr_bo] = ib->obj; in bind_indices()
364 ptr = ctx->Driver.MapBufferRange(ctx, (GLsizeiptr) ib->ptr, in bind_indices()
365 ib->count << ib->index_size_shift, in bind_indices()
366 GL_MAP_READ_BIT, ib->obj, in bind_indices()
368 assert(ib->obj->Mappings[MAP_INTERNAL].Pointer); in bind_indices()
371 ptr = ADD_POINTERS(ib->obj->Mappings[MAP_INTERNAL].Pointer, ib->ptr); in bind_indices()
374 ptr = ib->ptr; in bind_indices()
376 if (ib->index_size_shift == 2 && VB->Primitive[0].basevertex == 0) { in bind_indices()
380 GLuint *elts = (GLuint *)get_space(ctx, (start + ib->count) * sizeof(GLuint)); in bind_indices()
385 if (ib->index_size_shift == 2) { in bind_indices()
387 for (i = 0; i < ib->count; i++) in bind_indices()
390 else if (ib->index_size_shift == 1) { in bind_indices()
392 for (i = 0; i < ib->count; i++) in bind_indices()
397 for (i = 0; i < ib->count; i++) in bind_indices()
430 const struct _mesa_index_buffer *ib, in _tnl_draw_prims() argument
444 vbo_get_minmax_indices(ctx, prim, ib, &min_index, &max_index, nr_prims, in _tnl_draw_prims()
468 t_rebase_prims(ctx, arrays, prim, nr_prims, ib, in _tnl_draw_prims()
486 _tnl_split_prims(ctx, arrays, prim, nr_prims, ib, in _tnl_draw_prims()
525 bind_indices(ctx, prim[i].start, ib, bo, &nr_bo); in _tnl_draw_prims()
638 const struct _mesa_index_buffer *ib, in _tnl_draw() argument
647 _tnl_draw_prims(ctx, arrays, prim, nr_prims, ib, in _tnl_draw()