Home | History | Annotate | Download | only in tnl

Lines Matching refs:ib

336 			  const struct _mesa_index_buffer *ib,
345 if (!ib) {
350 if (_mesa_is_bufferobj(ib->obj) && !_mesa_bufferobj_mapped(ib->obj)) {
352 bo[*nr_bo] = ib->obj;
354 ptr = ctx->Driver.MapBufferRange(ctx, (GLsizeiptr) ib->ptr,
355 ib->count * vbo_sizeof_ib_type(ib->type),
356 GL_MAP_READ_BIT, ib->obj);
357 assert(ib->obj->Pointer);
360 ptr = ADD_POINTERS(ib->obj->Pointer, ib->ptr);
363 if (ib->type == GL_UNSIGNED_INT && VB->Primitive[0].basevertex == 0) {
367 GLuint *elts = (GLuint *)get_space(ctx, ib->count * sizeof(GLuint));
370 if (ib->type == GL_UNSIGNED_INT) {
372 for (i = 0; i < ib->count; i++)
375 else if (ib->type == GL_UNSIGNED_SHORT) {
377 for (i = 0; i < ib->count; i++)
382 for (i = 0; i < ib->count; i++)
413 const struct _mesa_index_buffer *ib,
422 vbo_get_minmax_indices(ctx, prim, ib, &min_index, &max_index, nr_prims);
424 _tnl_draw_prims(ctx, arrays, prim, nr_prims, ib, min_index, max_index);
435 const struct _mesa_index_buffer *ib,
467 vbo_rebase_prims( ctx, arrays, prim, nr_prims, ib,
485 vbo_split_prims( ctx, arrays, prim, nr_prims, ib,
521 bind_indices(ctx, ib, bo, &nr_bo);