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