Home | History | Annotate | Download | only in glx

Lines Matching refs:COUNT

68 static void emit_DrawArrays_none(GLenum mode, GLint first, GLsizei count);
69 static void emit_DrawArrays_old(GLenum mode, GLint first, GLsizei count);
71 static void emit_DrawElements_none(GLenum mode, GLsizei count, GLenum type,
73 static void emit_DrawElements_old(GLenum mode, GLsizei count, GLenum type,
88 static GLboolean validate_count(struct glx_context * gc, GLsizei count);
217 arrays->arrays[0].count = 3;
223 arrays->arrays[1].count = 4;
229 arrays->arrays[2].count = 1;
234 arrays->arrays[3].count = 1;
240 arrays->arrays[4 + i].count = 4;
251 arrays->arrays[i].count = 1;
259 arrays->arrays[i].count = 3;
272 arrays->arrays[idx + i].count = 4;
287 arrays->arrays[i].count = 4;
500 *(info++) = arrays->arrays[i].count;
525 emit_DrawArrays_none(GLenum mode, GLint first, GLsizei count)
548 for (i = 0; i < count; i++) {
583 * \param count Number of vertices.
593 GLenum mode, GLsizei count)
615 + (single_vertex_size * count);
644 vertex_requests = (count + elements_per_request[0] - 1)
657 *(uint32_t *) (pc + 8) = count;
674 *(uint32_t *) (pc + 4) = count;
684 *elements_per_request = count;
696 emit_DrawArrays_old(GLenum mode, GLint first, GLsizei count)
711 &total_requests, mode, count);
718 assert(elements_per_request >= count);
720 for (i = 0; i < count; i++) {
736 if (count < elements_per_request) {
737 elements_per_request = count;
750 count -= elements_per_request;
757 emit_DrawElements_none(GLenum mode, GLsizei count, GLenum type,
786 for (i = 0; i < count; i++) {
824 emit_DrawElements_old(GLenum mode, GLsizei count, GLenum type,
841 &total_requests, mode, count);
848 while (count > 0) {
849 if (count < elements_per_request) {
850 elements_per_request = count;
889 count -= elements_per_request;
939 * Validate that the \c count parameter to \c glDrawArrays, et. al. is valid.
948 validate_count(struct glx_context * gc, GLsizei count)
950 if (count < 0) {
954 return (count > 0);
982 __indirect_glDrawArrays(GLenum mode, GLint first, GLsizei count)
990 if (validate_mode(gc, mode) && validate_count(gc, count)) {
995 arrays->DrawArrays(mode, first, count);
1026 __indirect_glDrawElements(GLenum mode, GLsizei count, GLenum type,
1035 if (validate_mode(gc, mode) && validate_count(gc, count)
1041 arrays->DrawElements(mode, count, type, indices);
1048 GLsizei count, GLenum type,
1057 if (validate_mode(gc, mode) && validate_count(gc, count)
1068 arrays->DrawElements(mode, count, type, indices);
1075 const GLsizei *count, GLsizei primcount)
1090 if (validate_count(gc, count[i])) {
1091 arrays->DrawArrays(mode, first[i], count[i]);
1099 __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei * count,
1116 if (validate_count(gc, count[i])) {
1117 arrays->DrawElements(mode, count[i], type, indices[i]);
1128 #define COMMON_ARRAY_DATA_INIT(a, PTR, TYPE, STRIDE, COUNT, NORMALIZED, HDR_SIZE, OPCODE) \
1133 (a)->count = COUNT; \
1136 (a)->element_size = __glXTypeSize( TYPE ) * COUNT; \
1879 *dest = (GLintptr) a->count;
1967 stack[i].count = arrays->arrays[i].count;
1998 __indirect_glColorPointer(stack[i].count,
2011 __indirect_glTexCoordPointer(stack[i].count,
2016 __indirect_glSecondaryColorPointer(stack[i].count,