Lines Matching defs:ib
89 const struct _mesa_index_buffer *ib,
95 const int index_size = vbo_sizeof_ib_type(ib->type);
99 indices = (char *) ib->ptr + prim->start * index_size;
100 if (_mesa_is_bufferobj(ib->obj)) {
101 GLsizeiptr size = MIN2(count * index_size, ib->obj->Size);
103 GL_MAP_READ_BIT, ib->obj);
106 switch (ib->type) {
178 if (_mesa_is_bufferobj(ib->obj)) {
179 ctx->Driver.UnmapBuffer(ctx, ib->obj);
189 const struct _mesa_index_buffer *ib,
212 vbo_get_minmax_index(ctx, start_prim, ib, &tmp_min, &tmp_max, count);
556 const struct _mesa_index_buffer *ib,
563 if ((ib != NULL) &&
567 vbo_sw_primitive_restart(ctx, prim, nr_prims, ib);
570 vbo->draw_prims(ctx, prim, nr_prims, ib,
813 struct _mesa_index_buffer ib;
818 ib.count = count;
819 ib.type = type;
820 ib.obj = ctx->Array.ArrayObj->ElementArrayBufferObj;
821 ib.ptr = indices;
867 vbo_handle_primitive_restart(ctx, prim, 1, &ib,
1139 struct _mesa_index_buffer ib;
1188 ib.count = (max_index_ptr - min_index_ptr) / index_type_size;
1189 ib.type = type;
1190 ib.obj = ctx->Array.ArrayObj->ElementArrayBufferObj;
1191 ib.ptr = (void *)min_index_ptr;
1211 vbo_handle_primitive_restart(ctx, prim, primcount, &ib,
1216 ib.count = count[i];
1217 ib.type = type;
1218 ib.obj = ctx->Array.ArrayObj->ElementArrayBufferObj;
1219 ib.ptr = indices[i];
1237 vbo_handle_primitive_restart(ctx, prim, 1, &ib,