Lines Matching defs:count

74  * than the vertex count.
105 unsigned count;
200 u_vbuf_create_vertex_elements(struct u_vbuf *mgr, unsigned count,
393 /* need to include the count into the stored state data too. */
394 key_size = sizeof(struct pipe_vertex_element) * velems->count +
403 cso->data = u_vbuf_create_vertex_elements(mgr, velems->count,
549 key->output_stride * draw->count, 4,
559 draw->count * info->index_size,
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);
709 for (i = 0; i < mgr->ve->count; i++) {
743 for (i = 0; i < mgr->ve->count; i++) {
814 for (i = 0; i < mgr->ve->count; i++) {
836 mgr->fallback_velems.count = mgr->ve->count;
865 u_vbuf_create_vertex_elements(struct u_vbuf *mgr, unsigned count,
869 util_lower_uint64_vertex_elements(&attribs, &count, tmp);
877 ve->count = count;
879 memcpy(ve->ve, attribs, sizeof(struct pipe_vertex_element) * count);
880 memcpy(driver_attribs, attribs, sizeof(struct pipe_vertex_element) * count);
884 for (i = 0; i < count; i++) {
938 ve->incompatible_elem_mask = u_bit_consecutive(0, count);
947 for (i = 0; i < count; i++) {
956 pipe->create_vertex_elements_state(pipe, count, driver_attribs);
976 unsigned start_slot, unsigned count,
993 ~(((1ull << (count + unbind_num_trailing_slots)) - 1) << start_slot);
998 unsigned total_count = count + unbind_num_trailing_slots;
1016 pipe->set_vertex_buffers(pipe, start_slot, count,
1021 for (i = 0; i < count; i++) {
1090 unsigned dst_index = start_slot + count + i;
1145 unsigned count = num_instances / instance_div;
1146 if (count * instance_div != num_instances)
1147 count++;
1150 *size = vb->stride * (count - 1) + ve->src_format_size[velem_index];
1167 unsigned nr_velems = ve->count;
1291 unsigned count,
1295 if (!count) {
1307 for (unsigned i = 0; i < count; i++) {
1315 for (unsigned i = 0; i < count; i++) {
1329 for (unsigned i = 0; i < count; i++) {
1337 for (unsigned i = 0; i < count; i++) {
1351 for (unsigned i = 0; i < count; i++) {
1359 for (unsigned i = 0; i < count; i++) {
1387 draw->count * info->index_size,
1391 u_vbuf_get_minmax_index_mapped(info, draw->count, indices,
1402 unsigned start_slot, count;
1405 count = util_last_bit(mgr->dirty_real_vb_mask >> start_slot);
1413 pipe->set_vertex_buffers(pipe, start_slot, count, 0, true,
1417 for (unsigned i = 0; i < count; i++) {
1423 pipe->set_vertex_buffers(pipe, start_slot, count, 0, false,
1439 p_atomic_add(&info->index.resource->reference.count, draw_count - 1);
1447 draw.count = indirect_data[offset + 0];
1507 p_atomic_add(&info->index.resource->reference.count, num_draws - 1);
1602 unsigned count = data[offset + 0];
1606 if (!count || !instance_count)
1616 u_vbuf_get_minmax_index_mapped(&new_info, count,
1629 /* Set the final instance count. */
1652 unsigned count = data[offset + 0];
1660 end_vertex = MAX2(end_vertex, start + count);
1666 new_draw.count = end_vertex - new_draw.start;
1669 if (new_draw.start == ~0u || !new_draw.count || !new_info.instance_count)
1673 if ((!indirect && !new_draw.count) || !new_info.instance_count)
1701 util_is_vbo_upload_ratio_too_large(new_draw.count, num_vertices) &&
1715 num_vertices = new_draw.count;
1735 new_info.max_index = new_draw.count - 1;