Lines Matching refs:ib
93 * - if ib != NULL and min_index != 0, otherwise vertices lower than
96 * - if ib == NULL and min_index != 0, just for convenience so this doesn't
108 const struct _mesa_index_buffer *ib,
131 if (0 && ib && ctx->Extensions.ARB_draw_elements_base_vertex) {
148 } else if (ib) {
158 t_rebase_prims(ctx, arrays, &prim[0], i, ib, min_index,
160 t_rebase_prims(ctx, arrays, &prim[i], nr_prims - i, ib, min_index,
171 if (ib->obj) {
172 if (!ib->obj->Mappings[MAP_INTERNAL].Pointer) {
173 ctx->Driver.MapBufferRange(ctx, 0, ib->obj->Size, GL_MAP_READ_BIT,
174 ib->obj, MAP_INTERNAL);
178 ptr = ADD_POINTERS(ib->obj->Mappings[MAP_INTERNAL].Pointer, ib->ptr);
180 ptr = ib->ptr;
185 switch (ib->index_size_shift) {
187 tmp_indices = rebase_GLuint(ptr, start, ib->count, min_index);
190 tmp_indices = rebase_GLushort(ptr, start, ib->count, min_index);
193 tmp_indices = rebase_GLubyte(ptr, start, ib->count, min_index);
198 ctx->Driver.UnmapBuffer(ctx, ib->obj, MAP_INTERNAL);
205 tmp_ib.count = ib->count;
206 tmp_ib.index_size_shift = ib->index_size_shift;
208 ib = &tmp_ib;
256 ib,