Lines Matching refs:primcount
670 #define ALLOC_PRIMS(prim, primcount, func) do { \ argument
671 if (unlikely(primcount > MAX_ALLOCA_PRIMS)) { \
672 prim = calloc(primcount, sizeof(*prim)); \
678 prim = alloca(primcount * sizeof(*prim)); \
682 #define FREE_PRIMS(prim, primcount) do { \ argument
683 if (primcount > MAX_ALLOCA_PRIMS) \
693 const GLsizei *count, GLsizei primcount) in _mesa_exec_MultiDrawArrays() argument
701 _mesa_enum_to_string(mode), first, count, primcount); in _mesa_exec_MultiDrawArrays()
711 if (!_mesa_validate_MultiDrawArrays(ctx, mode, count, primcount)) in _mesa_exec_MultiDrawArrays()
720 ALLOC_PRIMS(prim, primcount, "glMultiDrawElements"); in _mesa_exec_MultiDrawArrays()
722 for (i = 0; i < primcount; i++) { in _mesa_exec_MultiDrawArrays()
732 ctx->Driver.Draw(ctx, prim, primcount, NULL, GL_FALSE, 0, 0, 1, 0, in _mesa_exec_MultiDrawArrays()
738 FREE_PRIMS(prim, primcount); in _mesa_exec_MultiDrawArrays()
1242 GLsizei primcount, const GLint *basevertex) in _mesa_validated_multidrawelements() argument
1249 if (primcount == 0) in _mesa_validated_multidrawelements()
1256 for (i = 0; i < primcount; i++) { in _mesa_validated_multidrawelements()
1269 for (i = 0; i < primcount; i++) { in _mesa_validated_multidrawelements()
1294 ALLOC_PRIMS(prim, primcount, "glMultiDrawElements"); in _mesa_validated_multidrawelements()
1300 for (i = 0; i < primcount; i++) { in _mesa_validated_multidrawelements()
1314 ctx->Driver.Draw(ctx, prim, primcount, &ib, in _mesa_validated_multidrawelements()
1316 FREE_PRIMS(prim, primcount); in _mesa_validated_multidrawelements()
1320 for (i = 0; i < primcount; i++) { in _mesa_validated_multidrawelements()
1352 const GLvoid * const *indices, GLsizei primcount) in _mesa_MultiDrawElements() argument
1361 primcount)) in _mesa_MultiDrawElements()
1367 _mesa_validated_multidrawelements(ctx, mode, count, type, indices, primcount, in _mesa_MultiDrawElements()
1376 GLsizei primcount, in _mesa_MultiDrawElementsBaseVertex() argument
1390 primcount)) in _mesa_MultiDrawElementsBaseVertex()
1397 _mesa_validated_multidrawelements(ctx, mode, count, type, indices, primcount, in _mesa_MultiDrawElementsBaseVertex()
1502 GLsizei primcount) in _mesa_DrawTransformFeedbackInstanced() argument
1512 _mesa_draw_transform_feedback(ctx, mode, obj, 0, primcount); in _mesa_DrawTransformFeedbackInstanced()
1519 GLsizei primcount) in _mesa_DrawTransformFeedbackStreamInstanced() argument
1528 _mesa_enum_to_string(mode), name, stream, primcount); in _mesa_DrawTransformFeedbackStreamInstanced()
1530 _mesa_draw_transform_feedback(ctx, mode, obj, stream, primcount); in _mesa_DrawTransformFeedbackStreamInstanced()
1702 GLsizei primcount, GLsizei stride) in _mesa_MultiDrawArraysIndirect() argument
1708 _mesa_enum_to_string(mode), indirect, primcount, stride); in _mesa_MultiDrawArraysIndirect()
1724 if (!_mesa_valid_draw_indirect_multi(ctx, primcount, stride, in _mesa_MultiDrawArraysIndirect()
1729 for (unsigned i = 0; i < primcount; i++) { in _mesa_MultiDrawArraysIndirect()
1754 primcount, stride)) in _mesa_MultiDrawArraysIndirect()
1762 primcount, stride, NULL); in _mesa_MultiDrawArraysIndirect()
1769 GLsizei primcount, GLsizei stride) in _mesa_MultiDrawElementsIndirect() argument
1776 _mesa_enum_to_string(type), indirect, primcount, stride); in _mesa_MultiDrawElementsIndirect()
1806 if (!_mesa_valid_draw_indirect_multi(ctx, primcount, stride, in _mesa_MultiDrawElementsIndirect()
1811 for (unsigned i = 0; i < primcount; i++) { in _mesa_MultiDrawElementsIndirect()
1833 primcount, stride)) in _mesa_MultiDrawElementsIndirect()
1841 (GLintptr)indirect, 0, primcount, in _mesa_MultiDrawElementsIndirect()
1978 GLsizei primcount, GLint modestride ) in _mesa_MultiModeDrawArraysIBM() argument
1985 for ( i = 0 ; i < primcount ; i++ ) { in _mesa_MultiModeDrawArraysIBM()
1998 GLsizei primcount, GLint modestride ) in _mesa_MultiModeDrawElementsIBM() argument
2007 for ( i = 0 ; i < primcount ; i++ ) { in _mesa_MultiModeDrawElementsIBM()