Lines Matching refs:prim
928 #define MAX_ALLOCA_PRIMS(prim) (50000 / sizeof(*prim))
932 #define ALLOC_PRIMS(prim, primcount, func) do { \
933 if (unlikely(primcount > MAX_ALLOCA_PRIMS(prim))) { \
934 prim = calloc(primcount, sizeof(*prim)); \
935 if (!prim) { \
940 prim = alloca(primcount * sizeof(*prim)); \
944 #define FREE_PRIMS(prim, primcount) do { \
945 if (primcount > MAX_ALLOCA_PRIMS(prim)) \
946 free(prim); \
1001 struct _mesa_prim prim;
1002 prim.mode = info->mode;
1003 prim.begin = 1;
1004 prim.end = 1;
1005 prim.start = draws[0].start;
1006 prim.count = draws[0].count;
1007 prim.basevertex = index_size ? draws[0].index_bias : 0;
1008 prim.draw_id = drawid_offset;
1015 st_feedback_draw_vbo(ctx, &prim, 1, index_size ? &ib : NULL,
1022 struct _mesa_prim *prim;
1026 ALLOC_PRIMS(prim, num_draws, "DrawGallium");
1035 prim[num_prims].mode = info->mode;
1036 prim[num_prims].begin = 1;
1037 prim[num_prims].end = 1;
1038 prim[num_prims].start = draws[i].start;
1039 prim[num_prims].count = draws[i].count;
1040 prim[num_prims].basevertex = info->index_size ? draws[i].index_bias : 0;
1041 prim[num_prims].draw_id = drawid_offset + (info->increment_draw_id ? i : 0);
1048 max_count = MAX2(max_count, prim[num_prims].count);
1066 st_feedback_draw_vbo(ctx, prim, num_prims, index_size ? &ib : NULL,
1070 FREE_PRIMS(prim, num_draws);
1401 GLenum prim;
1405 prim = GL_POINTS;
1408 prim = GL_LINE_STRIP;
1424 CALL_Begin(ctx->CurrentServerDispatch, (prim));
2133 * Check that the difference between each prim's indexes is a multiple of