Lines Matching defs:ib
308 struct pipe_index_buffer *ib = &mgr->index_buffer;
310 unsigned offset = ib->offset + start_index * ib->index_size;
313 assert((ib->buffer || ib->user_buffer) && ib->index_size);
323 if (ib->user_buffer) {
324 map = (uint8_t*)ib->user_buffer + offset;
326 map = pipe_buffer_map_range(mgr->pipe, ib->buffer, offset,
327 num_indices * ib->index_size,
331 switch (ib->index_size) {
773 const struct pipe_index_buffer *ib)
777 if (ib) {
778 assert(ib->offset % ib->index_size == 0);
779 pipe_resource_reference(&mgr->index_buffer.buffer, ib->buffer);
780 memcpy(&mgr->index_buffer, ib, sizeof(*ib));
785 pipe->set_index_buffer(pipe, ib);
898 struct pipe_index_buffer *ib,
908 if (ib->user_buffer) {
909 indices = (uint8_t*)ib->user_buffer +
910 ib->offset + info->start * ib->index_size;
912 indices = pipe_buffer_map_range(pipe, ib->buffer,
913 ib->offset + info->start * ib->index_size,
914 info->count * ib->index_size,
918 switch (ib->index_size) {