Lines Matching defs:ib
56 const struct _mesa_index_buffer *ib;
144 const struct _mesa_index_buffer *ib,
154 printf(" IB: %p\n", (void*) ib);
468 if (_mesa_is_bufferobj(copy->ib->obj) &&
469 !_mesa_bufferobj_mapped(copy->ib->obj))
470 ctx->Driver.MapBufferRange(ctx, 0, copy->ib->obj->Size, GL_MAP_READ_BIT,
471 copy->ib->obj);
473 srcptr = (const GLubyte *) ADD_POINTERS(copy->ib->obj->Pointer,
474 copy->ib->ptr);
476 switch (copy->ib->type) {
478 copy->translated_elt_buf = malloc(sizeof(GLuint) * copy->ib->count);
481 for (i = 0; i < copy->ib->count; i++)
486 copy->translated_elt_buf = malloc(sizeof(GLuint) * copy->ib->count);
489 for (i = 0; i < copy->ib->count; i++)
540 copy->ib->count * 2 + 3);
581 if (_mesa_is_bufferobj(copy->ib->obj) &&
582 _mesa_bufferobj_mapped(copy->ib->obj)) {
583 ctx->Driver.UnmapBuffer(ctx, copy->ib->obj);
595 const struct _mesa_index_buffer *ib,
617 assert(ib);
623 copy.ib = ib;