Lines Matching refs:prim

88 		     const struct _mesa_prim *prim,  in vbo_get_minmax_index()  argument
99 indices = (char *) ib->ptr + prim->start * index_size; in vbo_get_minmax_index()
554 const struct _mesa_prim *prim, in vbo_handle_primitive_restart() argument
567 vbo_sw_primitive_restart(ctx, prim, nr_prims, ib); in vbo_handle_primitive_restart()
570 vbo->draw_prims(ctx, prim, nr_prims, ib, in vbo_handle_primitive_restart()
588 struct _mesa_prim prim[2]; in vbo_draw_arrays() local
593 memset(prim, 0, sizeof(prim)); in vbo_draw_arrays()
594 prim[0].begin = 1; in vbo_draw_arrays()
595 prim[0].end = 1; in vbo_draw_arrays()
596 prim[0].mode = mode; in vbo_draw_arrays()
597 prim[0].num_instances = numInstances; in vbo_draw_arrays()
598 prim[0].base_instance = baseInstance; in vbo_draw_arrays()
607 prim[0].start = start + 1; in vbo_draw_arrays()
608 prim[0].count = count - 1; in vbo_draw_arrays()
615 prim[0].start = start; in vbo_draw_arrays()
616 prim[0].count = count - 1; in vbo_draw_arrays()
622 prim[0].start = start; in vbo_draw_arrays()
623 prim[0].count = ctx->Array.RestartIndex - start; in vbo_draw_arrays()
625 prim[1] = prim[0]; in vbo_draw_arrays()
626 prim[1].start = ctx->Array.RestartIndex + 1; in vbo_draw_arrays()
627 prim[1].count = count - prim[1].start; in vbo_draw_arrays()
635 vbo->draw_prims(ctx, prim, primCount, NULL, in vbo_draw_arrays()
641 prim[0].start = start; in vbo_draw_arrays()
642 prim[0].count = count; in vbo_draw_arrays()
645 vbo->draw_prims(ctx, prim, 1, NULL, in vbo_draw_arrays()
814 struct _mesa_prim prim[1]; in vbo_validated_drawrangeelements() local
823 prim[0].begin = 1; in vbo_validated_drawrangeelements()
824 prim[0].end = 1; in vbo_validated_drawrangeelements()
825 prim[0].weak = 0; in vbo_validated_drawrangeelements()
826 prim[0].pad = 0; in vbo_validated_drawrangeelements()
827 prim[0].mode = mode; in vbo_validated_drawrangeelements()
828 prim[0].start = 0; in vbo_validated_drawrangeelements()
829 prim[0].count = count; in vbo_validated_drawrangeelements()
830 prim[0].indexed = 1; in vbo_validated_drawrangeelements()
831 prim[0].basevertex = basevertex; in vbo_validated_drawrangeelements()
832 prim[0].num_instances = numInstances; in vbo_validated_drawrangeelements()
833 prim[0].base_instance = baseInstance; in vbo_validated_drawrangeelements()
867 vbo_handle_primitive_restart(ctx, prim, 1, &ib, in vbo_validated_drawrangeelements()
1140 struct _mesa_prim *prim; in vbo_validated_multidrawelements() local
1149 prim = calloc(1, primcount * sizeof(*prim)); in vbo_validated_multidrawelements()
1150 if (prim == NULL) { in vbo_validated_multidrawelements()
1194 prim[i].begin = (i == 0); in vbo_validated_multidrawelements()
1195 prim[i].end = (i == primcount - 1); in vbo_validated_multidrawelements()
1196 prim[i].weak = 0; in vbo_validated_multidrawelements()
1197 prim[i].pad = 0; in vbo_validated_multidrawelements()
1198 prim[i].mode = mode; in vbo_validated_multidrawelements()
1199 prim[i].start = ((uintptr_t)indices[i] - min_index_ptr) / index_type_size; in vbo_validated_multidrawelements()
1200 prim[i].count = count[i]; in vbo_validated_multidrawelements()
1201 prim[i].indexed = 1; in vbo_validated_multidrawelements()
1202 prim[i].num_instances = 1; in vbo_validated_multidrawelements()
1203 prim[i].base_instance = 0; in vbo_validated_multidrawelements()
1205 prim[i].basevertex = basevertex[i]; in vbo_validated_multidrawelements()
1207 prim[i].basevertex = 0; in vbo_validated_multidrawelements()
1211 vbo_handle_primitive_restart(ctx, prim, primcount, &ib, in vbo_validated_multidrawelements()
1221 prim[0].begin = 1; in vbo_validated_multidrawelements()
1222 prim[0].end = 1; in vbo_validated_multidrawelements()
1223 prim[0].weak = 0; in vbo_validated_multidrawelements()
1224 prim[0].pad = 0; in vbo_validated_multidrawelements()
1225 prim[0].mode = mode; in vbo_validated_multidrawelements()
1226 prim[0].start = 0; in vbo_validated_multidrawelements()
1227 prim[0].count = count[i]; in vbo_validated_multidrawelements()
1228 prim[0].indexed = 1; in vbo_validated_multidrawelements()
1229 prim[0].num_instances = 1; in vbo_validated_multidrawelements()
1230 prim[0].base_instance = 0; in vbo_validated_multidrawelements()
1232 prim[0].basevertex = basevertex[i]; in vbo_validated_multidrawelements()
1234 prim[0].basevertex = 0; in vbo_validated_multidrawelements()
1237 vbo_handle_primitive_restart(ctx, prim, 1, &ib, in vbo_validated_multidrawelements()
1242 free(prim); in vbo_validated_multidrawelements()
1293 struct _mesa_prim prim[2]; in vbo_draw_transform_feedback() local
1303 memset(prim, 0, sizeof(prim)); in vbo_draw_transform_feedback()
1304 prim[0].begin = 1; in vbo_draw_transform_feedback()
1305 prim[0].end = 1; in vbo_draw_transform_feedback()
1306 prim[0].mode = mode; in vbo_draw_transform_feedback()
1307 prim[0].num_instances = numInstances; in vbo_draw_transform_feedback()
1308 prim[0].base_instance = 0; in vbo_draw_transform_feedback()
1315 vbo->draw_prims(ctx, prim, 1, NULL, in vbo_draw_transform_feedback()