• Home
  • Raw
  • Download

Lines Matching refs:gc

89 static GLboolean validate_mode(struct glx_context * gc, GLenum mode);
90 static GLboolean validate_count(struct glx_context * gc, GLsizei count);
91 static GLboolean validate_type(struct glx_context * gc, GLenum type);
114 __glXFreeVertexArrayState(struct glx_context * gc) in __glXFreeVertexArrayState() argument
116 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __glXFreeVertexArrayState()
142 __glXInitVertexArrayState(struct glx_context * gc) in __glXInitVertexArrayState() argument
144 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __glXInitVertexArrayState()
159 __glXSetError(gc, GL_OUT_OF_MEMORY); in __glXInitVertexArrayState()
182 if (__glExtensionBitIsEnabled(gc, GL_EXT_fog_coord_bit) in __glXInitVertexArrayState()
183 || (gc->server_major > 1) || (gc->server_minor >= 4)) { in __glXInitVertexArrayState()
188 if (__glExtensionBitIsEnabled(gc, GL_EXT_secondary_color_bit) in __glXInitVertexArrayState()
189 || (gc->server_major > 1) || (gc->server_minor >= 4)) { in __glXInitVertexArrayState()
194 if (__glExtensionBitIsEnabled(gc, GL_ARB_multitexture_bit) in __glXInitVertexArrayState()
195 || (gc->server_major > 1) || (gc->server_minor >= 3)) { in __glXInitVertexArrayState()
199 if (__glExtensionBitIsEnabled(gc, GL_ARB_vertex_program_bit)) { in __glXInitVertexArrayState()
214 __glXSetError(gc, GL_OUT_OF_MEMORY); in __glXInitVertexArrayState()
304 __glXSetError(gc, GL_OUT_OF_MEMORY); in __glXInitVertexArrayState()
529 struct glx_context *gc = __glXGetCurrentContext(); in emit_DrawArrays_none() local
531 (const __GLXattribute *) (gc->client_state_private); in emit_DrawArrays_none()
543 pc = gc->pc; in emit_DrawArrays_none()
551 if ((pc + single_vertex_size) >= gc->bufEnd) { in emit_DrawArrays_none()
552 pc = __glXFlushRenderBuffer(gc, pc); in emit_DrawArrays_none()
558 if ((pc + 4) >= gc->bufEnd) { in emit_DrawArrays_none()
559 pc = __glXFlushRenderBuffer(gc, pc); in emit_DrawArrays_none()
565 gc->pc = pc; in emit_DrawArrays_none()
566 if (gc->pc > gc->limit) { in emit_DrawArrays_none()
567 (void) __glXFlushRenderBuffer(gc, gc->pc); in emit_DrawArrays_none()
591 emit_DrawArrays_header_old(struct glx_context * gc, in emit_DrawArrays_header_old() argument
624 if (command_size > gc->maxSmallRenderCommandSize) { in emit_DrawArrays_header_old()
629 const size_t maxSize = (gc->bufSize + sz_xGLXRenderReq) in emit_DrawArrays_header_old()
652 __glXFlushRenderBuffer(gc, gc->pc); in emit_DrawArrays_header_old()
663 __glXSendLargeChunk(gc, 1, *total_requests, pc, in emit_DrawArrays_header_old()
666 pc = gc->pc; in emit_DrawArrays_header_old()
669 if ((gc->pc + command_size) >= gc->bufEnd) { in emit_DrawArrays_header_old()
670 (void) __glXFlushRenderBuffer(gc, gc->pc); in emit_DrawArrays_header_old()
673 pc = gc->pc; in emit_DrawArrays_header_old()
700 struct glx_context *gc = __glXGetCurrentContext(); in emit_DrawArrays_old() local
702 (const __GLXattribute *) (gc->client_state_private); in emit_DrawArrays_old()
711 pc = emit_DrawArrays_header_old(gc, arrays, &elements_per_request, in emit_DrawArrays_old()
725 assert(pc <= gc->bufEnd); in emit_DrawArrays_old()
727 gc->pc = pc; in emit_DrawArrays_old()
728 if (gc->pc > gc->limit) { in emit_DrawArrays_old()
729 (void) __glXFlushRenderBuffer(gc, gc->pc); in emit_DrawArrays_old()
741 pc = gc->pc; in emit_DrawArrays_old()
748 __glXSendLargeChunk(gc, req, total_requests, gc->pc, pc - gc->pc); in emit_DrawArrays_old()
760 struct glx_context *gc = __glXGetCurrentContext(); in emit_DrawElements_none() local
762 (const __GLXattribute *) (gc->client_state_private); in emit_DrawElements_none()
775 if ((gc->pc + single_vertex_size) >= gc->bufEnd) { in emit_DrawElements_none()
776 gc->pc = __glXFlushRenderBuffer(gc, gc->pc); in emit_DrawElements_none()
779 pc = gc->pc; in emit_DrawElements_none()
789 if ((pc + single_vertex_size) >= gc->bufEnd) { in emit_DrawElements_none()
790 pc = __glXFlushRenderBuffer(gc, pc); in emit_DrawElements_none()
807 if ((pc + 4) >= gc->bufEnd) { in emit_DrawElements_none()
808 pc = __glXFlushRenderBuffer(gc, pc); in emit_DrawElements_none()
814 gc->pc = pc; in emit_DrawElements_none()
815 if (gc->pc > gc->limit) { in emit_DrawElements_none()
816 (void) __glXFlushRenderBuffer(gc, gc->pc); in emit_DrawElements_none()
827 struct glx_context *gc = __glXGetCurrentContext(); in emit_DrawElements_old() local
829 (const __GLXattribute *) (gc->client_state_private); in emit_DrawElements_old()
840 pc = emit_DrawArrays_header_old(gc, arrays, &elements_per_request, in emit_DrawElements_old()
884 __glXSendLargeChunk(gc, req, total_requests, gc->pc, pc - gc->pc); in emit_DrawElements_old()
885 pc = gc->pc; in emit_DrawElements_old()
897 assert(pc <= gc->bufEnd); in emit_DrawElements_old()
899 gc->pc = pc; in emit_DrawElements_old()
900 if (gc->pc > gc->limit) { in emit_DrawElements_old()
901 (void) __glXFlushRenderBuffer(gc, gc->pc); in emit_DrawElements_old()
915 validate_mode(struct glx_context * gc, GLenum mode) in validate_mode() argument
930 __glXSetError(gc, GL_INVALID_ENUM); in validate_mode()
948 validate_count(struct glx_context * gc, GLsizei count) in validate_count() argument
951 __glXSetError(gc, GL_INVALID_VALUE); in validate_count()
967 validate_type(struct glx_context * gc, GLenum type) in validate_type() argument
975 __glXSetError(gc, GL_INVALID_ENUM); in validate_type()
984 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glDrawArrays() local
986 (const __GLXattribute *) (gc->client_state_private); in __indirect_glDrawArrays()
990 if (validate_mode(gc, mode) && validate_count(gc, count)) { in __indirect_glDrawArrays()
1003 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glArrayElement() local
1005 (const __GLXattribute *) (gc->client_state_private); in __indirect_glArrayElement()
1013 if ((gc->pc + single_vertex_size) >= gc->bufEnd) { in __indirect_glArrayElement()
1014 gc->pc = __glXFlushRenderBuffer(gc, gc->pc); in __indirect_glArrayElement()
1017 gc->pc = emit_element_none(gc->pc, arrays, index); in __indirect_glArrayElement()
1019 if (gc->pc > gc->limit) { in __indirect_glArrayElement()
1020 (void) __glXFlushRenderBuffer(gc, gc->pc); in __indirect_glArrayElement()
1029 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glDrawElements() local
1031 (const __GLXattribute *) (gc->client_state_private); in __indirect_glDrawElements()
1035 if (validate_mode(gc, mode) && validate_count(gc, count) in __indirect_glDrawElements()
1036 && validate_type(gc, type)) { in __indirect_glDrawElements()
1051 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glDrawRangeElements() local
1053 (const __GLXattribute *) (gc->client_state_private); in __indirect_glDrawRangeElements()
1057 if (validate_mode(gc, mode) && validate_count(gc, count) in __indirect_glDrawRangeElements()
1058 && validate_type(gc, type)) { in __indirect_glDrawRangeElements()
1060 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glDrawRangeElements()
1077 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glMultiDrawArrays() local
1079 (const __GLXattribute *) (gc->client_state_private); in __indirect_glMultiDrawArrays()
1084 if (validate_mode(gc, mode)) { in __indirect_glMultiDrawArrays()
1090 if (validate_count(gc, count[i])) { in __indirect_glMultiDrawArrays()
1103 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glMultiDrawElementsEXT() local
1105 (const __GLXattribute *) (gc->client_state_private); in __indirect_glMultiDrawElementsEXT()
1110 if (validate_mode(gc, mode) && validate_type(gc, type)) { in __indirect_glMultiDrawElementsEXT()
1116 if (validate_count(gc, count[i])) { in __indirect_glMultiDrawElementsEXT()
1162 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glVertexPointer() local
1163 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glVertexPointer()
1169 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glVertexPointer()
1187 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glVertexPointer()
1207 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glNormalPointer() local
1208 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glNormalPointer()
1214 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glNormalPointer()
1235 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glNormalPointer()
1278 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glColorPointer() local
1279 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glColorPointer()
1285 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glColorPointer()
1315 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glColorPointer()
1333 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glIndexPointer() local
1334 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glIndexPointer()
1340 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glIndexPointer()
1361 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glIndexPointer()
1378 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glEdgeFlagPointer() local
1379 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glEdgeFlagPointer()
1385 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glEdgeFlagPointer()
1440 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glTexCoordPointer() local
1441 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glTexCoordPointer()
1449 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glTexCoordPointer()
1469 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glTexCoordPointer()
1490 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glTexCoordPointer()
1513 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glSecondaryColorPointer() local
1514 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glSecondaryColorPointer()
1520 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glSecondaryColorPointer()
1550 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glSecondaryColorPointer()
1556 __glXSetError(gc, GL_INVALID_OPERATION); in __indirect_glSecondaryColorPointer()
1573 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glFogCoordPointer() local
1574 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glFogCoordPointer()
1580 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glFogCoordPointer()
1592 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glFogCoordPointer()
1598 __glXSetError(gc, GL_INVALID_OPERATION); in __indirect_glFogCoordPointer()
1629 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glVertexAttribPointer() local
1630 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glVertexAttribPointer()
1639 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glVertexAttribPointer()
1664 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glVertexAttribPointer()
1704 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glVertexAttribPointer()
1711 __glXSetError(gc, GL_INVALID_OPERATION); in __indirect_glVertexAttribPointer()
1741 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glVertexAttribPointerNV() local
1748 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glVertexAttribPointerNV()
1760 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glVertexAttribPointerNV()
1769 struct glx_context *const gc = __glXGetCurrentContext(); in __indirect_glClientActiveTexture() local
1771 (__GLXattribute *) (gc->client_state_private); in __indirect_glClientActiveTexture()
1777 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glClientActiveTexture()