Lines Matching defs:map
480 uint8_t *map;
487 map = (uint8_t*)vb->buffer.user + offset;
499 /* the stride cannot be used to calculate the map size of the buffer,
502 * be too small and conversion will overrun the map buffer
505 * in order to ensure the map is large enough
512 /* Don't try to map past end of buffer. This often happens when
529 map = pipe_buffer_map_range(mgr->pipe, vb->buffer.resource, offset, size,
535 map -= (ptrdiff_t)vb->stride * min_index;
538 tr->set_buffer(tr, i, map, vb->stride, info->max_index);
545 uint8_t *map;
547 /* Create and map the output buffer. */
556 map = (uint8_t*)info->index.user + offset;
558 map = pipe_buffer_map_range(mgr->pipe, info->index.resource, offset,
565 tr->run_elts(tr, (unsigned*)map, draw->count, 0, 0, out_map);
568 tr->run_elts16(tr, (uint16_t*)map, draw->count, 0, 0, out_map);
571 tr->run_elts8(tr, map, draw->count, 0, 0, out_map);
579 /* Create and map the output buffer. */