Lines Matching defs:count
163 for (i = 0; i < r300->velems->count; i++) {
318 unsigned count)
324 if (count * r300->velems->vertex_size_dwords > IMMD_DWORDS) {
343 unsigned vertex_element_count = r300->velems->count;
350 unsigned dwords = 4 + draw->count * vertex_size;
386 r300_emit_draw_init(r300, info->mode, draw->count-1);
390 OUT_CS_PKT3(R300_PACKET3_3D_DRAW_IMMD_2, draw->count * vertex_size);
391 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_EMBEDDED | (draw->count << 16) |
395 for (v = 0; v < draw->count; v++) {
405 unsigned count)
407 boolean alt_num_verts = count > 65535;
410 if (count >= (1 << 24)) {
412 "refusing to render.\n", count);
416 r300_emit_draw_init(r300, mode, count-1);
420 OUT_CS_REG(R500_VAP_ALT_NUM_VERTICES, count);
423 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST | (count << 16) |
435 unsigned count,
439 boolean alt_num_verts = count > 65535;
442 if (count >= (1 << 24)) {
444 "refusing to render (max_index: %i).\n", count, max_index);
449 count, max_index);
467 count -= 3;
468 if (!count)
476 OUT_CS_REG(R500_VAP_ALT_NUM_VERTICES, count);
480 count_dwords = count;
481 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) |
486 count_dwords = (count + 1) / 2;
487 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) |
509 unsigned i, count_dwords = index_size == 4 ? draw->count :
510 (draw->count + 1) / 2;
529 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (draw->count << 16) |
533 for (i = 0; i < draw->count-1; i += 2)
537 if (draw->count & 1)
540 for (i = 0; i < draw->count-1; i += 2)
544 if (draw->count & 1)
553 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (draw->count << 16) |
557 for (i = 0; i < draw->count-1; i += 2)
561 if (draw->count & 1)
572 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (draw->count << 16) |
577 for (i = 0; i < draw->count; i++)
597 unsigned count = draw->count;
599 count > 65536;
610 &indexSize, index_offset, &start, count);
627 count, (uint8_t*)ptr);
632 &start, count,
643 if (alt_num_verts || count <= 65535) {
645 info->max_index, info->mode, start, count,
653 short_count = MIN2(count, 65532);
660 count -= short_count;
663 if (count) {
670 } while (count);
685 draw->count > 65536;
687 unsigned count = draw->count;
696 if (alt_num_verts || count <= 65535) {
697 r300_emit_draw_arrays(r300, info->mode, count);
704 short_count = MIN2(count, 65532);
708 count -= short_count;
711 if (count) {
717 } while (count);
743 unsigned i, nr = r300->velems->count;
782 /* Compute the max count. */
807 !u_trim_pipe_prim(info.mode, &draw.count)) {
841 if (draw.count <= 8 && info.has_user_indices) {
851 if (immd_is_good_idea(r300, draw.count)) {
887 if (!u_trim_pipe_prim(info->mode, &draw.count))
945 ushort count)
950 size_t size = (size_t)vertex_size * (size_t)count;
1022 unsigned count)
1034 assert(count < (1 << 16));
1036 DBG(r300, DBG_DRAW, "r300: render_draw_arrays (count: %d)\n", count);
1047 OUT_CS_REG(R300_VAP_VF_MAX_VTX_INDX, count - 1);
1049 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST | (count << 16) |
1056 uint count)
1066 DBG(r300, DBG_DRAW, "r300: render_draw_elements (count: %d)\n", count);
1068 u_upload_data(r300->uploader, 0, count * 2, 4, indices,
1088 OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) |
1094 OUT_CS((count + 1) / 2);