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);
212 arrays->arrays[0].count = 3;
218 arrays->arrays[1].count = 4;
224 arrays->arrays[2].count = 1;
229 arrays->arrays[3].count = 1;
235 arrays->arrays[4 + i].count = 4;
248 arrays->arrays[i].count = 1;
256 arrays->arrays[i].count = 3;
269 arrays->arrays[idx + i].count = 4;
286 arrays->arrays[i].count = 4;
463 *(info++) = arrays->arrays[i].count;
488 emit_DrawArrays_none(GLenum mode, GLint first, GLsizei count)
511 for (i = 0; i < count; i++) {
546 * \param count Number of vertices.
556 GLenum mode, GLsizei count)
578 + (single_vertex_size * count);
607 vertex_requests = (count + elements_per_request[0] - 1)
620 *(uint32_t *) (pc + 8) = count;
637 *(uint32_t *) (pc + 4) = count;
647 *elements_per_request = count;
659 emit_DrawArrays_old(GLenum mode, GLint first, GLsizei count)
674 &total_requests, mode, count);
681 assert(elements_per_request >= count);
683 for (i = 0; i < count; i++) {
699 if (count < elements_per_request) {
700 elements_per_request = count;
713 count -= elements_per_request;
720 emit_DrawElements_none(GLenum mode, GLsizei count, GLenum type,
749 for (i = 0; i < count; i++) {
787 emit_DrawElements_old(GLenum mode, GLsizei count, GLenum type,
804 &total_requests, mode, count);
811 while (count > 0) {
812 if (count < elements_per_request) {
813 elements_per_request = count;
852 count -= elements_per_request;
902 * Validate that the \c count parameter to \c glDrawArrays, et. al. is valid.
911 validate_count(struct glx_context * gc, GLsizei count)
913 if (count < 0) {
917 return (count > 0);
945 __indirect_glDrawArrays(GLenum mode, GLint first, GLsizei count)
953 if (validate_mode(gc, mode) && validate_count(gc, count)) {
958 arrays->DrawArrays(mode, first, count);
989 __indirect_glDrawElements(GLenum mode, GLsizei count, GLenum type,
998 if (validate_mode(gc, mode) && validate_count(gc, count)
1004 arrays->DrawElements(mode, count, type, indices);
1011 GLsizei count, GLenum type,
1020 if (validate_mode(gc, mode) && validate_count(gc, count)
1031 arrays->DrawElements(mode, count, type, indices);
1038 const GLsizei *count, GLsizei primcount)
1053 if (validate_count(gc, count[i])) {
1054 arrays->DrawArrays(mode, first[i], count[i]);
1062 __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei * count,
1079 if (validate_count(gc, count[i])) {
1080 arrays->DrawElements(mode, count[i], type, indices[i]);
1087 #define COMMON_ARRAY_DATA_INIT(a, PTR, TYPE, STRIDE, COUNT, NORMALIZED, HDR_SIZE, OPCODE) \
1092 (a)->count = COUNT; \
1095 (a)->element_size = __glXTypeSize( TYPE ) * COUNT; \
1831 *dest = (GLintptr) a->count;
1919 stack[i].count = arrays->arrays[i].count;
1950 __indirect_glColorPointer(stack[i].count,
1963 __indirect_glTexCoordPointer(stack[i].count,
1968 __indirect_glSecondaryColorPointerEXT(stack[i].count,