Lines Matching refs:gc
110 __glXReadPixelReply( Display *dpy, struct glx_context * gc, unsigned max_dim,
134 __glXSetError(gc, GL_OUT_OF_MEMORY);
144 __glEmptyImage(gc, 3, width, height, depth, format, type,
154 __glXSetupSingleRequest( struct glx_context * gc, GLint sop, GLint cmdlen )
157 Display * const dpy = gc->currentDpy;
159 (void) __glXFlushRenderBuffer(gc, gc->pc);
162 req->reqType = gc->majorOpcode;
163 req->contextTag = gc->currentContextTag;
169 __glXSetupVendorRequest( struct glx_context * gc, GLint code, GLint vop, GLint cmdlen )
172 Display * const dpy = gc->currentDpy;
174 (void) __glXFlushRenderBuffer(gc, gc->pc);
177 req->reqType = gc->majorOpcode;
180 req->contextTag = gc->currentContextTag;
200 struct glx_context * const gc = __glXGetCurrentContext();
203 emit_header(gc->pc, rop, cmdlen);
204 (void) memcpy((void *)(gc->pc + 4), ptr, 4);
205 gc->pc += cmdlen;
206 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
212 struct glx_context * const gc = __glXGetCurrentContext();
215 emit_header(gc->pc, rop, cmdlen);
216 (void) memcpy((void *)(gc->pc + 4), ptr, 4);
217 gc->pc += cmdlen;
218 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
224 struct glx_context * const gc = __glXGetCurrentContext();
227 emit_header(gc->pc, rop, cmdlen);
228 (void) memcpy((void *)(gc->pc + 4), ptr, 8);
229 gc->pc += cmdlen;
230 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
236 struct glx_context * const gc = __glXGetCurrentContext();
239 emit_header(gc->pc, rop, cmdlen);
240 (void) memcpy((void *)(gc->pc + 4), ptr, 8);
241 gc->pc += cmdlen;
242 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
248 struct glx_context * const gc = __glXGetCurrentContext();
251 emit_header(gc->pc, rop, cmdlen);
252 (void) memcpy((void *)(gc->pc + 4), ptr, 12);
253 gc->pc += cmdlen;
254 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
260 struct glx_context * const gc = __glXGetCurrentContext();
263 emit_header(gc->pc, rop, cmdlen);
264 (void) memcpy((void *)(gc->pc + 4), ptr, 16);
265 gc->pc += cmdlen;
266 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
272 struct glx_context * const gc = __glXGetCurrentContext();
275 emit_header(gc->pc, rop, cmdlen);
276 (void) memcpy((void *)(gc->pc + 4), ptr, 24);
277 gc->pc += cmdlen;
278 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
284 struct glx_context * const gc = __glXGetCurrentContext();
287 emit_header(gc->pc, rop, cmdlen);
288 (void) memcpy((void *)(gc->pc + 4), ptr, 32);
289 gc->pc += cmdlen;
290 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
296 struct glx_context * const gc = __glXGetCurrentContext();
297 Display * const dpy = gc->currentDpy;
304 (void) __glXFlushRenderBuffer(gc, gc->pc);
305 xcb_glx_new_list(c, gc->currentContextTag, list, mode);
307 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_NewList, cmdlen);
319 struct glx_context * const gc = __glXGetCurrentContext();
320 Display * const dpy = gc->currentDpy;
327 (void) __glXFlushRenderBuffer(gc, gc->pc);
328 xcb_glx_end_list(c, gc->currentContextTag);
330 (void) __glXSetupSingleRequest(gc, X_GLsop_EndList, cmdlen);
340 struct glx_context * const gc = __glXGetCurrentContext();
342 emit_header(gc->pc, X_GLrop_CallList, cmdlen);
343 (void) memcpy((void *)(gc->pc + 4), (void *)(&list), 1 * sizeof(GLuint));
344 gc->pc += cmdlen;
345 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
351 struct glx_context * const gc = __glXGetCurrentContext();
355 __glXSetError(gc, GL_INVALID_VALUE);
359 __glXSetError(gc, GL_INVALID_VALUE);
362 if (__builtin_expect((n >= 0) && (gc->currentDpy != NULL), 1)) {
363 if (cmdlen <= gc->maxSmallRenderCommandSize) {
364 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
365 (void) __glXFlushRenderBuffer(gc, gc->pc);
367 emit_header(gc->pc, X_GLrop_CallLists, cmdlen);
368 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 1 * sizeof(GLsizei));
369 (void) memcpy((void *)(gc->pc + 8), (void *)(&type), 1 * sizeof(GLenum));
370 (void) memcpy((void *)(gc->pc + 12), (void *)(lists), safe_mul(compsize, n));
371 gc->pc += cmdlen;
372 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
377 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
382 __glXSendLargeCommand(gc, pc, 16, lists, safe_mul(compsize, n));
390 struct glx_context * const gc = __glXGetCurrentContext();
391 Display * const dpy = gc->currentDpy;
398 (void) __glXFlushRenderBuffer(gc, gc->pc);
399 xcb_glx_delete_lists(c, gc->currentContextTag, list, range);
401 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_DeleteLists, cmdlen);
413 struct glx_context * const gc = __glXGetCurrentContext();
414 Display * const dpy = gc->currentDpy;
422 (void) __glXFlushRenderBuffer(gc, gc->pc);
423 xcb_glx_gen_lists_reply_t *reply = xcb_glx_gen_lists_reply(c, xcb_glx_gen_lists(c, gc->currentContextTag, range), NULL);
427 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GenLists, cmdlen);
439 struct glx_context * const gc = __glXGetCurrentContext();
441 emit_header(gc->pc, X_GLrop_ListBase, cmdlen);
442 (void) memcpy((void *)(gc->pc + 4), (void *)(&base), 1 * sizeof(GLuint));
443 gc->pc += cmdlen;
444 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
450 struct glx_context * const gc = __glXGetCurrentContext();
452 emit_header(gc->pc, X_GLrop_Begin, cmdlen);
453 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
454 gc->pc += cmdlen;
455 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
461 struct glx_context * const gc = __glXGetCurrentContext();
465 __glXSetError(gc, GL_INVALID_VALUE);
468 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
469 if (cmdlen <= gc->maxSmallRenderCommandSize) {
470 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
471 (void) __glXFlushRenderBuffer(gc, gc->pc);
473 emit_header(gc->pc, X_GLrop_Bitmap, cmdlen);
474 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 1 * sizeof(GLsizei));
475 (void) memcpy((void *)(gc->pc + 28), (void *)(&height), 1 * sizeof(GLsizei));
476 (void) memcpy((void *)(gc->pc + 32), (void *)(&xorig), 1 * sizeof(GLfloat));
477 (void) memcpy((void *)(gc->pc + 36), (void *)(&yorig), 1 * sizeof(GLfloat));
478 (void) memcpy((void *)(gc->pc + 40), (void *)(&xmove), 1 * sizeof(GLfloat));
479 (void) memcpy((void *)(gc->pc + 44), (void *)(&ymove), 1 * sizeof(GLfloat));
481 __glFillImage(gc, 2, width, height, 1, GL_COLOR_INDEX, GL_BITMAP, bitmap, gc->pc + 48, gc->pc + 4);
483 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
485 gc->pc += cmdlen;
486 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
491 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
500 __glXSendLargeImage(gc, compsize, 2, width, height, 1, GL_COLOR_INDEX, GL_BITMAP, bitmap, pc + 52, pc + 8);
508 struct glx_context * const gc = __glXGetCurrentContext();
510 emit_header(gc->pc, X_GLrop_Color3bv, cmdlen);
511 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLbyte));
512 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1 * sizeof(GLbyte));
513 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1 * sizeof(GLbyte));
514 gc->pc += cmdlen;
515 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
527 struct glx_context * const gc = __glXGetCurrentContext();
529 emit_header(gc->pc, X_GLrop_Color3dv, cmdlen);
530 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLdouble));
531 (void) memcpy((void *)(gc->pc + 12), (void *)(&green), 1 * sizeof(GLdouble));
532 (void) memcpy((void *)(gc->pc + 20), (void *)(&blue), 1 * sizeof(GLdouble));
533 gc->pc += cmdlen;
534 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
546 struct glx_context * const gc = __glXGetCurrentContext();
548 emit_header(gc->pc, X_GLrop_Color3fv, cmdlen);
549 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLfloat));
550 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLfloat));
551 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLfloat));
552 gc->pc += cmdlen;
553 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
565 struct glx_context * const gc = __glXGetCurrentContext();
567 emit_header(gc->pc, X_GLrop_Color3iv, cmdlen);
568 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLint));
569 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLint));
570 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLint));
571 gc->pc += cmdlen;
572 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
584 struct glx_context * const gc = __glXGetCurrentContext();
586 emit_header(gc->pc, X_GLrop_Color3sv, cmdlen);
587 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLshort));
588 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 1 * sizeof(GLshort));
589 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 1 * sizeof(GLshort));
590 gc->pc += cmdlen;
591 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
603 struct glx_context * const gc = __glXGetCurrentContext();
605 emit_header(gc->pc, X_GLrop_Color3ubv, cmdlen);
606 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLubyte));
607 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1 * sizeof(GLubyte));
608 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1 * sizeof(GLubyte));
609 gc->pc += cmdlen;
610 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
622 struct glx_context * const gc = __glXGetCurrentContext();
624 emit_header(gc->pc, X_GLrop_Color3uiv, cmdlen);
625 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLuint));
626 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLuint));
627 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLuint));
628 gc->pc += cmdlen;
629 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
641 struct glx_context * const gc = __glXGetCurrentContext();
643 emit_header(gc->pc, X_GLrop_Color3usv, cmdlen);
644 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLushort));
645 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 1 * sizeof(GLushort));
646 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 1 * sizeof(GLushort));
647 gc->pc += cmdlen;
648 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
660 struct glx_context * const gc = __glXGetCurrentContext();
662 emit_header(gc->pc, X_GLrop_Color4bv, cmdlen);
663 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLbyte));
664 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1 * sizeof(GLbyte));
665 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1 * sizeof(GLbyte));
666 (void) memcpy((void *)(gc->pc + 7), (void *)(&alpha), 1 * sizeof(GLbyte));
667 gc->pc += cmdlen;
668 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
680 struct glx_context * const gc = __glXGetCurrentContext();
682 emit_header(gc->pc, X_GLrop_Color4dv, cmdlen);
683 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLdouble));
684 (void) memcpy((void *)(gc->pc + 12), (void *)(&green), 1 * sizeof(GLdouble));
685 (void) memcpy((void *)(gc->pc + 20), (void *)(&blue), 1 * sizeof(GLdouble));
686 (void) memcpy((void *)(gc->pc + 28), (void *)(&alpha), 1 * sizeof(GLdouble));
687 gc->pc += cmdlen;
688 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
700 struct glx_context * const gc = __glXGetCurrentContext();
702 emit_header(gc->pc, X_GLrop_Color4fv, cmdlen);
703 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLfloat));
704 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLfloat));
705 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLfloat));
706 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 1 * sizeof(GLfloat));
707 gc->pc += cmdlen;
708 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
720 struct glx_context * const gc = __glXGetCurrentContext();
722 emit_header(gc->pc, X_GLrop_Color4iv, cmdlen);
723 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLint));
724 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLint));
725 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLint));
726 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 1 * sizeof(GLint));
727 gc->pc += cmdlen;
728 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
740 struct glx_context * const gc = __glXGetCurrentContext();
742 emit_header(gc->pc, X_GLrop_Color4sv, cmdlen);
743 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLshort));
744 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 1 * sizeof(GLshort));
745 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 1 * sizeof(GLshort));
746 (void) memcpy((void *)(gc->pc + 10), (void *)(&alpha), 1 * sizeof(GLshort));
747 gc->pc += cmdlen;
748 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
760 struct glx_context * const gc = __glXGetCurrentContext();
762 emit_header(gc->pc, X_GLrop_Color4ubv, cmdlen);
763 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLubyte));
764 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1 * sizeof(GLubyte));
765 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1 * sizeof(GLubyte));
766 (void) memcpy((void *)(gc->pc + 7), (void *)(&alpha), 1 * sizeof(GLubyte));
767 gc->pc += cmdlen;
768 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
780 struct glx_context * const gc = __glXGetCurrentContext();
782 emit_header(gc->pc, X_GLrop_Color4uiv, cmdlen);
783 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLuint));
784 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLuint));
785 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLuint));
786 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 1 * sizeof(GLuint));
787 gc->pc += cmdlen;
788 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
800 struct glx_context * const gc = __glXGetCurrentContext();
802 emit_header(gc->pc, X_GLrop_Color4usv, cmdlen);
803 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLushort));
804 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 1 * sizeof(GLushort));
805 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 1 * sizeof(GLushort));
806 (void) memcpy((void *)(gc->pc + 10), (void *)(&alpha), 1 * sizeof(GLushort));
807 gc->pc += cmdlen;
808 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
820 struct glx_context * const gc = __glXGetCurrentContext();
822 emit_header(gc->pc, X_GLrop_EdgeFlagv, cmdlen);
823 (void) memcpy((void *)(gc->pc + 4), (void *)(&flag), 1 * sizeof(GLboolean));
824 gc->pc += cmdlen;
825 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
831 struct glx_context * const gc = __glXGetCurrentContext();
833 emit_header(gc->pc, X_GLrop_EdgeFlagv, cmdlen);
834 (void) memcpy((void *)(gc->pc + 4), (void *)(flag), 1 * sizeof(GLboolean));
835 gc->pc += cmdlen;
836 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
842 struct glx_context * const gc = __glXGetCurrentContext();
844 emit_header(gc->pc, X_GLrop_End, cmdlen);
845 gc->pc += cmdlen;
846 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
852 struct glx_context * const gc = __glXGetCurrentContext();
854 emit_header(gc->pc, X_GLrop_Indexdv, cmdlen);
855 (void) memcpy((void *)(gc->pc + 4), (void *)(&c), 1 * sizeof(GLdouble));
856 gc->pc += cmdlen;
857 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
869 struct glx_context * const gc = __glXGetCurrentContext();
871 emit_header(gc->pc, X_GLrop_Indexfv, cmdlen);
872 (void) memcpy((void *)(gc->pc + 4), (void *)(&c), 1 * sizeof(GLfloat));
873 gc->pc += cmdlen;
874 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
886 struct glx_context * const gc = __glXGetCurrentContext();
888 emit_header(gc->pc, X_GLrop_Indexiv, cmdlen);
889 (void) memcpy((void *)(gc->pc + 4), (void *)(&c), 1 * sizeof(GLint));
890 gc->pc += cmdlen;
891 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
903 struct glx_context * const gc = __glXGetCurrentContext();
905 emit_header(gc->pc, X_GLrop_Indexsv, cmdlen);
906 (void) memcpy((void *)(gc->pc + 4), (void *)(&c), 1 * sizeof(GLshort));
907 gc->pc += cmdlen;
908 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
914 struct glx_context * const gc = __glXGetCurrentContext();
916 emit_header(gc->pc, X_GLrop_Indexsv, cmdlen);
917 (void) memcpy((void *)(gc->pc + 4), (void *)(c), 1 * sizeof(GLshort));
918 gc->pc += cmdlen;
919 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
925 struct glx_context * const gc = __glXGetCurrentContext();
927 emit_header(gc->pc, X_GLrop_Normal3bv, cmdlen);
928 (void) memcpy((void *)(gc->pc + 4), (void *)(&nx), 1 * sizeof(GLbyte));
929 (void) memcpy((void *)(gc->pc + 5), (void *)(&ny), 1 * sizeof(GLbyte));
930 (void) memcpy((void *)(gc->pc + 6), (void *)(&nz), 1 * sizeof(GLbyte));
931 gc->pc += cmdlen;
932 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
944 struct glx_context * const gc = __glXGetCurrentContext();
946 emit_header(gc->pc, X_GLrop_Normal3dv, cmdlen);
947 (void) memcpy((void *)(gc->pc + 4), (void *)(&nx), 1 * sizeof(GLdouble));
948 (void) memcpy((void *)(gc->pc + 12), (void *)(&ny), 1 * sizeof(GLdouble));
949 (void) memcpy((void *)(gc->pc + 20), (void *)(&nz), 1 * sizeof(GLdouble));
950 gc->pc += cmdlen;
951 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
963 struct glx_context * const gc = __glXGetCurrentContext();
965 emit_header(gc->pc, X_GLrop_Normal3fv, cmdlen);
966 (void) memcpy((void *)(gc->pc + 4), (void *)(&nx), 1 * sizeof(GLfloat));
967 (void) memcpy((void *)(gc->pc + 8), (void *)(&ny), 1 * sizeof(GLfloat));
968 (void) memcpy((void *)(gc->pc + 12), (void *)(&nz), 1 * sizeof(GLfloat));
969 gc->pc += cmdlen;
970 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
982 struct glx_context * const gc = __glXGetCurrentContext();
984 emit_header(gc->pc, X_GLrop_Normal3iv, cmdlen);
985 (void) memcpy((void *)(gc->pc + 4), (void *)(&nx), 1 * sizeof(GLint));
986 (void) memcpy((void *)(gc->pc + 8), (void *)(&ny), 1 * sizeof(GLint));
987 (void) memcpy((void *)(gc->pc + 12), (void *)(&nz), 1 * sizeof(GLint));
988 gc->pc += cmdlen;
989 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1001 struct glx_context * const gc = __glXGetCurrentContext();
1003 emit_header(gc->pc, X_GLrop_Normal3sv, cmdlen);
1004 (void) memcpy((void *)(gc->pc + 4), (void *)(&nx), 1 * sizeof(GLshort));
1005 (void) memcpy((void *)(gc->pc + 6), (void *)(&ny), 1 * sizeof(GLshort));
1006 (void) memcpy((void *)(gc->pc + 8), (void *)(&nz), 1 * sizeof(GLshort));
1007 gc->pc += cmdlen;
1008 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1020 struct glx_context * const gc = __glXGetCurrentContext();
1022 emit_header(gc->pc, X_GLrop_RasterPos2dv, cmdlen);
1023 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
1024 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
1025 gc->pc += cmdlen;
1026 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1038 struct glx_context * const gc = __glXGetCurrentContext();
1040 emit_header(gc->pc, X_GLrop_RasterPos2fv, cmdlen);
1041 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
1042 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
1043 gc->pc += cmdlen;
1044 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1056 struct glx_context * const gc = __glXGetCurrentContext();
1058 emit_header(gc->pc, X_GLrop_RasterPos2iv, cmdlen);
1059 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
1060 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
1061 gc->pc += cmdlen;
1062 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1074 struct glx_context * const gc = __glXGetCurrentContext();
1076 emit_header(gc->pc, X_GLrop_RasterPos2sv, cmdlen);
1077 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLshort));
1078 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 1 * sizeof(GLshort));
1079 gc->pc += cmdlen;
1080 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1092 struct glx_context * const gc = __glXGetCurrentContext();
1094 emit_header(gc->pc, X_GLrop_RasterPos3dv, cmdlen);
1095 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
1096 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
1097 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLdouble));
1098 gc->pc += cmdlen;
1099 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1111 struct glx_context * const gc = __glXGetCurrentContext();
1113 emit_header(gc->pc, X_GLrop_RasterPos3fv, cmdlen);
1114 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
1115 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
1116 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLfloat));
1117 gc->pc += cmdlen;
1118 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1130 struct glx_context * const gc = __glXGetCurrentContext();
1132 emit_header(gc->pc, X_GLrop_RasterPos3iv, cmdlen);
1133 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
1134 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
1135 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLint));
1136 gc->pc += cmdlen;
1137 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1149 struct glx_context * const gc = __glXGetCurrentContext();
1151 emit_header(gc->pc, X_GLrop_RasterPos3sv, cmdlen);
1152 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLshort));
1153 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 1 * sizeof(GLshort));
1154 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 1 * sizeof(GLshort));
1155 gc->pc += cmdlen;
1156 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1168 struct glx_context * const gc = __glXGetCurrentContext();
1170 emit_header(gc->pc, X_GLrop_RasterPos4dv, cmdlen);
1171 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
1172 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
1173 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLdouble));
1174 (void) memcpy((void *)(gc->pc + 28), (void *)(&w), 1 * sizeof(GLdouble));
1175 gc->pc += cmdlen;
1176 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1188 struct glx_context * const gc = __glXGetCurrentContext();
1190 emit_header(gc->pc, X_GLrop_RasterPos4fv, cmdlen);
1191 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
1192 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
1193 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLfloat));
1194 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 1 * sizeof(GLfloat));
1195 gc->pc += cmdlen;
1196 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1208 struct glx_context * const gc = __glXGetCurrentContext();
1210 emit_header(gc->pc, X_GLrop_RasterPos4iv, cmdlen);
1211 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
1212 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
1213 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLint));
1214 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 1 * sizeof(GLint));
1215 gc->pc += cmdlen;
1216 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1228 struct glx_context * const gc = __glXGetCurrentContext();
1230 emit_header(gc->pc, X_GLrop_RasterPos4sv, cmdlen);
1231 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLshort));
1232 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 1 * sizeof(GLshort));
1233 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 1 * sizeof(GLshort));
1234 (void) memcpy((void *)(gc->pc + 10), (void *)(&w), 1 * sizeof(GLshort));
1235 gc->pc += cmdlen;
1236 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1248 struct glx_context * const gc = __glXGetCurrentContext();
1250 emit_header(gc->pc, X_GLrop_Rectdv, cmdlen);
1251 (void) memcpy((void *)(gc->pc + 4), (void *)(&x1), 1 * sizeof(GLdouble));
1252 (void) memcpy((void *)(gc->pc + 12), (void *)(&y1), 1 * sizeof(GLdouble));
1253 (void) memcpy((void *)(gc->pc + 20), (void *)(&x2), 1 * sizeof(GLdouble));
1254 (void) memcpy((void *)(gc->pc + 28), (void *)(&y2), 1 * sizeof(GLdouble));
1255 gc->pc += cmdlen;
1256 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1262 struct glx_context * const gc = __glXGetCurrentContext();
1264 emit_header(gc->pc, X_GLrop_Rectdv, cmdlen);
1265 (void) memcpy((void *)(gc->pc + 4), (void *)(v1), 2 * sizeof(GLdouble));
1266 (void) memcpy((void *)(gc->pc + 20), (void *)(v2), 2 * sizeof(GLdouble));
1267 gc->pc += cmdlen;
1268 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1274 struct glx_context * const gc = __glXGetCurrentContext();
1276 emit_header(gc->pc, X_GLrop_Rectfv, cmdlen);
1277 (void) memcpy((void *)(gc->pc + 4), (void *)(&x1), 1 * sizeof(GLfloat));
1278 (void) memcpy((void *)(gc->pc + 8), (void *)(&y1), 1 * sizeof(GLfloat));
1279 (void) memcpy((void *)(gc->pc + 12), (void *)(&x2), 1 * sizeof(GLfloat));
1280 (void) memcpy((void *)(gc->pc + 16), (void *)(&y2), 1 * sizeof(GLfloat));
1281 gc->pc += cmdlen;
1282 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1288 struct glx_context * const gc = __glXGetCurrentContext();
1290 emit_header(gc->pc, X_GLrop_Rectfv, cmdlen);
1291 (void) memcpy((void *)(gc->pc + 4), (void *)(v1), 2 * sizeof(GLfloat));
1292 (void) memcpy((void *)(gc->pc + 12), (void *)(v2), 2 * sizeof(GLfloat));
1293 gc->pc += cmdlen;
1294 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1300 struct glx_context * const gc = __glXGetCurrentContext();
1302 emit_header(gc->pc, X_GLrop_Rectiv, cmdlen);
1303 (void) memcpy((void *)(gc->pc + 4), (void *)(&x1), 1 * sizeof(GLint));
1304 (void) memcpy((void *)(gc->pc + 8), (void *)(&y1), 1 * sizeof(GLint));
1305 (void) memcpy((void *)(gc->pc + 12), (void *)(&x2), 1 * sizeof(GLint));
1306 (void) memcpy((void *)(gc->pc + 16), (void *)(&y2), 1 * sizeof(GLint));
1307 gc->pc += cmdlen;
1308 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1314 struct glx_context * const gc = __glXGetCurrentContext();
1316 emit_header(gc->pc, X_GLrop_Rectiv, cmdlen);
1317 (void) memcpy((void *)(gc->pc + 4), (void *)(v1), 2 * sizeof(GLint));
1318 (void) memcpy((void *)(gc->pc + 12), (void *)(v2), 2 * sizeof(GLint));
1319 gc->pc += cmdlen;
1320 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1326 struct glx_context * const gc = __glXGetCurrentContext();
1328 emit_header(gc->pc, X_GLrop_Rectsv, cmdlen);
1329 (void) memcpy((void *)(gc->pc + 4), (void *)(&x1), 1 * sizeof(GLshort));
1330 (void) memcpy((void *)(gc->pc + 6), (void *)(&y1), 1 * sizeof(GLshort));
1331 (void) memcpy((void *)(gc->pc + 8), (void *)(&x2), 1 * sizeof(GLshort));
1332 (void) memcpy((void *)(gc->pc + 10), (void *)(&y2), 1 * sizeof(GLshort));
1333 gc->pc += cmdlen;
1334 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1340 struct glx_context * const gc = __glXGetCurrentContext();
1342 emit_header(gc->pc, X_GLrop_Rectsv, cmdlen);
1343 (void) memcpy((void *)(gc->pc + 4), (void *)(v1), 2 * sizeof(GLshort));
1344 (void) memcpy((void *)(gc->pc + 8), (void *)(v2), 2 * sizeof(GLshort));
1345 gc->pc += cmdlen;
1346 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1352 struct glx_context * const gc = __glXGetCurrentContext();
1354 emit_header(gc->pc, X_GLrop_TexCoord1dv, cmdlen);
1355 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
1356 gc->pc += cmdlen;
1357 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1369 struct glx_context * const gc = __glXGetCurrentContext();
1371 emit_header(gc->pc, X_GLrop_TexCoord1fv, cmdlen);
1372 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLfloat));
1373 gc->pc += cmdlen;
1374 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1386 struct glx_context * const gc = __glXGetCurrentContext();
1388 emit_header(gc->pc, X_GLrop_TexCoord1iv, cmdlen);
1389 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLint));
1390 gc->pc += cmdlen;
1391 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1403 struct glx_context * const gc = __glXGetCurrentContext();
1405 emit_header(gc->pc, X_GLrop_TexCoord1sv, cmdlen);
1406 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLshort));
1407 gc->pc += cmdlen;
1408 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1414 struct glx_context * const gc = __glXGetCurrentContext();
1416 emit_header(gc->pc, X_GLrop_TexCoord1sv, cmdlen);
1417 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 1 * sizeof(GLshort));
1418 gc->pc += cmdlen;
1419 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1425 struct glx_context * const gc = __glXGetCurrentContext();
1427 emit_header(gc->pc, X_GLrop_TexCoord2dv, cmdlen);
1428 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
1429 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLdouble));
1430 gc->pc += cmdlen;
1431 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1443 struct glx_context * const gc = __glXGetCurrentContext();
1445 emit_header(gc->pc, X_GLrop_TexCoord2fv, cmdlen);
1446 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLfloat));
1447 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 1 * sizeof(GLfloat));
1448 gc->pc += cmdlen;
1449 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1461 struct glx_context * const gc = __glXGetCurrentContext();
1463 emit_header(gc->pc, X_GLrop_TexCoord2iv, cmdlen);
1464 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLint));
1465 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 1 * sizeof(GLint));
1466 gc->pc += cmdlen;
1467 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1479 struct glx_context * const gc = __glXGetCurrentContext();
1481 emit_header(gc->pc, X_GLrop_TexCoord2sv, cmdlen);
1482 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLshort));
1483 (void) memcpy((void *)(gc->pc + 6), (void *)(&t), 1 * sizeof(GLshort));
1484 gc->pc += cmdlen;
1485 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1497 struct glx_context * const gc = __glXGetCurrentContext();
1499 emit_header(gc->pc, X_GLrop_TexCoord3dv, cmdlen);
1500 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
1501 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLdouble));
1502 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 1 * sizeof(GLdouble));
1503 gc->pc += cmdlen;
1504 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1516 struct glx_context * const gc = __glXGetCurrentContext();
1518 emit_header(gc->pc, X_GLrop_TexCoord3fv, cmdlen);
1519 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLfloat));
1520 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 1 * sizeof(GLfloat));
1521 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 1 * sizeof(GLfloat));
1522 gc->pc += cmdlen;
1523 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1535 struct glx_context * const gc = __glXGetCurrentContext();
1537 emit_header(gc->pc, X_GLrop_TexCoord3iv, cmdlen);
1538 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLint));
1539 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 1 * sizeof(GLint));
1540 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 1 * sizeof(GLint));
1541 gc->pc += cmdlen;
1542 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1554 struct glx_context * const gc = __glXGetCurrentContext();
1556 emit_header(gc->pc, X_GLrop_TexCoord3sv, cmdlen);
1557 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLshort));
1558 (void) memcpy((void *)(gc->pc + 6), (void *)(&t), 1 * sizeof(GLshort));
1559 (void) memcpy((void *)(gc->pc + 8), (void *)(&r), 1 * sizeof(GLshort));
1560 gc->pc += cmdlen;
1561 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1573 struct glx_context * const gc = __glXGetCurrentContext();
1575 emit_header(gc->pc, X_GLrop_TexCoord4dv, cmdlen);
1576 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
1577 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLdouble));
1578 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 1 * sizeof(GLdouble));
1579 (void) memcpy((void *)(gc->pc + 28), (void *)(&q), 1 * sizeof(GLdouble));
1580 gc->pc += cmdlen;
1581 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1593 struct glx_context * const gc = __glXGetCurrentContext();
1595 emit_header(gc->pc, X_GLrop_TexCoord4fv, cmdlen);
1596 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLfloat));
1597 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 1 * sizeof(GLfloat));
1598 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 1 * sizeof(GLfloat));
1599 (void) memcpy((void *)(gc->pc + 16), (void *)(&q), 1 * sizeof(GLfloat));
1600 gc->pc += cmdlen;
1601 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1613 struct glx_context * const gc = __glXGetCurrentContext();
1615 emit_header(gc->pc, X_GLrop_TexCoord4iv, cmdlen);
1616 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLint));
1617 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 1 * sizeof(GLint));
1618 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 1 * sizeof(GLint));
1619 (void) memcpy((void *)(gc->pc + 16), (void *)(&q), 1 * sizeof(GLint));
1620 gc->pc += cmdlen;
1621 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1633 struct glx_context * const gc = __glXGetCurrentContext();
1635 emit_header(gc->pc, X_GLrop_TexCoord4sv, cmdlen);
1636 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLshort));
1637 (void) memcpy((void *)(gc->pc + 6), (void *)(&t), 1 * sizeof(GLshort));
1638 (void) memcpy((void *)(gc->pc + 8), (void *)(&r), 1 * sizeof(GLshort));
1639 (void) memcpy((void *)(gc->pc + 10), (void *)(&q), 1 * sizeof(GLshort));
1640 gc->pc += cmdlen;
1641 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1653 struct glx_context * const gc = __glXGetCurrentContext();
1655 emit_header(gc->pc, X_GLrop_Vertex2dv, cmdlen);
1656 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
1657 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
1658 gc->pc += cmdlen;
1659 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1671 struct glx_context * const gc = __glXGetCurrentContext();
1673 emit_header(gc->pc, X_GLrop_Vertex2fv, cmdlen);
1674 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
1675 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
1676 gc->pc += cmdlen;
1677 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1689 struct glx_context * const gc = __glXGetCurrentContext();
1691 emit_header(gc->pc, X_GLrop_Vertex2iv, cmdlen);
1692 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
1693 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
1694 gc->pc += cmdlen;
1695 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1707 struct glx_context * const gc = __glXGetCurrentContext();
1709 emit_header(gc->pc, X_GLrop_Vertex2sv, cmdlen);
1710 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLshort));
1711 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 1 * sizeof(GLshort));
1712 gc->pc += cmdlen;
1713 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1725 struct glx_context * const gc = __glXGetCurrentContext();
1727 emit_header(gc->pc, X_GLrop_Vertex3dv, cmdlen);
1728 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
1729 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
1730 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLdouble));
1731 gc->pc += cmdlen;
1732 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1744 struct glx_context * const gc = __glXGetCurrentContext();
1746 emit_header(gc->pc, X_GLrop_Vertex3fv, cmdlen);
1747 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
1748 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
1749 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLfloat));
1750 gc->pc += cmdlen;
1751 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1763 struct glx_context * const gc = __glXGetCurrentContext();
1765 emit_header(gc->pc, X_GLrop_Vertex3iv, cmdlen);
1766 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
1767 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
1768 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLint));
1769 gc->pc += cmdlen;
1770 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1782 struct glx_context * const gc = __glXGetCurrentContext();
1784 emit_header(gc->pc, X_GLrop_Vertex3sv, cmdlen);
1785 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLshort));
1786 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 1 * sizeof(GLshort));
1787 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 1 * sizeof(GLshort));
1788 gc->pc += cmdlen;
1789 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1801 struct glx_context * const gc = __glXGetCurrentContext();
1803 emit_header(gc->pc, X_GLrop_Vertex4dv, cmdlen);
1804 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
1805 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
1806 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLdouble));
1807 (void) memcpy((void *)(gc->pc + 28), (void *)(&w), 1 * sizeof(GLdouble));
1808 gc->pc += cmdlen;
1809 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1821 struct glx_context * const gc = __glXGetCurrentContext();
1823 emit_header(gc->pc, X_GLrop_Vertex4fv, cmdlen);
1824 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
1825 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
1826 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLfloat));
1827 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 1 * sizeof(GLfloat));
1828 gc->pc += cmdlen;
1829 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1841 struct glx_context * const gc = __glXGetCurrentContext();
1843 emit_header(gc->pc, X_GLrop_Vertex4iv, cmdlen);
1844 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
1845 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
1846 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLint));
1847 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 1 * sizeof(GLint));
1848 gc->pc += cmdlen;
1849 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1861 struct glx_context * const gc = __glXGetCurrentContext();
1863 emit_header(gc->pc, X_GLrop_Vertex4sv, cmdlen);
1864 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLshort));
1865 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 1 * sizeof(GLshort));
1866 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 1 * sizeof(GLshort));
1867 (void) memcpy((void *)(gc->pc + 10), (void *)(&w), 1 * sizeof(GLshort));
1868 gc->pc += cmdlen;
1869 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1881 struct glx_context * const gc = __glXGetCurrentContext();
1883 emit_header(gc->pc, X_GLrop_ClipPlane, cmdlen);
1884 (void) memcpy((void *)(gc->pc + 4), (void *)(equation), 4 * sizeof(GLdouble));
1885 (void) memcpy((void *)(gc->pc + 36), (void *)(&plane), 1 * sizeof(GLenum));
1886 gc->pc += cmdlen;
1887 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1893 struct glx_context * const gc = __glXGetCurrentContext();
1895 emit_header(gc->pc, X_GLrop_ColorMaterial, cmdlen);
1896 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 1 * sizeof(GLenum));
1897 (void) memcpy((void *)(gc->pc + 8), (void *)(&mode), 1 * sizeof(GLenum));
1898 gc->pc += cmdlen;
1899 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1905 struct glx_context * const gc = __glXGetCurrentContext();
1907 emit_header(gc->pc, X_GLrop_CullFace, cmdlen);
1908 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
1909 gc->pc += cmdlen;
1910 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1916 struct glx_context * const gc = __glXGetCurrentContext();
1918 emit_header(gc->pc, X_GLrop_Fogf, cmdlen);
1919 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
1920 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLfloat));
1921 gc->pc += cmdlen;
1922 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1928 struct glx_context * const gc = __glXGetCurrentContext();
1932 __glXSetError(gc, GL_INVALID_VALUE);
1935 emit_header(gc->pc, X_GLrop_Fogfv, cmdlen);
1936 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
1937 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
1938 gc->pc += cmdlen;
1939 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1945 struct glx_context * const gc = __glXGetCurrentContext();
1947 emit_header(gc->pc, X_GLrop_Fogi, cmdlen);
1948 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
1949 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLint));
1950 gc->pc += cmdlen;
1951 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1957 struct glx_context * const gc = __glXGetCurrentContext();
1961 __glXSetError(gc, GL_INVALID_VALUE);
1964 emit_header(gc->pc, X_GLrop_Fogiv, cmdlen);
1965 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
1966 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
1967 gc->pc += cmdlen;
1968 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1974 struct glx_context * const gc = __glXGetCurrentContext();
1976 emit_header(gc->pc, X_GLrop_FrontFace, cmdlen);
1977 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
1978 gc->pc += cmdlen;
1979 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1985 struct glx_context * const gc = __glXGetCurrentContext();
1987 emit_header(gc->pc, X_GLrop_Hint, cmdlen);
1988 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
1989 (void) memcpy((void *)(gc->pc + 8), (void *)(&mode), 1 * sizeof(GLenum));
1990 gc->pc += cmdlen;
1991 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
1997 struct glx_context * const gc = __glXGetCurrentContext();
1999 emit_header(gc->pc, X_GLrop_Lightf, cmdlen);
2000 (void) memcpy((void *)(gc->pc + 4), (void *)(&light), 1 * sizeof(GLenum));
2001 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2002 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLfloat));
2003 gc->pc += cmdlen;
2004 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2010 struct glx_context * const gc = __glXGetCurrentContext();
2014 __glXSetError(gc, GL_INVALID_VALUE);
2017 emit_header(gc->pc, X_GLrop_Lightfv, cmdlen);
2018 (void) memcpy((void *)(gc->pc + 4), (void *)(&light), 1 * sizeof(GLenum));
2019 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2020 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2021 gc->pc += cmdlen;
2022 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2028 struct glx_context * const gc = __glXGetCurrentContext();
2030 emit_header(gc->pc, X_GLrop_Lighti, cmdlen);
2031 (void) memcpy((void *)(gc->pc + 4), (void *)(&light), 1 * sizeof(GLenum));
2032 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2033 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLint));
2034 gc->pc += cmdlen;
2035 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2041 struct glx_context * const gc = __glXGetCurrentContext();
2045 __glXSetError(gc, GL_INVALID_VALUE);
2048 emit_header(gc->pc, X_GLrop_Lightiv, cmdlen);
2049 (void) memcpy((void *)(gc->pc + 4), (void *)(&light), 1 * sizeof(GLenum));
2050 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2051 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2052 gc->pc += cmdlen;
2053 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2059 struct glx_context * const gc = __glXGetCurrentContext();
2061 emit_header(gc->pc, X_GLrop_LightModelf, cmdlen);
2062 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
2063 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLfloat));
2064 gc->pc += cmdlen;
2065 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2071 struct glx_context * const gc = __glXGetCurrentContext();
2075 __glXSetError(gc, GL_INVALID_VALUE);
2078 emit_header(gc->pc, X_GLrop_LightModelfv, cmdlen);
2079 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
2080 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2081 gc->pc += cmdlen;
2082 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2088 struct glx_context * const gc = __glXGetCurrentContext();
2090 emit_header(gc->pc, X_GLrop_LightModeli, cmdlen);
2091 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
2092 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLint));
2093 gc->pc += cmdlen;
2094 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2100 struct glx_context * const gc = __glXGetCurrentContext();
2104 __glXSetError(gc, GL_INVALID_VALUE);
2107 emit_header(gc->pc, X_GLrop_LightModeliv, cmdlen);
2108 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
2109 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2110 gc->pc += cmdlen;
2111 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2117 struct glx_context * const gc = __glXGetCurrentContext();
2119 emit_header(gc->pc, X_GLrop_LineStipple, cmdlen);
2120 (void) memcpy((void *)(gc->pc + 4), (void *)(&factor), 1 * sizeof(GLint));
2121 (void) memcpy((void *)(gc->pc + 8), (void *)(&pattern), 1 * sizeof(GLushort));
2122 gc->pc += cmdlen;
2123 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2129 struct glx_context * const gc = __glXGetCurrentContext();
2131 emit_header(gc->pc, X_GLrop_LineWidth, cmdlen);
2132 (void) memcpy((void *)(gc->pc + 4), (void *)(&width), 1 * sizeof(GLfloat));
2133 gc->pc += cmdlen;
2134 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2140 struct glx_context * const gc = __glXGetCurrentContext();
2142 emit_header(gc->pc, X_GLrop_Materialf, cmdlen);
2143 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 1 * sizeof(GLenum));
2144 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2145 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLfloat));
2146 gc->pc += cmdlen;
2147 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2153 struct glx_context * const gc = __glXGetCurrentContext();
2157 __glXSetError(gc, GL_INVALID_VALUE);
2160 emit_header(gc->pc, X_GLrop_Materialfv, cmdlen);
2161 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 1 * sizeof(GLenum));
2162 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2163 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2164 gc->pc += cmdlen;
2165 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2171 struct glx_context * const gc = __glXGetCurrentContext();
2173 emit_header(gc->pc, X_GLrop_Materiali, cmdlen);
2174 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 1 * sizeof(GLenum));
2175 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2176 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLint));
2177 gc->pc += cmdlen;
2178 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2184 struct glx_context * const gc = __glXGetCurrentContext();
2188 __glXSetError(gc, GL_INVALID_VALUE);
2191 emit_header(gc->pc, X_GLrop_Materialiv, cmdlen);
2192 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 1 * sizeof(GLenum));
2193 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2194 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2195 gc->pc += cmdlen;
2196 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2202 struct glx_context * const gc = __glXGetCurrentContext();
2204 emit_header(gc->pc, X_GLrop_PointSize, cmdlen);
2205 (void) memcpy((void *)(gc->pc + 4), (void *)(&size), 1 * sizeof(GLfloat));
2206 gc->pc += cmdlen;
2207 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2213 struct glx_context * const gc = __glXGetCurrentContext();
2215 emit_header(gc->pc, X_GLrop_PolygonMode, cmdlen);
2216 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 1 * sizeof(GLenum));
2217 (void) memcpy((void *)(gc->pc + 8), (void *)(&mode), 1 * sizeof(GLenum));
2218 gc->pc += cmdlen;
2219 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2225 struct glx_context * const gc = __glXGetCurrentContext();
2229 __glXSetError(gc, GL_INVALID_VALUE);
2232 emit_header(gc->pc, X_GLrop_PolygonStipple, cmdlen);
2234 __glFillImage(gc, 2, 32, 32, 1, GL_COLOR_INDEX, GL_BITMAP, mask, gc->pc + 24, gc->pc + 4);
2236 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
2238 gc->pc += cmdlen;
2239 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2245 struct glx_context * const gc = __glXGetCurrentContext();
2247 emit_header(gc->pc, X_GLrop_Scissor, cmdlen);
2248 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
2249 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
2250 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 1 * sizeof(GLsizei));
2251 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 1 * sizeof(GLsizei));
2252 gc->pc += cmdlen;
2253 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2259 struct glx_context * const gc = __glXGetCurrentContext();
2261 emit_header(gc->pc, X_GLrop_ShadeModel, cmdlen);
2262 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
2263 gc->pc += cmdlen;
2264 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2270 struct glx_context * const gc = __glXGetCurrentContext();
2272 emit_header(gc->pc, X_GLrop_TexParameterf, cmdlen);
2273 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2274 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2275 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLfloat));
2276 gc->pc += cmdlen;
2277 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2283 struct glx_context * const gc = __glXGetCurrentContext();
2287 __glXSetError(gc, GL_INVALID_VALUE);
2290 emit_header(gc->pc, X_GLrop_TexParameterfv, cmdlen);
2291 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2292 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2293 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2294 gc->pc += cmdlen;
2295 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2301 struct glx_context * const gc = __glXGetCurrentContext();
2303 emit_header(gc->pc, X_GLrop_TexParameteri, cmdlen);
2304 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2305 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2306 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLint));
2307 gc->pc += cmdlen;
2308 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2314 struct glx_context * const gc = __glXGetCurrentContext();
2318 __glXSetError(gc, GL_INVALID_VALUE);
2321 emit_header(gc->pc, X_GLrop_TexParameteriv, cmdlen);
2322 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2323 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2324 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2325 gc->pc += cmdlen;
2326 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2332 struct glx_context * const gc = __glXGetCurrentContext();
2336 __glXSetError(gc, GL_INVALID_VALUE);
2339 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
2340 if (cmdlen <= gc->maxSmallRenderCommandSize) {
2341 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
2342 (void) __glXFlushRenderBuffer(gc, gc->pc);
2344 emit_header(gc->pc, opcode, cmdlen);
2345 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 1 * sizeof(GLenum));
2346 (void) memcpy((void *)(gc->pc + 28), (void *)(&level), 1 * sizeof(GLint));
2347 (void) memcpy((void *)(gc->pc + 32), (void *)(&internalformat), 1 * sizeof(GLint));
2348 (void) memcpy((void *)(gc->pc + 36), (void *)(&width), 1 * sizeof(GLsizei));
2349 (void) memcpy((void *)(gc->pc + 40), (void *)(&height), 1 * sizeof(GLsizei));
2350 (void) memcpy((void *)(gc->pc + 44), (void *)(&border), 1 * sizeof(GLint));
2351 (void) memcpy((void *)(gc->pc + 48), (void *)(&format), 1 * sizeof(GLenum));
2352 (void) memcpy((void *)(gc->pc + 52), (void *)(&type), 1 * sizeof(GLenum));
2354 __glFillImage(gc, dim, width, height, 1, format, type, pixels, gc->pc + 56, gc->pc + 4);
2356 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
2358 gc->pc += cmdlen;
2359 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2364 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
2375 __glXSendLargeImage(gc, compsize, dim, width, height, 1, format, type, pixels, pc + 60, pc + 8);
2395 struct glx_context * const gc = __glXGetCurrentContext();
2397 emit_header(gc->pc, X_GLrop_TexEnvf, cmdlen);
2398 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2399 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2400 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLfloat));
2401 gc->pc += cmdlen;
2402 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2408 struct glx_context * const gc = __glXGetCurrentContext();
2412 __glXSetError(gc, GL_INVALID_VALUE);
2415 emit_header(gc->pc, X_GLrop_TexEnvfv, cmdlen);
2416 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2417 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2418 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2419 gc->pc += cmdlen;
2420 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2426 struct glx_context * const gc = __glXGetCurrentContext();
2428 emit_header(gc->pc, X_GLrop_TexEnvi, cmdlen);
2429 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2430 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2431 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLint));
2432 gc->pc += cmdlen;
2433 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2439 struct glx_context * const gc = __glXGetCurrentContext();
2443 __glXSetError(gc, GL_INVALID_VALUE);
2446 emit_header(gc->pc, X_GLrop_TexEnviv, cmdlen);
2447 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
2448 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2449 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2450 gc->pc += cmdlen;
2451 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2457 struct glx_context * const gc = __glXGetCurrentContext();
2459 emit_header(gc->pc, X_GLrop_TexGend, cmdlen);
2460 (void) memcpy((void *)(gc->pc + 4), (void *)(¶m), 1 * sizeof(GLdouble));
2461 (void) memcpy((void *)(gc->pc + 12), (void *)(&coord), 1 * sizeof(GLenum));
2462 (void) memcpy((void *)(gc->pc + 16), (void *)(&pname), 1 * sizeof(GLenum));
2463 gc->pc += cmdlen;
2464 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2470 struct glx_context * const gc = __glXGetCurrentContext();
2474 __glXSetError(gc, GL_INVALID_VALUE);
2477 emit_header(gc->pc, X_GLrop_TexGendv, cmdlen);
2478 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 1 * sizeof(GLenum));
2479 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2480 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLdouble)));
2481 gc->pc += cmdlen;
2482 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2488 struct glx_context * const gc = __glXGetCurrentContext();
2490 emit_header(gc->pc, X_GLrop_TexGenf, cmdlen);
2491 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 1 * sizeof(GLenum));
2492 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2493 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLfloat));
2494 gc->pc += cmdlen;
2495 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2501 struct glx_context * const gc = __glXGetCurrentContext();
2505 __glXSetError(gc, GL_INVALID_VALUE);
2508 emit_header(gc->pc, X_GLrop_TexGenfv, cmdlen);
2509 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 1 * sizeof(GLenum));
2510 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2511 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
2512 gc->pc += cmdlen;
2513 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2519 struct glx_context * const gc = __glXGetCurrentContext();
2521 emit_header(gc->pc, X_GLrop_TexGeni, cmdlen);
2522 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 1 * sizeof(GLenum));
2523 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2524 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 1 * sizeof(GLint));
2525 gc->pc += cmdlen;
2526 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2532 struct glx_context * const gc = __glXGetCurrentContext();
2536 __glXSetError(gc, GL_INVALID_VALUE);
2539 emit_header(gc->pc, X_GLrop_TexGeniv, cmdlen);
2540 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 1 * sizeof(GLenum));
2541 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
2542 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
2543 gc->pc += cmdlen;
2544 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2550 struct glx_context * const gc = __glXGetCurrentContext();
2552 emit_header(gc->pc, X_GLrop_InitNames, cmdlen);
2553 gc->pc += cmdlen;
2554 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2560 struct glx_context * const gc = __glXGetCurrentContext();
2562 emit_header(gc->pc, X_GLrop_LoadName, cmdlen);
2563 (void) memcpy((void *)(gc->pc + 4), (void *)(&name), 1 * sizeof(GLuint));
2564 gc->pc += cmdlen;
2565 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2571 struct glx_context * const gc = __glXGetCurrentContext();
2573 emit_header(gc->pc, X_GLrop_PassThrough, cmdlen);
2574 (void) memcpy((void *)(gc->pc + 4), (void *)(&token), 1 * sizeof(GLfloat));
2575 gc->pc += cmdlen;
2576 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2582 struct glx_context * const gc = __glXGetCurrentContext();
2584 emit_header(gc->pc, X_GLrop_PopName, cmdlen);
2585 gc->pc += cmdlen;
2586 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2592 struct glx_context * const gc = __glXGetCurrentContext();
2594 emit_header(gc->pc, X_GLrop_PushName, cmdlen);
2595 (void) memcpy((void *)(gc->pc + 4), (void *)(&name), 1 * sizeof(GLuint));
2596 gc->pc += cmdlen;
2597 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2603 struct glx_context * const gc = __glXGetCurrentContext();
2605 emit_header(gc->pc, X_GLrop_DrawBuffer, cmdlen);
2606 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
2607 gc->pc += cmdlen;
2608 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2614 struct glx_context * const gc = __glXGetCurrentContext();
2616 emit_header(gc->pc, X_GLrop_Clear, cmdlen);
2617 (void) memcpy((void *)(gc->pc + 4), (void *)(&mask), 1 * sizeof(GLbitfield));
2618 gc->pc += cmdlen;
2619 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2625 struct glx_context * const gc = __glXGetCurrentContext();
2627 emit_header(gc->pc, X_GLrop_ClearAccum, cmdlen);
2628 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLfloat));
2629 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLfloat));
2630 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLfloat));
2631 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 1 * sizeof(GLfloat));
2632 gc->pc += cmdlen;
2633 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2639 struct glx_context * const gc = __glXGetCurrentContext();
2641 emit_header(gc->pc, X_GLrop_ClearIndex, cmdlen);
2642 (void) memcpy((void *)(gc->pc + 4), (void *)(&c), 1 * sizeof(GLfloat));
2643 gc->pc += cmdlen;
2644 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2650 struct glx_context * const gc = __glXGetCurrentContext();
2652 emit_header(gc->pc, X_GLrop_ClearColor, cmdlen);
2653 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLclampf));
2654 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLclampf));
2655 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLclampf));
2656 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 1 * sizeof(GLclampf));
2657 gc->pc += cmdlen;
2658 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2664 struct glx_context * const gc = __glXGetCurrentContext();
2666 emit_header(gc->pc, X_GLrop_ClearStencil, cmdlen);
2667 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLint));
2668 gc->pc += cmdlen;
2669 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2675 struct glx_context * const gc = __glXGetCurrentContext();
2677 emit_header(gc->pc, X_GLrop_ClearDepth, cmdlen);
2678 (void) memcpy((void *)(gc->pc + 4), (void *)(&depth), 1 * sizeof(GLclampd));
2679 gc->pc += cmdlen;
2680 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2686 struct glx_context * const gc = __glXGetCurrentContext();
2688 emit_header(gc->pc, X_GLrop_StencilMask, cmdlen);
2689 (void) memcpy((void *)(gc->pc + 4), (void *)(&mask), 1 * sizeof(GLuint));
2690 gc->pc += cmdlen;
2691 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2697 struct glx_context * const gc = __glXGetCurrentContext();
2699 emit_header(gc->pc, X_GLrop_ColorMask, cmdlen);
2700 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLboolean));
2701 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1 * sizeof(GLboolean));
2702 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1 * sizeof(GLboolean));
2703 (void) memcpy((void *)(gc->pc + 7), (void *)(&alpha), 1 * sizeof(GLboolean));
2704 gc->pc += cmdlen;
2705 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2711 struct glx_context * const gc = __glXGetCurrentContext();
2713 emit_header(gc->pc, X_GLrop_DepthMask, cmdlen);
2714 (void) memcpy((void *)(gc->pc + 4), (void *)(&flag), 1 * sizeof(GLboolean));
2715 gc->pc += cmdlen;
2716 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2722 struct glx_context * const gc = __glXGetCurrentContext();
2724 emit_header(gc->pc, X_GLrop_IndexMask, cmdlen);
2725 (void) memcpy((void *)(gc->pc + 4), (void *)(&mask), 1 * sizeof(GLuint));
2726 gc->pc += cmdlen;
2727 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2733 struct glx_context * const gc = __glXGetCurrentContext();
2735 emit_header(gc->pc, X_GLrop_Accum, cmdlen);
2736 (void) memcpy((void *)(gc->pc + 4), (void *)(&op), 1 * sizeof(GLenum));
2737 (void) memcpy((void *)(gc->pc + 8), (void *)(&value), 1 * sizeof(GLfloat));
2738 gc->pc += cmdlen;
2739 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2745 struct glx_context * const gc = __glXGetCurrentContext();
2747 emit_header(gc->pc, X_GLrop_PopAttrib, cmdlen);
2748 gc->pc += cmdlen;
2749 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2755 struct glx_context * const gc = __glXGetCurrentContext();
2757 emit_header(gc->pc, X_GLrop_PushAttrib, cmdlen);
2758 (void) memcpy((void *)(gc->pc + 4), (void *)(&mask), 1 * sizeof(GLbitfield));
2759 gc->pc += cmdlen;
2760 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2766 struct glx_context * const gc = __glXGetCurrentContext();
2768 emit_header(gc->pc, X_GLrop_MapGrid1d, cmdlen);
2769 (void) memcpy((void *)(gc->pc + 4), (void *)(&u1), 1 * sizeof(GLdouble));
2770 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 1 * sizeof(GLdouble));
2771 (void) memcpy((void *)(gc->pc + 20), (void *)(&un), 1 * sizeof(GLint));
2772 gc->pc += cmdlen;
2773 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2779 struct glx_context * const gc = __glXGetCurrentContext();
2781 emit_header(gc->pc, X_GLrop_MapGrid1f, cmdlen);
2782 (void) memcpy((void *)(gc->pc + 4), (void *)(&un), 1 * sizeof(GLint));
2783 (void) memcpy((void *)(gc->pc + 8), (void *)(&u1), 1 * sizeof(GLfloat));
2784 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 1 * sizeof(GLfloat));
2785 gc->pc += cmdlen;
2786 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2792 struct glx_context * const gc = __glXGetCurrentContext();
2794 emit_header(gc->pc, X_GLrop_MapGrid2d, cmdlen);
2795 (void) memcpy((void *)(gc->pc + 4), (void *)(&u1), 1 * sizeof(GLdouble));
2796 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 1 * sizeof(GLdouble));
2797 (void) memcpy((void *)(gc->pc + 20), (void *)(&v1), 1 * sizeof(GLdouble));
2798 (void) memcpy((void *)(gc->pc + 28), (void *)(&v2), 1 * sizeof(GLdouble));
2799 (void) memcpy((void *)(gc->pc + 36), (void *)(&un), 1 * sizeof(GLint));
2800 (void) memcpy((void *)(gc->pc + 40), (void *)(&vn), 1 * sizeof(GLint));
2801 gc->pc += cmdlen;
2802 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2808 struct glx_context * const gc = __glXGetCurrentContext();
2810 emit_header(gc->pc, X_GLrop_MapGrid2f, cmdlen);
2811 (void) memcpy((void *)(gc->pc + 4), (void *)(&un), 1 * sizeof(GLint));
2812 (void) memcpy((void *)(gc->pc + 8), (void *)(&u1), 1 * sizeof(GLfloat));
2813 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 1 * sizeof(GLfloat));
2814 (void) memcpy((void *)(gc->pc + 16), (void *)(&vn), 1 * sizeof(GLint));
2815 (void) memcpy((void *)(gc->pc + 20), (void *)(&v1), 1 * sizeof(GLfloat));
2816 (void) memcpy((void *)(gc->pc + 24), (void *)(&v2), 1 * sizeof(GLfloat));
2817 gc->pc += cmdlen;
2818 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2824 struct glx_context * const gc = __glXGetCurrentContext();
2826 emit_header(gc->pc, X_GLrop_EvalCoord1dv, cmdlen);
2827 (void) memcpy((void *)(gc->pc + 4), (void *)(&u), 1 * sizeof(GLdouble));
2828 gc->pc += cmdlen;
2829 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2841 struct glx_context * const gc = __glXGetCurrentContext();
2843 emit_header(gc->pc, X_GLrop_EvalCoord1fv, cmdlen);
2844 (void) memcpy((void *)(gc->pc + 4), (void *)(&u), 1 * sizeof(GLfloat));
2845 gc->pc += cmdlen;
2846 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2858 struct glx_context * const gc = __glXGetCurrentContext();
2860 emit_header(gc->pc, X_GLrop_EvalCoord2dv, cmdlen);
2861 (void) memcpy((void *)(gc->pc + 4), (void *)(&u), 1 * sizeof(GLdouble));
2862 (void) memcpy((void *)(gc->pc + 12), (void *)(&v), 1 * sizeof(GLdouble));
2863 gc->pc += cmdlen;
2864 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2876 struct glx_context * const gc = __glXGetCurrentContext();
2878 emit_header(gc->pc, X_GLrop_EvalCoord2fv, cmdlen);
2879 (void) memcpy((void *)(gc->pc + 4), (void *)(&u), 1 * sizeof(GLfloat));
2880 (void) memcpy((void *)(gc->pc + 8), (void *)(&v), 1 * sizeof(GLfloat));
2881 gc->pc += cmdlen;
2882 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2894 struct glx_context * const gc = __glXGetCurrentContext();
2896 emit_header(gc->pc, X_GLrop_EvalMesh1, cmdlen);
2897 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
2898 (void) memcpy((void *)(gc->pc + 8), (void *)(&i1), 1 * sizeof(GLint));
2899 (void) memcpy((void *)(gc->pc + 12), (void *)(&i2), 1 * sizeof(GLint));
2900 gc->pc += cmdlen;
2901 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2907 struct glx_context * const gc = __glXGetCurrentContext();
2909 emit_header(gc->pc, X_GLrop_EvalPoint1, cmdlen);
2910 (void) memcpy((void *)(gc->pc + 4), (void *)(&i), 1 * sizeof(GLint));
2911 gc->pc += cmdlen;
2912 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2918 struct glx_context * const gc = __glXGetCurrentContext();
2920 emit_header(gc->pc, X_GLrop_EvalMesh2, cmdlen);
2921 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
2922 (void) memcpy((void *)(gc->pc + 8), (void *)(&i1), 1 * sizeof(GLint));
2923 (void) memcpy((void *)(gc->pc + 12), (void *)(&i2), 1 * sizeof(GLint));
2924 (void) memcpy((void *)(gc->pc + 16), (void *)(&j1), 1 * sizeof(GLint));
2925 (void) memcpy((void *)(gc->pc + 20), (void *)(&j2), 1 * sizeof(GLint));
2926 gc->pc += cmdlen;
2927 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2933 struct glx_context * const gc = __glXGetCurrentContext();
2935 emit_header(gc->pc, X_GLrop_EvalPoint2, cmdlen);
2936 (void) memcpy((void *)(gc->pc + 4), (void *)(&i), 1 * sizeof(GLint));
2937 (void) memcpy((void *)(gc->pc + 8), (void *)(&j), 1 * sizeof(GLint));
2938 gc->pc += cmdlen;
2939 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2945 struct glx_context * const gc = __glXGetCurrentContext();
2947 emit_header(gc->pc, X_GLrop_AlphaFunc, cmdlen);
2948 (void) memcpy((void *)(gc->pc + 4), (void *)(&func), 1 * sizeof(GLenum));
2949 (void) memcpy((void *)(gc->pc + 8), (void *)(&ref), 1 * sizeof(GLclampf));
2950 gc->pc += cmdlen;
2951 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2957 struct glx_context * const gc = __glXGetCurrentContext();
2959 emit_header(gc->pc, X_GLrop_BlendFunc, cmdlen);
2960 (void) memcpy((void *)(gc->pc + 4), (void *)(&sfactor), 1 * sizeof(GLenum));
2961 (void) memcpy((void *)(gc->pc + 8), (void *)(&dfactor), 1 * sizeof(GLenum));
2962 gc->pc += cmdlen;
2963 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2969 struct glx_context * const gc = __glXGetCurrentContext();
2971 emit_header(gc->pc, X_GLrop_LogicOp, cmdlen);
2972 (void) memcpy((void *)(gc->pc + 4), (void *)(&opcode), 1 * sizeof(GLenum));
2973 gc->pc += cmdlen;
2974 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2980 struct glx_context * const gc = __glXGetCurrentContext();
2982 emit_header(gc->pc, X_GLrop_StencilFunc, cmdlen);
2983 (void) memcpy((void *)(gc->pc + 4), (void *)(&func), 1 * sizeof(GLenum));
2984 (void) memcpy((void *)(gc->pc + 8), (void *)(&ref), 1 * sizeof(GLint));
2985 (void) memcpy((void *)(gc->pc + 12), (void *)(&mask), 1 * sizeof(GLuint));
2986 gc->pc += cmdlen;
2987 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
2993 struct glx_context * const gc = __glXGetCurrentContext();
2995 emit_header(gc->pc, X_GLrop_StencilOp, cmdlen);
2996 (void) memcpy((void *)(gc->pc + 4), (void *)(&fail), 1 * sizeof(GLenum));
2997 (void) memcpy((void *)(gc->pc + 8), (void *)(&zfail), 1 * sizeof(GLenum));
2998 (void) memcpy((void *)(gc->pc + 12), (void *)(&zpass), 1 * sizeof(GLenum));
2999 gc->pc += cmdlen;
3000 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3006 struct glx_context * const gc = __glXGetCurrentContext();
3008 emit_header(gc->pc, X_GLrop_DepthFunc, cmdlen);
3009 (void) memcpy((void *)(gc->pc + 4), (void *)(&func), 1 * sizeof(GLenum));
3010 gc->pc += cmdlen;
3011 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3017 struct glx_context * const gc = __glXGetCurrentContext();
3019 emit_header(gc->pc, X_GLrop_PixelZoom, cmdlen);
3020 (void) memcpy((void *)(gc->pc + 4), (void *)(&xfactor), 1 * sizeof(GLfloat));
3021 (void) memcpy((void *)(gc->pc + 8), (void *)(&yfactor), 1 * sizeof(GLfloat));
3022 gc->pc += cmdlen;
3023 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3029 struct glx_context * const gc = __glXGetCurrentContext();
3031 emit_header(gc->pc, X_GLrop_PixelTransferf, cmdlen);
3032 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
3033 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLfloat));
3034 gc->pc += cmdlen;
3035 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3041 struct glx_context * const gc = __glXGetCurrentContext();
3043 emit_header(gc->pc, X_GLrop_PixelTransferi, cmdlen);
3044 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
3045 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLint));
3046 gc->pc += cmdlen;
3047 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3053 struct glx_context * const gc = __glXGetCurrentContext();
3056 __glXSetError(gc, GL_INVALID_VALUE);
3060 __glXSetError(gc, GL_INVALID_VALUE);
3063 if (__builtin_expect((mapsize >= 0) && (gc->currentDpy != NULL), 1)) {
3064 if (cmdlen <= gc->maxSmallRenderCommandSize) {
3065 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
3066 (void) __glXFlushRenderBuffer(gc, gc->pc);
3068 emit_header(gc->pc, X_GLrop_PixelMapfv, cmdlen);
3069 (void) memcpy((void *)(gc->pc + 4), (void *)(&map), 1 * sizeof(GLenum));
3070 (void) memcpy((void *)(gc->pc + 8), (void *)(&mapsize), 1 * sizeof(GLsizei));
3071 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 1 * sizeof(GLfloat)));
3072 gc->pc += cmdlen;
3073 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3078 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
3083 __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 1 * sizeof(GLfloat)));
3091 struct glx_context * const gc = __glXGetCurrentContext();
3094 __glXSetError(gc, GL_INVALID_VALUE);
3098 __glXSetError(gc, GL_INVALID_VALUE);
3101 if (__builtin_expect((mapsize >= 0) && (gc->currentDpy != NULL), 1)) {
3102 if (cmdlen <= gc->maxSmallRenderCommandSize) {
3103 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
3104 (void) __glXFlushRenderBuffer(gc, gc->pc);
3106 emit_header(gc->pc, X_GLrop_PixelMapuiv, cmdlen);
3107 (void) memcpy((void *)(gc->pc + 4), (void *)(&map), 1 * sizeof(GLenum));
3108 (void) memcpy((void *)(gc->pc + 8), (void *)(&mapsize), 1 * sizeof(GLsizei));
3109 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 1 * sizeof(GLuint)));
3110 gc->pc += cmdlen;
3111 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3116 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
3121 __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 1 * sizeof(GLuint)));
3129 struct glx_context * const gc = __glXGetCurrentContext();
3132 __glXSetError(gc, GL_INVALID_VALUE);
3136 __glXSetError(gc, GL_INVALID_VALUE);
3139 if (__builtin_expect((mapsize >= 0) && (gc->currentDpy != NULL), 1)) {
3140 if (cmdlen <= gc->maxSmallRenderCommandSize) {
3141 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
3142 (void) __glXFlushRenderBuffer(gc, gc->pc);
3144 emit_header(gc->pc, X_GLrop_PixelMapusv, cmdlen);
3145 (void) memcpy((void *)(gc->pc + 4), (void *)(&map), 1 * sizeof(GLenum));
3146 (void) memcpy((void *)(gc->pc + 8), (void *)(&mapsize), 1 * sizeof(GLsizei));
3147 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 1 * sizeof(GLushort)));
3148 gc->pc += cmdlen;
3149 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3154 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
3159 __glXSendLargeCommand(gc, pc, 16, values, safe_mul(mapsize, 1 * sizeof(GLushort)));
3167 struct glx_context * const gc = __glXGetCurrentContext();
3169 emit_header(gc->pc, X_GLrop_ReadBuffer, cmdlen);
3170 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
3171 gc->pc += cmdlen;
3172 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3178 struct glx_context * const gc = __glXGetCurrentContext();
3180 emit_header(gc->pc, X_GLrop_CopyPixels, cmdlen);
3181 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
3182 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
3183 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 1 * sizeof(GLsizei));
3184 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 1 * sizeof(GLsizei));
3185 (void) memcpy((void *)(gc->pc + 20), (void *)(&type), 1 * sizeof(GLenum));
3186 gc->pc += cmdlen;
3187 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3193 struct glx_context * const gc = __glXGetCurrentContext();
3194 const __GLXattribute * const state = gc->client_state_private;
3195 Display * const dpy = gc->currentDpy;
3202 (void) __glXFlushRenderBuffer(gc, gc->pc);
3203 xcb_glx_read_pixels_reply_t *reply = xcb_glx_read_pixels_reply(c, xcb_glx_read_pixels(c, gc->currentContextTag, x, y, width, height, format, type, state->storePack.swapEndian, 0), NULL);
3204 __glEmptyImage(gc, 3, width, height, 1, format, type, xcb_glx_read_pixels_data(reply), pixels);
3207 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_ReadPixels, cmdlen);
3216 __glXReadPixelReply(dpy, gc, 2, width, height, 1, format, type, pixels, GL_FALSE);
3226 struct glx_context * const gc = __glXGetCurrentContext();
3230 __glXSetError(gc, GL_INVALID_VALUE);
3233 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
3234 if (cmdlen <= gc->maxSmallRenderCommandSize) {
3235 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
3236 (void) __glXFlushRenderBuffer(gc, gc->pc);
3238 emit_header(gc->pc, X_GLrop_DrawPixels, cmdlen);
3239 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 1 * sizeof(GLsizei));
3240 (void) memcpy((void *)(gc->pc + 28), (void *)(&height), 1 * sizeof(GLsizei));
3241 (void) memcpy((void *)(gc->pc + 32), (void *)(&format), 1 * sizeof(GLenum));
3242 (void) memcpy((void *)(gc->pc + 36), (void *)(&type), 1 * sizeof(GLenum));
3244 __glFillImage(gc, 2, width, height, 1, format, type, pixels, gc->pc + 40, gc->pc + 4);
3246 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
3248 gc->pc += cmdlen;
3249 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3254 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
3261 __glXSendLargeImage(gc, compsize, 2, width, height, 1, format, type, pixels, pc + 44, pc + 8);
3269 struct glx_context * const gc = __glXGetCurrentContext();
3270 Display * const dpy = gc->currentDpy;
3277 (void) __glXFlushRenderBuffer(gc, gc->pc);
3278 xcb_glx_get_clip_plane_reply_t *reply = xcb_glx_get_clip_plane_reply(c, xcb_glx_get_clip_plane(c, gc->currentContextTag, plane), NULL);
3282 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetClipPlane, cmdlen);
3294 struct glx_context * const gc = __glXGetCurrentContext();
3295 Display * const dpy = gc->currentDpy;
3302 (void) __glXFlushRenderBuffer(gc, gc->pc);
3303 xcb_glx_get_lightfv_reply_t *reply = xcb_glx_get_lightfv_reply(c, xcb_glx_get_lightfv(c, gc->currentContextTag, light, pname), NULL);
3312 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetLightfv, cmdlen);
3325 struct glx_context * const gc = __glXGetCurrentContext();
3326 Display * const dpy = gc->currentDpy;
3333 (void) __glXFlushRenderBuffer(gc, gc->pc);
3334 xcb_glx_get_lightiv_reply_t *reply = xcb_glx_get_lightiv_reply(c, xcb_glx_get_lightiv(c, gc->currentContextTag, light, pname), NULL);
3343 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetLightiv, cmdlen);
3356 struct glx_context * const gc = __glXGetCurrentContext();
3357 Display * const dpy = gc->currentDpy;
3364 (void) __glXFlushRenderBuffer(gc, gc->pc);
3365 xcb_glx_get_mapdv_reply_t *reply = xcb_glx_get_mapdv_reply(c, xcb_glx_get_mapdv(c, gc->currentContextTag, target, query), NULL);
3374 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMapdv, cmdlen);
3387 struct glx_context * const gc = __glXGetCurrentContext();
3388 Display * const dpy = gc->currentDpy;
3395 (void) __glXFlushRenderBuffer(gc, gc->pc);
3396 xcb_glx_get_mapfv_reply_t *reply = xcb_glx_get_mapfv_reply(c, xcb_glx_get_mapfv(c, gc->currentContextTag, target, query), NULL);
3405 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMapfv, cmdlen);
3418 struct glx_context * const gc = __glXGetCurrentContext();
3419 Display * const dpy = gc->currentDpy;
3426 (void) __glXFlushRenderBuffer(gc, gc->pc);
3427 xcb_glx_get_mapiv_reply_t *reply = xcb_glx_get_mapiv_reply(c, xcb_glx_get_mapiv(c, gc->currentContextTag, target, query), NULL);
3436 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMapiv, cmdlen);
3449 struct glx_context * const gc = __glXGetCurrentContext();
3450 Display * const dpy = gc->currentDpy;
3457 (void) __glXFlushRenderBuffer(gc, gc->pc);
3458 xcb_glx_get_materialfv_reply_t *reply = xcb_glx_get_materialfv_reply(c, xcb_glx_get_materialfv(c, gc->currentContextTag, face, pname), NULL);
3467 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMaterialfv, cmdlen);
3480 struct glx_context * const gc = __glXGetCurrentContext();
3481 Display * const dpy = gc->currentDpy;
3488 (void) __glXFlushRenderBuffer(gc, gc->pc);
3489 xcb_glx_get_materialiv_reply_t *reply = xcb_glx_get_materialiv_reply(c, xcb_glx_get_materialiv(c, gc->currentContextTag, face, pname), NULL);
3498 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMaterialiv, cmdlen);
3511 struct glx_context * const gc = __glXGetCurrentContext();
3512 Display * const dpy = gc->currentDpy;
3519 (void) __glXFlushRenderBuffer(gc, gc->pc);
3520 xcb_glx_get_pixel_mapfv_reply_t *reply = xcb_glx_get_pixel_mapfv_reply(c, xcb_glx_get_pixel_mapfv(c, gc->currentContextTag, map), NULL);
3529 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetPixelMapfv, cmdlen);
3541 struct glx_context * const gc = __glXGetCurrentContext();
3542 Display * const dpy = gc->currentDpy;
3549 (void) __glXFlushRenderBuffer(gc, gc->pc);
3550 xcb_glx_get_pixel_mapuiv_reply_t *reply = xcb_glx_get_pixel_mapuiv_reply(c, xcb_glx_get_pixel_mapuiv(c, gc->currentContextTag, map), NULL);
3559 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetPixelMapuiv, cmdlen);
3571 struct glx_context * const gc = __glXGetCurrentContext();
3572 Display * const dpy = gc->currentDpy;
3579 (void) __glXFlushRenderBuffer(gc, gc->pc);
3580 xcb_glx_get_pixel_mapusv_reply_t *reply = xcb_glx_get_pixel_mapusv_reply(c, xcb_glx_get_pixel_mapusv(c, gc->currentContextTag, map), NULL);
3589 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetPixelMapusv, cmdlen);
3601 struct glx_context * const gc = __glXGetCurrentContext();
3602 Display * const dpy = gc->currentDpy;
3609 (void) __glXFlushRenderBuffer(gc, gc->pc);
3610 xcb_glx_get_polygon_stipple_reply_t *reply = xcb_glx_get_polygon_stipple_reply(c, xcb_glx_get_polygon_stipple(c, gc->currentContextTag, 0), NULL);
3611 __glEmptyImage(gc, 3, 32, 32, 1, GL_COLOR_INDEX, GL_BITMAP, xcb_glx_get_polygon_stipple_data(reply), mask);
3614 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetPolygonStipple, cmdlen);
3616 __glXReadPixelReply(dpy, gc, 2, 32, 32, 1, GL_COLOR_INDEX, GL_BITMAP, mask, GL_FALSE);
3626 struct glx_context * const gc = __glXGetCurrentContext();
3627 Display * const dpy = gc->currentDpy;
3634 (void) __glXFlushRenderBuffer(gc, gc->pc);
3635 xcb_glx_get_tex_envfv_reply_t *reply = xcb_glx_get_tex_envfv_reply(c, xcb_glx_get_tex_envfv(c, gc->currentContextTag, target, pname), NULL);
3644 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexEnvfv, cmdlen);
3657 struct glx_context * const gc = __glXGetCurrentContext();
3658 Display * const dpy = gc->currentDpy;
3665 (void) __glXFlushRenderBuffer(gc, gc->pc);
3666 xcb_glx_get_tex_enviv_reply_t *reply = xcb_glx_get_tex_enviv_reply(c, xcb_glx_get_tex_enviv(c, gc->currentContextTag, target, pname), NULL);
3675 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexEnviv, cmdlen);
3688 struct glx_context * const gc = __glXGetCurrentContext();
3689 Display * const dpy = gc->currentDpy;
3696 (void) __glXFlushRenderBuffer(gc, gc->pc);
3697 xcb_glx_get_tex_gendv_reply_t *reply = xcb_glx_get_tex_gendv_reply(c, xcb_glx_get_tex_gendv(c, gc->currentContextTag, coord, pname), NULL);
3706 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexGendv, cmdlen);
3719 struct glx_context * const gc = __glXGetCurrentContext();
3720 Display * const dpy = gc->currentDpy;
3727 (void) __glXFlushRenderBuffer(gc, gc->pc);
3728 xcb_glx_get_tex_genfv_reply_t *reply = xcb_glx_get_tex_genfv_reply(c, xcb_glx_get_tex_genfv(c, gc->currentContextTag, coord, pname), NULL);
3737 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexGenfv, cmdlen);
3750 struct glx_context * const gc = __glXGetCurrentContext();
3751 Display * const dpy = gc->currentDpy;
3758 (void) __glXFlushRenderBuffer(gc, gc->pc);
3759 xcb_glx_get_tex_geniv_reply_t *reply = xcb_glx_get_tex_geniv_reply(c, xcb_glx_get_tex_geniv(c, gc->currentContextTag, coord, pname), NULL);
3768 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexGeniv, cmdlen);
3781 struct glx_context * const gc = __glXGetCurrentContext();
3782 const __GLXattribute * const state = gc->client_state_private;
3783 Display * const dpy = gc->currentDpy;
3790 (void) __glXFlushRenderBuffer(gc, gc->pc);
3791 xcb_glx_get_tex_image_reply_t *reply = xcb_glx_get_tex_image_reply(c, xcb_glx_get_tex_image(c, gc->currentContextTag, target, level, format, type, state->storePack.swapEndian), NULL);
3794 __glEmptyImage(gc, 3, reply->width, reply->height, reply->depth, format, type, xcb_glx_get_tex_image_data(reply), pixels);
3797 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexImage, cmdlen);
3804 __glXReadPixelReply(dpy, gc, 3, 0, 0, 0, format, type, pixels, GL_TRUE);
3814 struct glx_context * const gc = __glXGetCurrentContext();
3815 Display * const dpy = gc->currentDpy;
3822 (void) __glXFlushRenderBuffer(gc, gc->pc);
3823 xcb_glx_get_tex_parameterfv_reply_t *reply = xcb_glx_get_tex_parameterfv_reply(c, xcb_glx_get_tex_parameterfv(c, gc->currentContextTag, target, pname), NULL);
3832 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexParameterfv, cmdlen);
3845 struct glx_context * const gc = __glXGetCurrentContext();
3846 Display * const dpy = gc->currentDpy;
3853 (void) __glXFlushRenderBuffer(gc, gc->pc);
3854 xcb_glx_get_tex_parameteriv_reply_t *reply = xcb_glx_get_tex_parameteriv_reply(c, xcb_glx_get_tex_parameteriv(c, gc->currentContextTag, target, pname), NULL);
3863 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexParameteriv, cmdlen);
3876 struct glx_context * const gc = __glXGetCurrentContext();
3877 Display * const dpy = gc->currentDpy;
3884 (void) __glXFlushRenderBuffer(gc, gc->pc);
3885 xcb_glx_get_tex_level_parameterfv_reply_t *reply = xcb_glx_get_tex_level_parameterfv_reply(c, xcb_glx_get_tex_level_parameterfv(c, gc->currentContextTag, target, level, pname), NULL);
3894 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexLevelParameterfv, cmdlen);
3908 struct glx_context * const gc = __glXGetCurrentContext();
3909 Display * const dpy = gc->currentDpy;
3916 (void) __glXFlushRenderBuffer(gc, gc->pc);
3917 xcb_glx_get_tex_level_parameteriv_reply_t *reply = xcb_glx_get_tex_level_parameteriv_reply(c, xcb_glx_get_tex_level_parameteriv(c, gc->currentContextTag, target, level, pname), NULL);
3926 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetTexLevelParameteriv, cmdlen);
3940 struct glx_context * const gc = __glXGetCurrentContext();
3941 Display * const dpy = gc->currentDpy;
3949 (void) __glXFlushRenderBuffer(gc, gc->pc);
3950 xcb_glx_is_list_reply_t *reply = xcb_glx_is_list_reply(c, xcb_glx_is_list(c, gc->currentContextTag, list), NULL);
3954 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_IsList, cmdlen);
3966 struct glx_context * const gc = __glXGetCurrentContext();
3968 emit_header(gc->pc, X_GLrop_DepthRange, cmdlen);
3969 (void) memcpy((void *)(gc->pc + 4), (void *)(&zNear), 1 * sizeof(GLclampd));
3970 (void) memcpy((void *)(gc->pc + 12), (void *)(&zFar), 1 * sizeof(GLclampd));
3971 gc->pc += cmdlen;
3972 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3978 struct glx_context * const gc = __glXGetCurrentContext();
3980 emit_header(gc->pc, X_GLrop_Frustum, cmdlen);
3981 (void) memcpy((void *)(gc->pc + 4), (void *)(&left), 1 * sizeof(GLdouble));
3982 (void) memcpy((void *)(gc->pc + 12), (void *)(&right), 1 * sizeof(GLdouble));
3983 (void) memcpy((void *)(gc->pc + 20), (void *)(&bottom), 1 * sizeof(GLdouble));
3984 (void) memcpy((void *)(gc->pc + 28), (void *)(&top), 1 * sizeof(GLdouble));
3985 (void) memcpy((void *)(gc->pc + 36), (void *)(&zNear), 1 * sizeof(GLdouble));
3986 (void) memcpy((void *)(gc->pc + 44), (void *)(&zFar), 1 * sizeof(GLdouble));
3987 gc->pc += cmdlen;
3988 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
3994 struct glx_context * const gc = __glXGetCurrentContext();
3996 emit_header(gc->pc, X_GLrop_LoadIdentity, cmdlen);
3997 gc->pc += cmdlen;
3998 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4004 struct glx_context * const gc = __glXGetCurrentContext();
4006 emit_header(gc->pc, X_GLrop_LoadMatrixf, cmdlen);
4007 (void) memcpy((void *)(gc->pc + 4), (void *)(m), 16 * sizeof(GLfloat));
4008 gc->pc += cmdlen;
4009 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4015 struct glx_context * const gc = __glXGetCurrentContext();
4017 emit_header(gc->pc, X_GLrop_LoadMatrixd, cmdlen);
4018 (void) memcpy((void *)(gc->pc + 4), (void *)(m), 16 * sizeof(GLdouble));
4019 gc->pc += cmdlen;
4020 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4026 struct glx_context * const gc = __glXGetCurrentContext();
4028 emit_header(gc->pc, X_GLrop_MatrixMode, cmdlen);
4029 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
4030 gc->pc += cmdlen;
4031 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4037 struct glx_context * const gc = __glXGetCurrentContext();
4039 emit_header(gc->pc, X_GLrop_MultMatrixf, cmdlen);
4040 (void) memcpy((void *)(gc->pc + 4), (void *)(m), 16 * sizeof(GLfloat));
4041 gc->pc += cmdlen;
4042 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4048 struct glx_context * const gc = __glXGetCurrentContext();
4050 emit_header(gc->pc, X_GLrop_MultMatrixd, cmdlen);
4051 (void) memcpy((void *)(gc->pc + 4), (void *)(m), 16 * sizeof(GLdouble));
4052 gc->pc += cmdlen;
4053 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4059 struct glx_context * const gc = __glXGetCurrentContext();
4061 emit_header(gc->pc, X_GLrop_Ortho, cmdlen);
4062 (void) memcpy((void *)(gc->pc + 4), (void *)(&left), 1 * sizeof(GLdouble));
4063 (void) memcpy((void *)(gc->pc + 12), (void *)(&right), 1 * sizeof(GLdouble));
4064 (void) memcpy((void *)(gc->pc + 20), (void *)(&bottom), 1 * sizeof(GLdouble));
4065 (void) memcpy((void *)(gc->pc + 28), (void *)(&top), 1 * sizeof(GLdouble));
4066 (void) memcpy((void *)(gc->pc + 36), (void *)(&zNear), 1 * sizeof(GLdouble));
4067 (void) memcpy((void *)(gc->pc + 44), (void *)(&zFar), 1 * sizeof(GLdouble));
4068 gc->pc += cmdlen;
4069 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4075 struct glx_context * const gc = __glXGetCurrentContext();
4077 emit_header(gc->pc, X_GLrop_PopMatrix, cmdlen);
4078 gc->pc += cmdlen;
4079 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4085 struct glx_context * const gc = __glXGetCurrentContext();
4087 emit_header(gc->pc, X_GLrop_PushMatrix, cmdlen);
4088 gc->pc += cmdlen;
4089 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4095 struct glx_context * const gc = __glXGetCurrentContext();
4097 emit_header(gc->pc, X_GLrop_Rotated, cmdlen);
4098 (void) memcpy((void *)(gc->pc + 4), (void *)(&angle), 1 * sizeof(GLdouble));
4099 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLdouble));
4100 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 1 * sizeof(GLdouble));
4101 (void) memcpy((void *)(gc->pc + 28), (void *)(&z), 1 * sizeof(GLdouble));
4102 gc->pc += cmdlen;
4103 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4109 struct glx_context * const gc = __glXGetCurrentContext();
4111 emit_header(gc->pc, X_GLrop_Rotatef, cmdlen);
4112 (void) memcpy((void *)(gc->pc + 4), (void *)(&angle), 1 * sizeof(GLfloat));
4113 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
4114 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLfloat));
4115 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 1 * sizeof(GLfloat));
4116 gc->pc += cmdlen;
4117 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4123 struct glx_context * const gc = __glXGetCurrentContext();
4125 emit_header(gc->pc, X_GLrop_Scaled, cmdlen);
4126 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
4127 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
4128 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLdouble));
4129 gc->pc += cmdlen;
4130 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4136 struct glx_context * const gc = __glXGetCurrentContext();
4138 emit_header(gc->pc, X_GLrop_Scalef, cmdlen);
4139 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
4140 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
4141 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLfloat));
4142 gc->pc += cmdlen;
4143 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4149 struct glx_context * const gc = __glXGetCurrentContext();
4151 emit_header(gc->pc, X_GLrop_Translated, cmdlen);
4152 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
4153 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
4154 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLdouble));
4155 gc->pc += cmdlen;
4156 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4162 struct glx_context * const gc = __glXGetCurrentContext();
4164 emit_header(gc->pc, X_GLrop_Translatef, cmdlen);
4165 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
4166 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
4167 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLfloat));
4168 gc->pc += cmdlen;
4169 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4175 struct glx_context * const gc = __glXGetCurrentContext();
4177 emit_header(gc->pc, X_GLrop_Viewport, cmdlen);
4178 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLint));
4179 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLint));
4180 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 1 * sizeof(GLsizei));
4181 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 1 * sizeof(GLsizei));
4182 gc->pc += cmdlen;
4183 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4189 struct glx_context * const gc = __glXGetCurrentContext();
4191 emit_header(gc->pc, X_GLrop_BindTexture, cmdlen);
4192 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4193 (void) memcpy((void *)(gc->pc + 8), (void *)(&texture), 1 * sizeof(GLuint));
4194 gc->pc += cmdlen;
4195 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4201 struct glx_context * const gc = __glXGetCurrentContext();
4203 emit_header(gc->pc, X_GLrop_Indexubv, cmdlen);
4204 (void) memcpy((void *)(gc->pc + 4), (void *)(&c), 1 * sizeof(GLubyte));
4205 gc->pc += cmdlen;
4206 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4212 struct glx_context * const gc = __glXGetCurrentContext();
4214 emit_header(gc->pc, X_GLrop_Indexubv, cmdlen);
4215 (void) memcpy((void *)(gc->pc + 4), (void *)(c), 1 * sizeof(GLubyte));
4216 gc->pc += cmdlen;
4217 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4223 struct glx_context * const gc = __glXGetCurrentContext();
4225 emit_header(gc->pc, X_GLrop_PolygonOffset, cmdlen);
4226 (void) memcpy((void *)(gc->pc + 4), (void *)(&factor), 1 * sizeof(GLfloat));
4227 (void) memcpy((void *)(gc->pc + 8), (void *)(&units), 1 * sizeof(GLfloat));
4228 gc->pc += cmdlen;
4229 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4235 struct glx_context * const gc = __glXGetCurrentContext();
4237 emit_header(gc->pc, X_GLrop_CopyTexImage1D, cmdlen);
4238 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4239 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 1 * sizeof(GLint));
4240 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 1 * sizeof(GLenum));
4241 (void) memcpy((void *)(gc->pc + 16), (void *)(&x), 1 * sizeof(GLint));
4242 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 1 * sizeof(GLint));
4243 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 1 * sizeof(GLsizei));
4244 (void) memcpy((void *)(gc->pc + 28), (void *)(&border), 1 * sizeof(GLint));
4245 gc->pc += cmdlen;
4246 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4252 struct glx_context * const gc = __glXGetCurrentContext();
4254 emit_header(gc->pc, X_GLrop_CopyTexImage2D, cmdlen);
4255 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4256 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 1 * sizeof(GLint));
4257 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 1 * sizeof(GLenum));
4258 (void) memcpy((void *)(gc->pc + 16), (void *)(&x), 1 * sizeof(GLint));
4259 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 1 * sizeof(GLint));
4260 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 1 * sizeof(GLsizei));
4261 (void) memcpy((void *)(gc->pc + 28), (void *)(&height), 1 * sizeof(GLsizei));
4262 (void) memcpy((void *)(gc->pc + 32), (void *)(&border), 1 * sizeof(GLint));
4263 gc->pc += cmdlen;
4264 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4270 struct glx_context * const gc = __glXGetCurrentContext();
4272 emit_header(gc->pc, X_GLrop_CopyTexSubImage1D, cmdlen);
4273 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4274 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 1 * sizeof(GLint));
4275 (void) memcpy((void *)(gc->pc + 12), (void *)(&xoffset), 1 * sizeof(GLint));
4276 (void) memcpy((void *)(gc->pc + 16), (void *)(&x), 1 * sizeof(GLint));
4277 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 1 * sizeof(GLint));
4278 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 1 * sizeof(GLsizei));
4279 gc->pc += cmdlen;
4280 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4286 struct glx_context * const gc = __glXGetCurrentContext();
4288 emit_header(gc->pc, X_GLrop_CopyTexSubImage2D, cmdlen);
4289 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4290 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 1 * sizeof(GLint));
4291 (void) memcpy((void *)(gc->pc + 12), (void *)(&xoffset), 1 * sizeof(GLint));
4292 (void) memcpy((void *)(gc->pc + 16), (void *)(&yoffset), 1 * sizeof(GLint));
4293 (void) memcpy((void *)(gc->pc + 20), (void *)(&x), 1 * sizeof(GLint));
4294 (void) memcpy((void *)(gc->pc + 24), (void *)(&y), 1 * sizeof(GLint));
4295 (void) memcpy((void *)(gc->pc + 28), (void *)(&width), 1 * sizeof(GLsizei));
4296 (void) memcpy((void *)(gc->pc + 32), (void *)(&height), 1 * sizeof(GLsizei));
4297 gc->pc += cmdlen;
4298 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4304 struct glx_context * const gc = __glXGetCurrentContext();
4305 Display * const dpy = gc->currentDpy;
4310 __glXSetError(gc, GL_INVALID_VALUE);
4314 __glXSetError(gc, GL_INVALID_VALUE);
4320 (void) __glXFlushRenderBuffer(gc, gc->pc);
4321 xcb_glx_delete_textures(c, gc->currentContextTag, n, textures);
4323 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_DeleteTextures, cmdlen);
4344 struct glx_context * const gc = __glXGetCurrentContext();
4345 Display * const dpy = gc->currentDpy;
4348 __glXSetError(gc, GL_INVALID_VALUE);
4352 __glXSetError(gc, GL_INVALID_VALUE);
4356 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivate, X_GLvop_DeleteTexturesEXT, cmdlen);
4368 struct glx_context * const gc = __glXGetCurrentContext();
4369 Display * const dpy = gc->currentDpy;
4374 __glXSetError(gc, GL_INVALID_VALUE);
4380 (void) __glXFlushRenderBuffer(gc, gc->pc);
4381 xcb_glx_gen_textures_reply_t *reply = xcb_glx_gen_textures_reply(c, xcb_glx_gen_textures(c, gc->currentContextTag, n), NULL);
4385 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GenTextures, cmdlen);
4406 struct glx_context * const gc = __glXGetCurrentContext();
4407 Display * const dpy = gc->currentDpy;
4410 __glXSetError(gc, GL_INVALID_VALUE);
4414 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenTexturesEXT, cmdlen);
4426 struct glx_context * const gc = __glXGetCurrentContext();
4427 Display * const dpy = gc->currentDpy;
4435 (void) __glXFlushRenderBuffer(gc, gc->pc);
4436 xcb_glx_is_texture_reply_t *reply = xcb_glx_is_texture_reply(c, xcb_glx_is_texture(c, gc->currentContextTag, texture), NULL);
4440 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_IsTexture, cmdlen);
4461 struct glx_context * const gc = __glXGetCurrentContext();
4462 Display * const dpy = gc->currentDpy;
4466 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsTextureEXT, cmdlen);
4478 struct glx_context * const gc = __glXGetCurrentContext();
4481 __glXSetError(gc, GL_INVALID_VALUE);
4485 __glXSetError(gc, GL_INVALID_VALUE);
4489 emit_header(gc->pc, X_GLrop_PrioritizeTextures, cmdlen);
4490 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 1 * sizeof(GLsizei));
4491 (void) memcpy((void *)(gc->pc + 8), (void *)(textures), safe_mul(n, 1 * sizeof(GLuint)));
4492 (void) memcpy((void *)(gc->pc + 8 + safe_mul(n, 1 * sizeof(GLuint))), (void *)(priorities), safe_mul(n, 1 * sizeof(GLclampf)));
4493 gc->pc += cmdlen;
4494 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4501 struct glx_context * const gc = __glXGetCurrentContext();
4505 __glXSetError(gc, GL_INVALID_VALUE);
4508 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4509 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4510 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4511 (void) __glXFlushRenderBuffer(gc, gc->pc);
4513 emit_header(gc->pc, opcode, cmdlen);
4514 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 1 * sizeof(GLenum));
4515 (void) memcpy((void *)(gc->pc + 28), (void *)(&level), 1 * sizeof(GLint));
4516 (void) memcpy((void *)(gc->pc + 32), (void *)(&xoffset), 1 * sizeof(GLint));
4517 (void) memcpy((void *)(gc->pc + 36), (void *)(&yoffset), 1 * sizeof(GLint));
4518 (void) memcpy((void *)(gc->pc + 40), (void *)(&width), 1 * sizeof(GLsizei));
4519 (void) memcpy((void *)(gc->pc + 44), (void *)(&height), 1 * sizeof(GLsizei));
4520 (void) memcpy((void *)(gc->pc + 48), (void *)(&format), 1 * sizeof(GLenum));
4521 (void) memcpy((void *)(gc->pc + 52), (void *)(&type), 1 * sizeof(GLenum));
4522 (void) memset((void *)(gc->pc + 56), 0, 1 * sizeof(GLuint));
4524 __glFillImage(gc, dim, width, height, 1, format, type, pixels, gc->pc + 60, gc->pc + 4);
4526 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
4528 gc->pc += cmdlen;
4529 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4534 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4546 __glXSendLargeImage(gc, compsize, dim, width, height, 1, format, type, pixels, pc + 64, pc + 8);
4566 struct glx_context * const gc = __glXGetCurrentContext();
4568 emit_header(gc->pc, X_GLrop_BlendColor, cmdlen);
4569 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLclampf));
4570 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLclampf));
4571 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLclampf));
4572 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 1 * sizeof(GLclampf));
4573 gc->pc += cmdlen;
4574 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4580 struct glx_context * const gc = __glXGetCurrentContext();
4582 emit_header(gc->pc, X_GLrop_BlendEquation, cmdlen);
4583 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 1 * sizeof(GLenum));
4584 gc->pc += cmdlen;
4585 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4591 struct glx_context * const gc = __glXGetCurrentContext();
4595 __glXSetError(gc, GL_INVALID_VALUE);
4598 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4599 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4600 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4601 (void) __glXFlushRenderBuffer(gc, gc->pc);
4603 emit_header(gc->pc, X_GLrop_ColorTable, cmdlen);
4604 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 1 * sizeof(GLenum));
4605 (void) memcpy((void *)(gc->pc + 28), (void *)(&internalformat), 1 * sizeof(GLenum));
4606 (void) memcpy((void *)(gc->pc + 32), (void *)(&width), 1 * sizeof(GLsizei));
4607 (void) memcpy((void *)(gc->pc + 36), (void *)(&format), 1 * sizeof(GLenum));
4608 (void) memcpy((void *)(gc->pc + 40), (void *)(&type), 1 * sizeof(GLenum));
4610 __glFillImage(gc, 1, width, 1, 1, format, type, table, gc->pc + 44, gc->pc + 4);
4612 (void) memcpy( gc->pc + 4, default_pixel_store_1D, default_pixel_store_1D_size );
4614 gc->pc += cmdlen;
4615 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4620 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4628 __glXSendLargeImage(gc, compsize, 1, width, 1, 1, format, type, table, pc + 48, pc + 8);
4636 struct glx_context * const gc = __glXGetCurrentContext();
4640 __glXSetError(gc, GL_INVALID_VALUE);
4643 emit_header(gc->pc, X_GLrop_ColorTableParameterfv, cmdlen);
4644 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4645 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
4646 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
4647 gc->pc += cmdlen;
4648 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4654 struct glx_context * const gc = __glXGetCurrentContext();
4658 __glXSetError(gc, GL_INVALID_VALUE);
4661 emit_header(gc->pc, X_GLrop_ColorTableParameteriv, cmdlen);
4662 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4663 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
4664 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
4665 gc->pc += cmdlen;
4666 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4672 struct glx_context * const gc = __glXGetCurrentContext();
4674 emit_header(gc->pc, X_GLrop_CopyColorTable, cmdlen);
4675 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4676 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 1 * sizeof(GLenum));
4677 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLint));
4678 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLint));
4679 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 1 * sizeof(GLsizei));
4680 gc->pc += cmdlen;
4681 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4687 struct glx_context * const gc = __glXGetCurrentContext();
4688 const __GLXattribute * const state = gc->client_state_private;
4689 Display * const dpy = gc->currentDpy;
4696 (void) __glXFlushRenderBuffer(gc, gc->pc);
4697 xcb_glx_get_color_table_reply_t *reply = xcb_glx_get_color_table_reply(c, xcb_glx_get_color_table(c, gc->currentContextTag, target, format, type, state->storePack.swapEndian), NULL);
4698 __glEmptyImage(gc, 3, reply->width, 1, 1, format, type, xcb_glx_get_color_table_data(reply), table);
4701 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetColorTable, cmdlen);
4707 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, table, GL_TRUE);
4726 struct glx_context * const gc = __glXGetCurrentContext();
4727 const __GLXattribute * const state = gc->client_state_private;
4728 Display * const dpy = gc->currentDpy;
4731 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetColorTableSGI, cmdlen);
4737 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, table, GL_TRUE);
4747 struct glx_context * const gc = __glXGetCurrentContext();
4748 Display * const dpy = gc->currentDpy;
4755 (void) __glXFlushRenderBuffer(gc, gc->pc);
4756 xcb_glx_get_color_table_parameterfv_reply_t *reply = xcb_glx_get_color_table_parameterfv_reply(c, xcb_glx_get_color_table_parameterfv(c, gc->currentContextTag, target, pname), NULL);
4765 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetColorTableParameterfv, cmdlen);
4787 struct glx_context * const gc = __glXGetCurrentContext();
4788 Display * const dpy = gc->currentDpy;
4791 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetColorTableParameterfvSGI, cmdlen);
4804 struct glx_context * const gc = __glXGetCurrentContext();
4805 Display * const dpy = gc->currentDpy;
4812 (void) __glXFlushRenderBuffer(gc, gc->pc);
4813 xcb_glx_get_color_table_parameteriv_reply_t *reply = xcb_glx_get_color_table_parameteriv_reply(c, xcb_glx_get_color_table_parameteriv(c, gc->currentContextTag, target, pname), NULL);
4822 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetColorTableParameteriv, cmdlen);
4844 struct glx_context * const gc = __glXGetCurrentContext();
4845 Display * const dpy = gc->currentDpy;
4848 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetColorTableParameterivSGI, cmdlen);
4861 struct glx_context * const gc = __glXGetCurrentContext();
4865 __glXSetError(gc, GL_INVALID_VALUE);
4868 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4869 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4870 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4871 (void) __glXFlushRenderBuffer(gc, gc->pc);
4873 emit_header(gc->pc, X_GLrop_ColorSubTable, cmdlen);
4874 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 1 * sizeof(GLenum));
4875 (void) memcpy((void *)(gc->pc + 28), (void *)(&start), 1 * sizeof(GLsizei));
4876 (void) memcpy((void *)(gc->pc + 32), (void *)(&count), 1 * sizeof(GLsizei));
4877 (void) memcpy((void *)(gc->pc + 36), (void *)(&format), 1 * sizeof(GLenum));
4878 (void) memcpy((void *)(gc->pc + 40), (void *)(&type), 1 * sizeof(GLenum));
4880 __glFillImage(gc, 1, count, 1, 1, format, type, data, gc->pc + 44, gc->pc + 4);
4882 (void) memcpy( gc->pc + 4, default_pixel_store_1D, default_pixel_store_1D_size );
4884 gc->pc += cmdlen;
4885 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4890 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4898 __glXSendLargeImage(gc, compsize, 1, count, 1, 1, format, type, data, pc + 48, pc + 8);
4906 struct glx_context * const gc = __glXGetCurrentContext();
4908 emit_header(gc->pc, X_GLrop_CopyColorSubTable, cmdlen);
4909 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4910 (void) memcpy((void *)(gc->pc + 8), (void *)(&start), 1 * sizeof(GLsizei));
4911 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLint));
4912 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLint));
4913 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 1 * sizeof(GLsizei));
4914 gc->pc += cmdlen;
4915 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4921 struct glx_context * const gc = __glXGetCurrentContext();
4925 __glXSetError(gc, GL_INVALID_VALUE);
4928 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4929 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4930 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4931 (void) __glXFlushRenderBuffer(gc, gc->pc);
4933 emit_header(gc->pc, opcode, cmdlen);
4934 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 1 * sizeof(GLenum));
4935 (void) memcpy((void *)(gc->pc + 28), (void *)(&internalformat), 1 * sizeof(GLenum));
4936 (void) memcpy((void *)(gc->pc + 32), (void *)(&width), 1 * sizeof(GLsizei));
4937 (void) memcpy((void *)(gc->pc + 36), (void *)(&height), 1 * sizeof(GLsizei));
4938 (void) memcpy((void *)(gc->pc + 40), (void *)(&format), 1 * sizeof(GLenum));
4939 (void) memcpy((void *)(gc->pc + 44), (void *)(&type), 1 * sizeof(GLenum));
4941 __glFillImage(gc, dim, width, height, 1, format, type, image, gc->pc + 48, gc->pc + 4);
4943 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
4945 gc->pc += cmdlen;
4946 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4951 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4960 __glXSendLargeImage(gc, compsize, dim, width, height, 1, format, type, image, pc + 52, pc + 8);
4980 struct glx_context * const gc = __glXGetCurrentContext();
4982 emit_header(gc->pc, X_GLrop_ConvolutionParameterf, cmdlen);
4983 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
4984 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
4985 (void) memcpy((void *)(gc->pc + 12), (void *)(¶ms), 1 * sizeof(GLfloat));
4986 gc->pc += cmdlen;
4987 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4993 struct glx_context * const gc = __glXGetCurrentContext();
4997 __glXSetError(gc, GL_INVALID_VALUE);
5000 emit_header(gc->pc, X_GLrop_ConvolutionParameterfv, cmdlen);
5001 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5002 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
5003 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
5004 gc->pc += cmdlen;
5005 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5011 struct glx_context * const gc = __glXGetCurrentContext();
5013 emit_header(gc->pc, X_GLrop_ConvolutionParameteri, cmdlen);
5014 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5015 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
5016 (void) memcpy((void *)(gc->pc + 12), (void *)(¶ms), 1 * sizeof(GLint));
5017 gc->pc += cmdlen;
5018 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5024 struct glx_context * const gc = __glXGetCurrentContext();
5028 __glXSetError(gc, GL_INVALID_VALUE);
5031 emit_header(gc->pc, X_GLrop_ConvolutionParameteriv, cmdlen);
5032 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5033 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 1 * sizeof(GLenum));
5034 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
5035 gc->pc += cmdlen;
5036 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5042 struct glx_context * const gc = __glXGetCurrentContext();
5044 emit_header(gc->pc, X_GLrop_CopyConvolutionFilter1D, cmdlen);
5045 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5046 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 1 * sizeof(GLenum));
5047 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLint));
5048 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLint));
5049 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 1 * sizeof(GLsizei));
5050 gc->pc += cmdlen;
5051 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5057 struct glx_context * const gc = __glXGetCurrentContext();
5059 emit_header(gc->pc, X_GLrop_CopyConvolutionFilter2D, cmdlen);
5060 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5061 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 1 * sizeof(GLenum));
5062 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLint));
5063 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLint));
5064 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 1 * sizeof(GLsizei));
5065 (void) memcpy((void *)(gc->pc + 24), (void *)(&height), 1 * sizeof(GLsizei));
5066 gc->pc += cmdlen;
5067 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5073 struct glx_context * const gc = __glXGetCurrentContext();
5074 const __GLXattribute * const state = gc->client_state_private;
5075 Display * const dpy = gc->currentDpy;
5082 (void) __glXFlushRenderBuffer(gc, gc->pc);
5083 xcb_glx_get_convolution_filter_reply_t *reply = xcb_glx_get_convolution_filter_reply(c, xcb_glx_get_convolution_filter(c, gc->currentContextTag, target, format, type, state->storePack.swapEndian), NULL);
5085 __glEmptyImage(gc, 3, reply->width, reply->height, 1, format, type, xcb_glx_get_convolution_filter_data(reply), image);
5088 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionFilter, cmdlen);
5094 __glXReadPixelReply(dpy, gc, 2, 0, 0, 0, format, type, image, GL_TRUE);
5113 struct glx_context * const gc = __glXGetCurrentContext();
5114 const __GLXattribute * const state = gc->client_state_private;
5115 Display * const dpy = gc->currentDpy;
5118 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetConvolutionFilterEXT, cmdlen);
5124 __glXReadPixelReply(dpy, gc, 2, 0, 0, 0, format, type, image, GL_TRUE);
5134 struct glx_context * const gc = __glXGetCurrentContext();
5135 Display * const dpy = gc->currentDpy;
5142 (void) __glXFlushRenderBuffer(gc, gc->pc);
5143 xcb_glx_get_convolution_parameterfv_reply_t *reply = xcb_glx_get_convolution_parameterfv_reply(c, xcb_glx_get_convolution_parameterfv(c, gc->currentContextTag, target, pname), NULL);
5152 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionParameterfv, cmdlen);
5174 struct glx_context * const gc = __glXGetCurrentContext();
5175 Display * const dpy = gc->currentDpy;
5178 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetConvolutionParameterfvEXT, cmdlen);
5191 struct glx_context * const gc = __glXGetCurrentContext();
5192 Display * const dpy = gc->currentDpy;
5199 (void) __glXFlushRenderBuffer(gc, gc->pc);
5200 xcb_glx_get_convolution_parameteriv_reply_t *reply = xcb_glx_get_convolution_parameteriv_reply(c, xcb_glx_get_convolution_parameteriv(c, gc->currentContextTag, target, pname), NULL);
5209 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionParameteriv, cmdlen);
5231 struct glx_context * const gc = __glXGetCurrentContext();
5232 Display * const dpy = gc->currentDpy;
5235 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetConvolutionParameterivEXT, cmdlen);
5248 struct glx_context * const gc = __glXGetCurrentContext();
5249 const __GLXattribute * const state = gc->client_state_private;
5250 Display * const dpy = gc->currentDpy;
5257 (void) __glXFlushRenderBuffer(gc, gc->pc);
5258 xcb_glx_get_histogram_reply_t *reply = xcb_glx_get_histogram_reply(c, xcb_glx_get_histogram(c, gc->currentContextTag, target, reset, format, type, state->storePack.swapEndian), NULL);
5259 __glEmptyImage(gc, 3, reply->width, 1, 1, format, type, xcb_glx_get_histogram_data(reply), values);
5262 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetHistogram, cmdlen);
5269 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, values, GL_TRUE);
5288 struct glx_context * const gc = __glXGetCurrentContext();
5289 const __GLXattribute * const state = gc->client_state_private;
5290 Display * const dpy = gc->currentDpy;
5293 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetHistogramEXT, cmdlen);
5300 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, values, GL_TRUE);
5310 struct glx_context * const gc = __glXGetCurrentContext();
5311 Display * const dpy = gc->currentDpy;
5318 (void) __glXFlushRenderBuffer(gc, gc->pc);
5319 xcb_glx_get_histogram_parameterfv_reply_t *reply = xcb_glx_get_histogram_parameterfv_reply(c, xcb_glx_get_histogram_parameterfv(c, gc->currentContextTag, target, pname), NULL);
5328 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetHistogramParameterfv, cmdlen);
5350 struct glx_context * const gc = __glXGetCurrentContext();
5351 Display * const dpy = gc->currentDpy;
5354 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetHistogramParameterfvEXT, cmdlen);
5367 struct glx_context * const gc = __glXGetCurrentContext();
5368 Display * const dpy = gc->currentDpy;
5375 (void) __glXFlushRenderBuffer(gc, gc->pc);
5376 xcb_glx_get_histogram_parameteriv_reply_t *reply = xcb_glx_get_histogram_parameteriv_reply(c, xcb_glx_get_histogram_parameteriv(c, gc->currentContextTag, target, pname), NULL);
5385 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetHistogramParameteriv, cmdlen);
5407 struct glx_context * const gc = __glXGetCurrentContext();
5408 Display * const dpy = gc->currentDpy;
5411 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetHistogramParameterivEXT, cmdlen);
5424 struct glx_context * const gc = __glXGetCurrentContext();
5425 const __GLXattribute * const state = gc->client_state_private;
5426 Display * const dpy = gc->currentDpy;
5433 (void) __glXFlushRenderBuffer(gc, gc->pc);
5434 xcb_glx_get_minmax_reply_t *reply = xcb_glx_get_minmax_reply(c, xcb_glx_get_minmax(c, gc->currentContextTag, target, reset, format, type, state->storePack.swapEndian), NULL);
5435 __glEmptyImage(gc, 3, 2, 1, 1, format, type, xcb_glx_get_minmax_data(reply), values);
5438 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMinmax, cmdlen);
5445 __glXReadPixelReply(dpy, gc, 1, 2, 1, 1, format, type, values, GL_FALSE);
5464 struct glx_context * const gc = __glXGetCurrentContext();
5465 const __GLXattribute * const state = gc->client_state_private;
5466 Display * const dpy = gc->currentDpy;
5469 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetMinmaxEXT, cmdlen);
5476 __glXReadPixelReply(dpy, gc, 1, 2, 1, 1, format, type, values, GL_FALSE);
5486 struct glx_context * const gc = __glXGetCurrentContext();
5487 Display * const dpy = gc->currentDpy;
5494 (void) __glXFlushRenderBuffer(gc, gc->pc);
5495 xcb_glx_get_minmax_parameterfv_reply_t *reply = xcb_glx_get_minmax_parameterfv_reply(c, xcb_glx_get_minmax_parameterfv(c, gc->currentContextTag, target, pname), NULL);
5504 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMinmaxParameterfv, cmdlen);
5526 struct glx_context * const gc = __glXGetCurrentContext();
5527 Display * const dpy = gc->currentDpy;
5530 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetMinmaxParameterfvEXT, cmdlen);
5543 struct glx_context * const gc = __glXGetCurrentContext();
5544 Display * const dpy = gc->currentDpy;
5551 (void) __glXFlushRenderBuffer(gc, gc->pc);
5552 xcb_glx_get_minmax_parameteriv_reply_t *reply = xcb_glx_get_minmax_parameteriv_reply(c, xcb_glx_get_minmax_parameteriv(c, gc->currentContextTag, target, pname), NULL);
5561 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMinmaxParameteriv, cmdlen);
5583 struct glx_context * const gc = __glXGetCurrentContext();
5584 Display * const dpy = gc->currentDpy;
5587 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetMinmaxParameterivEXT, cmdlen);
5600 struct glx_context * const gc = __glXGetCurrentContext();
5602 emit_header(gc->pc, X_GLrop_Histogram, cmdlen);
5603 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5604 (void) memcpy((void *)(gc->pc + 8), (void *)(&width), 1 * sizeof(GLsizei));
5605 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 1 * sizeof(GLenum));
5606 (void) memcpy((void *)(gc->pc + 16), (void *)(&sink), 1 * sizeof(GLboolean));
5607 gc->pc += cmdlen;
5608 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5614 struct glx_context * const gc = __glXGetCurrentContext();
5616 emit_header(gc->pc, X_GLrop_Minmax, cmdlen);
5617 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5618 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 1 * sizeof(GLenum));
5619 (void) memcpy((void *)(gc->pc + 12), (void *)(&sink), 1 * sizeof(GLboolean));
5620 gc->pc += cmdlen;
5621 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5627 struct glx_context * const gc = __glXGetCurrentContext();
5629 emit_header(gc->pc, X_GLrop_ResetHistogram, cmdlen);
5630 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5631 gc->pc += cmdlen;
5632 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5638 struct glx_context * const gc = __glXGetCurrentContext();
5640 emit_header(gc->pc, X_GLrop_ResetMinmax, cmdlen);
5641 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5642 gc->pc += cmdlen;
5643 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5649 struct glx_context * const gc = __glXGetCurrentContext();
5653 __glXSetError(gc, GL_INVALID_VALUE);
5656 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
5657 if (cmdlen <= gc->maxSmallRenderCommandSize) {
5658 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
5659 (void) __glXFlushRenderBuffer(gc, gc->pc);
5661 emit_header(gc->pc, opcode, cmdlen);
5662 (void) memcpy((void *)(gc->pc + 40), (void *)(&target), 1 * sizeof(GLenum));
5663 (void) memcpy((void *)(gc->pc + 44), (void *)(&level), 1 * sizeof(GLint));
5664 (void) memcpy((void *)(gc->pc + 48), (void *)(&internalformat), 1 * sizeof(GLint));
5665 (void) memcpy((void *)(gc->pc + 52), (void *)(&width), 1 * sizeof(GLsizei));
5666 (void) memcpy((void *)(gc->pc + 56), (void *)(&height), 1 * sizeof(GLsizei));
5667 (void) memcpy((void *)(gc->pc + 60), (void *)(&depth), 1 * sizeof(GLsizei));
5668 (void) memcpy((void *)(gc->pc + 64), (void *)(&extent), 1 * sizeof(GLsizei));
5669 (void) memcpy((void *)(gc->pc + 68), (void *)(&border), 1 * sizeof(GLint));
5670 (void) memcpy((void *)(gc->pc + 72), (void *)(&format), 1 * sizeof(GLenum));
5671 (void) memcpy((void *)(gc->pc + 76), (void *)(&type), 1 * sizeof(GLenum));
5672 (void) memcpy((void *)(gc->pc + 80), (void *)((pixels == NULL) ? one : zero), 4);
5674 __glFillImage(gc, dim, width, height, depth, format, type, pixels, gc->pc + 84, gc->pc + 4);
5676 (void) memcpy( gc->pc + 4, default_pixel_store_4D, default_pixel_store_4D_size );
5678 gc->pc += cmdlen;
5679 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5684 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
5698 __glXSendLargeImage(gc, compsize, dim, width, height, depth, format, type, pixels, pc + 88, pc + 8);
5712 struct glx_context * const gc = __glXGetCurrentContext();
5716 __glXSetError(gc, GL_INVALID_VALUE);
5719 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
5720 if (cmdlen <= gc->maxSmallRenderCommandSize) {
5721 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
5722 (void) __glXFlushRenderBuffer(gc, gc->pc);
5724 emit_header(gc->pc, opcode, cmdlen);
5725 (void) memcpy((void *)(gc->pc + 40), (void *)(&target), 1 * sizeof(GLenum));
5726 (void) memcpy((void *)(gc->pc + 44), (void *)(&level), 1 * sizeof(GLint));
5727 (void) memcpy((void *)(gc->pc + 48), (void *)(&xoffset), 1 * sizeof(GLint));
5728 (void) memcpy((void *)(gc->pc + 52), (void *)(&yoffset), 1 * sizeof(GLint));
5729 (void) memcpy((void *)(gc->pc + 56), (void *)(&zoffset), 1 * sizeof(GLint));
5730 (void) memcpy((void *)(gc->pc + 60), (void *)(&woffset), 1 * sizeof(GLint));
5731 (void) memcpy((void *)(gc->pc + 64), (void *)(&width), 1 * sizeof(GLsizei));
5732 (void) memcpy((void *)(gc->pc + 68), (void *)(&height), 1 * sizeof(GLsizei));
5733 (void) memcpy((void *)(gc->pc + 72), (void *)(&depth), 1 * sizeof(GLsizei));
5734 (void) memcpy((void *)(gc->pc + 76), (void *)(&extent), 1 * sizeof(GLsizei));
5735 (void) memcpy((void *)(gc->pc + 80), (void *)(&format), 1 * sizeof(GLenum));
5736 (void) memcpy((void *)(gc->pc + 84), (void *)(&type), 1 * sizeof(GLenum));
5737 (void) memset((void *)(gc->pc + 88), 0, 1 * sizeof(GLuint));
5739 __glFillImage(gc, dim, width, height, depth, format, type, pixels, gc->pc + 92, gc->pc + 4);
5741 (void) memcpy( gc->pc + 4, default_pixel_store_4D, default_pixel_store_4D_size );
5743 gc->pc += cmdlen;
5744 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5749 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
5765 __glXSendLargeImage(gc, compsize, dim, width, height, depth, format, type, pixels, pc + 96, pc + 8);
5779 struct glx_context * const gc = __glXGetCurrentContext();
5781 emit_header(gc->pc, X_GLrop_CopyTexSubImage3D, cmdlen);
5782 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5783 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 1 * sizeof(GLint));
5784 (void) memcpy((void *)(gc->pc + 12), (void *)(&xoffset), 1 * sizeof(GLint));
5785 (void) memcpy((void *)(gc->pc + 16), (void *)(&yoffset), 1 * sizeof(GLint));
5786 (void) memcpy((void *)(gc->pc + 20), (void *)(&zoffset), 1 * sizeof(GLint));
5787 (void) memcpy((void *)(gc->pc + 24), (void *)(&x), 1 * sizeof(GLint));
5788 (void) memcpy((void *)(gc->pc + 28), (void *)(&y), 1 * sizeof(GLint));
5789 (void) memcpy((void *)(gc->pc + 32), (void *)(&width), 1 * sizeof(GLsizei));
5790 (void) memcpy((void *)(gc->pc + 36), (void *)(&height), 1 * sizeof(GLsizei));
5791 gc->pc += cmdlen;
5792 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5798 struct glx_context * const gc = __glXGetCurrentContext();
5800 emit_header(gc->pc, X_GLrop_ActiveTexture, cmdlen);
5801 (void) memcpy((void *)(gc->pc + 4), (void *)(&texture), 1 * sizeof(GLenum));
5802 gc->pc += cmdlen;
5803 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5809 struct glx_context * const gc = __glXGetCurrentContext();
5811 emit_header(gc->pc, X_GLrop_MultiTexCoord1dv, cmdlen);
5812 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
5813 (void) memcpy((void *)(gc->pc + 12), (void *)(&target), 1 * sizeof(GLenum));
5814 gc->pc += cmdlen;
5815 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5821 struct glx_context * const gc = __glXGetCurrentContext();
5823 emit_header(gc->pc, X_GLrop_MultiTexCoord1dv, cmdlen);
5824 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 1 * sizeof(GLdouble));
5825 (void) memcpy((void *)(gc->pc + 12), (void *)(&target), 1 * sizeof(GLenum));
5826 gc->pc += cmdlen;
5827 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5833 struct glx_context * const gc = __glXGetCurrentContext();
5835 emit_header(gc->pc, X_GLrop_MultiTexCoord1fvARB, cmdlen);
5836 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5837 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLfloat));
5838 gc->pc += cmdlen;
5839 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5845 struct glx_context * const gc = __glXGetCurrentContext();
5847 emit_header(gc->pc, X_GLrop_MultiTexCoord1fvARB, cmdlen);
5848 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5849 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLfloat));
5850 gc->pc += cmdlen;
5851 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5857 struct glx_context * const gc = __glXGetCurrentContext();
5859 emit_header(gc->pc, X_GLrop_MultiTexCoord1iv, cmdlen);
5860 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5861 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLint));
5862 gc->pc += cmdlen;
5863 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5869 struct glx_context * const gc = __glXGetCurrentContext();
5871 emit_header(gc->pc, X_GLrop_MultiTexCoord1iv, cmdlen);
5872 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5873 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLint));
5874 gc->pc += cmdlen;
5875 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5881 struct glx_context * const gc = __glXGetCurrentContext();
5883 emit_header(gc->pc, X_GLrop_MultiTexCoord1sv, cmdlen);
5884 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5885 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLshort));
5886 gc->pc += cmdlen;
5887 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5893 struct glx_context * const gc = __glXGetCurrentContext();
5895 emit_header(gc->pc, X_GLrop_MultiTexCoord1sv, cmdlen);
5896 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5897 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLshort));
5898 gc->pc += cmdlen;
5899 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5905 struct glx_context * const gc = __glXGetCurrentContext();
5907 emit_header(gc->pc, X_GLrop_MultiTexCoord2dv, cmdlen);
5908 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
5909 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLdouble));
5910 (void) memcpy((void *)(gc->pc + 20), (void *)(&target), 1 * sizeof(GLenum));
5911 gc->pc += cmdlen;
5912 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5918 struct glx_context * const gc = __glXGetCurrentContext();
5920 emit_header(gc->pc, X_GLrop_MultiTexCoord2dv, cmdlen);
5921 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 2 * sizeof(GLdouble));
5922 (void) memcpy((void *)(gc->pc + 20), (void *)(&target), 1 * sizeof(GLenum));
5923 gc->pc += cmdlen;
5924 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5930 struct glx_context * const gc = __glXGetCurrentContext();
5932 emit_header(gc->pc, X_GLrop_MultiTexCoord2fvARB, cmdlen);
5933 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5934 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLfloat));
5935 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLfloat));
5936 gc->pc += cmdlen;
5937 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5943 struct glx_context * const gc = __glXGetCurrentContext();
5945 emit_header(gc->pc, X_GLrop_MultiTexCoord2fvARB, cmdlen);
5946 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5947 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLfloat));
5948 gc->pc += cmdlen;
5949 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5955 struct glx_context * const gc = __glXGetCurrentContext();
5957 emit_header(gc->pc, X_GLrop_MultiTexCoord2iv, cmdlen);
5958 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5959 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLint));
5960 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLint));
5961 gc->pc += cmdlen;
5962 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5968 struct glx_context * const gc = __glXGetCurrentContext();
5970 emit_header(gc->pc, X_GLrop_MultiTexCoord2iv, cmdlen);
5971 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5972 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLint));
5973 gc->pc += cmdlen;
5974 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5980 struct glx_context * const gc = __glXGetCurrentContext();
5982 emit_header(gc->pc, X_GLrop_MultiTexCoord2sv, cmdlen);
5983 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5984 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLshort));
5985 (void) memcpy((void *)(gc->pc + 10), (void *)(&t), 1 * sizeof(GLshort));
5986 gc->pc += cmdlen;
5987 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5993 struct glx_context * const gc = __glXGetCurrentContext();
5995 emit_header(gc->pc, X_GLrop_MultiTexCoord2sv, cmdlen);
5996 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
5997 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLshort));
5998 gc->pc += cmdlen;
5999 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6005 struct glx_context * const gc = __glXGetCurrentContext();
6007 emit_header(gc->pc, X_GLrop_MultiTexCoord3dv, cmdlen);
6008 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
6009 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLdouble));
6010 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 1 * sizeof(GLdouble));
6011 (void) memcpy((void *)(gc->pc + 28), (void *)(&target), 1 * sizeof(GLenum));
6012 gc->pc += cmdlen;
6013 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6019 struct glx_context * const gc = __glXGetCurrentContext();
6021 emit_header(gc->pc, X_GLrop_MultiTexCoord3dv, cmdlen);
6022 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 3 * sizeof(GLdouble));
6023 (void) memcpy((void *)(gc->pc + 28), (void *)(&target), 1 * sizeof(GLenum));
6024 gc->pc += cmdlen;
6025 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6031 struct glx_context * const gc = __glXGetCurrentContext();
6033 emit_header(gc->pc, X_GLrop_MultiTexCoord3fvARB, cmdlen);
6034 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6035 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLfloat));
6036 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLfloat));
6037 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 1 * sizeof(GLfloat));
6038 gc->pc += cmdlen;
6039 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6045 struct glx_context * const gc = __glXGetCurrentContext();
6047 emit_header(gc->pc, X_GLrop_MultiTexCoord3fvARB, cmdlen);
6048 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6049 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLfloat));
6050 gc->pc += cmdlen;
6051 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6057 struct glx_context * const gc = __glXGetCurrentContext();
6059 emit_header(gc->pc, X_GLrop_MultiTexCoord3iv, cmdlen);
6060 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6061 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLint));
6062 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLint));
6063 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 1 * sizeof(GLint));
6064 gc->pc += cmdlen;
6065 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6071 struct glx_context * const gc = __glXGetCurrentContext();
6073 emit_header(gc->pc, X_GLrop_MultiTexCoord3iv, cmdlen);
6074 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6075 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLint));
6076 gc->pc += cmdlen;
6077 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6083 struct glx_context * const gc = __glXGetCurrentContext();
6085 emit_header(gc->pc, X_GLrop_MultiTexCoord3sv, cmdlen);
6086 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6087 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLshort));
6088 (void) memcpy((void *)(gc->pc + 10), (void *)(&t), 1 * sizeof(GLshort));
6089 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 1 * sizeof(GLshort));
6090 gc->pc += cmdlen;
6091 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6097 struct glx_context * const gc = __glXGetCurrentContext();
6099 emit_header(gc->pc, X_GLrop_MultiTexCoord3sv, cmdlen);
6100 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6101 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLshort));
6102 gc->pc += cmdlen;
6103 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6109 struct glx_context * const gc = __glXGetCurrentContext();
6111 emit_header(gc->pc, X_GLrop_MultiTexCoord4dv, cmdlen);
6112 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 1 * sizeof(GLdouble));
6113 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLdouble));
6114 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 1 * sizeof(GLdouble));
6115 (void) memcpy((void *)(gc->pc + 28), (void *)(&q), 1 * sizeof(GLdouble));
6116 (void) memcpy((void *)(gc->pc + 36), (void *)(&target), 1 * sizeof(GLenum));
6117 gc->pc += cmdlen;
6118 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6124 struct glx_context * const gc = __glXGetCurrentContext();
6126 emit_header(gc->pc, X_GLrop_MultiTexCoord4dv, cmdlen);
6127 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 4 * sizeof(GLdouble));
6128 (void) memcpy((void *)(gc->pc + 36), (void *)(&target), 1 * sizeof(GLenum));
6129 gc->pc += cmdlen;
6130 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6136 struct glx_context * const gc = __glXGetCurrentContext();
6138 emit_header(gc->pc, X_GLrop_MultiTexCoord4fvARB, cmdlen);
6139 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6140 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLfloat));
6141 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLfloat));
6142 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 1 * sizeof(GLfloat));
6143 (void) memcpy((void *)(gc->pc + 20), (void *)(&q), 1 * sizeof(GLfloat));
6144 gc->pc += cmdlen;
6145 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6151 struct glx_context * const gc = __glXGetCurrentContext();
6153 emit_header(gc->pc, X_GLrop_MultiTexCoord4fvARB, cmdlen);
6154 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6155 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLfloat));
6156 gc->pc += cmdlen;
6157 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6163 struct glx_context * const gc = __glXGetCurrentContext();
6165 emit_header(gc->pc, X_GLrop_MultiTexCoord4iv, cmdlen);
6166 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6167 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLint));
6168 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 1 * sizeof(GLint));
6169 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 1 * sizeof(GLint));
6170 (void) memcpy((void *)(gc->pc + 20), (void *)(&q), 1 * sizeof(GLint));
6171 gc->pc += cmdlen;
6172 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6178 struct glx_context * const gc = __glXGetCurrentContext();
6180 emit_header(gc->pc, X_GLrop_MultiTexCoord4iv, cmdlen);
6181 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6182 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLint));
6183 gc->pc += cmdlen;
6184 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6190 struct glx_context * const gc = __glXGetCurrentContext();
6192 emit_header(gc->pc, X_GLrop_MultiTexCoord4sv, cmdlen);
6193 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6194 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 1 * sizeof(GLshort));
6195 (void) memcpy((void *)(gc->pc + 10), (void *)(&t), 1 * sizeof(GLshort));
6196 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 1 * sizeof(GLshort));
6197 (void) memcpy((void *)(gc->pc + 14), (void *)(&q), 1 * sizeof(GLshort));
6198 gc->pc += cmdlen;
6199 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6205 struct glx_context * const gc = __glXGetCurrentContext();
6207 emit_header(gc->pc, X_GLrop_MultiTexCoord4sv, cmdlen);
6208 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6209 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLshort));
6210 gc->pc += cmdlen;
6211 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6217 struct glx_context * const gc = __glXGetCurrentContext();
6219 emit_header(gc->pc, X_GLrop_SampleCoverage, cmdlen);
6220 (void) memcpy((void *)(gc->pc + 4), (void *)(&value), 1 * sizeof(GLclampf));
6221 (void) memcpy((void *)(gc->pc + 8), (void *)(&invert), 1 * sizeof(GLboolean));
6222 gc->pc += cmdlen;
6223 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6229 struct glx_context * const gc = __glXGetCurrentContext();
6231 emit_header(gc->pc, X_GLrop_BlendFuncSeparate, cmdlen);
6232 (void) memcpy((void *)(gc->pc + 4), (void *)(&sfactorRGB), 1 * sizeof(GLenum));
6233 (void) memcpy((void *)(gc->pc + 8), (void *)(&dfactorRGB), 1 * sizeof(GLenum));
6234 (void) memcpy((void *)(gc->pc + 12), (void *)(&sfactorAlpha), 1 * sizeof(GLenum));
6235 (void) memcpy((void *)(gc->pc + 16), (void *)(&dfactorAlpha), 1 * sizeof(GLenum));
6236 gc->pc += cmdlen;
6237 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6243 struct glx_context * const gc = __glXGetCurrentContext();
6245 emit_header(gc->pc, X_GLrop_FogCoorddv, cmdlen);
6246 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 1 * sizeof(GLdouble));
6247 gc->pc += cmdlen;
6248 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6260 struct glx_context * const gc = __glXGetCurrentContext();
6262 emit_header(gc->pc, X_GLrop_PointParameterf, cmdlen);
6263 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
6264 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLfloat));
6265 gc->pc += cmdlen;
6266 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6272 struct glx_context * const gc = __glXGetCurrentContext();
6276 __glXSetError(gc, GL_INVALID_VALUE);
6279 emit_header(gc->pc, X_GLrop_PointParameterfv, cmdlen);
6280 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
6281 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLfloat)));
6282 gc->pc += cmdlen;
6283 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6289 struct glx_context * const gc = __glXGetCurrentContext();
6291 emit_header(gc->pc, X_GLrop_PointParameteri, cmdlen);
6292 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
6293 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 1 * sizeof(GLint));
6294 gc->pc += cmdlen;
6295 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6301 struct glx_context * const gc = __glXGetCurrentContext();
6305 __glXSetError(gc, GL_INVALID_VALUE);
6308 emit_header(gc->pc, X_GLrop_PointParameteriv, cmdlen);
6309 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 1 * sizeof(GLenum));
6310 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 1 * sizeof(GLint)));
6311 gc->pc += cmdlen;
6312 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6318 struct glx_context * const gc = __glXGetCurrentContext();
6320 emit_header(gc->pc, X_GLrop_SecondaryColor3bv, cmdlen);
6321 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLbyte));
6322 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1 * sizeof(GLbyte));
6323 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1 * sizeof(GLbyte));
6324 gc->pc += cmdlen;
6325 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6337 struct glx_context * const gc = __glXGetCurrentContext();
6339 emit_header(gc->pc, X_GLrop_SecondaryColor3dv, cmdlen);
6340 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLdouble));
6341 (void) memcpy((void *)(gc->pc + 12), (void *)(&green), 1 * sizeof(GLdouble));
6342 (void) memcpy((void *)(gc->pc + 20), (void *)(&blue), 1 * sizeof(GLdouble));
6343 gc->pc += cmdlen;
6344 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6356 struct glx_context * const gc = __glXGetCurrentContext();
6358 emit_header(gc->pc, X_GLrop_SecondaryColor3iv, cmdlen);
6359 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLint));
6360 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLint));
6361 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLint));
6362 gc->pc += cmdlen;
6363 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6375 struct glx_context * const gc = __glXGetCurrentContext();
6377 emit_header(gc->pc, X_GLrop_SecondaryColor3sv, cmdlen);
6378 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLshort));
6379 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 1 * sizeof(GLshort));
6380 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 1 * sizeof(GLshort));
6381 gc->pc += cmdlen;
6382 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6394 struct glx_context * const gc = __glXGetCurrentContext();
6396 emit_header(gc->pc, X_GLrop_SecondaryColor3ubv, cmdlen);
6397 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLubyte));
6398 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1 * sizeof(GLubyte));
6399 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1 * sizeof(GLubyte));
6400 gc->pc += cmdlen;
6401 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6413 struct glx_context * const gc = __glXGetCurrentContext();
6415 emit_header(gc->pc, X_GLrop_SecondaryColor3uiv, cmdlen);
6416 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLuint));
6417 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLuint));
6418 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLuint));
6419 gc->pc += cmdlen;
6420 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6432 struct glx_context * const gc = __glXGetCurrentContext();
6434 emit_header(gc->pc, X_GLrop_SecondaryColor3usv, cmdlen);
6435 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLushort));
6436 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 1 * sizeof(GLushort));
6437 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 1 * sizeof(GLushort));
6438 gc->pc += cmdlen;
6439 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6451 struct glx_context * const gc = __glXGetCurrentContext();
6453 emit_header(gc->pc, X_GLrop_WindowPos3fv, cmdlen);
6454 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLfloat));
6455 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 1 * sizeof(GLfloat));
6456 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLfloat));
6457 gc->pc += cmdlen;
6458 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6470 struct glx_context * const gc = __glXGetCurrentContext();
6472 emit_header(gc->pc, X_GLrop_BeginQuery, cmdlen);
6473 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6474 (void) memcpy((void *)(gc->pc + 8), (void *)(&id), 1 * sizeof(GLuint));
6475 gc->pc += cmdlen;
6476 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6482 struct glx_context * const gc = __glXGetCurrentContext();
6483 Display * const dpy = gc->currentDpy;
6488 __glXSetError(gc, GL_INVALID_VALUE);
6492 __glXSetError(gc, GL_INVALID_VALUE);
6498 (void) __glXFlushRenderBuffer(gc, gc->pc);
6499 xcb_glx_delete_queries(c, gc->currentContextTag, n, ids);
6501 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_DeleteQueries, cmdlen);
6513 struct glx_context * const gc = __glXGetCurrentContext();
6515 emit_header(gc->pc, X_GLrop_EndQuery, cmdlen);
6516 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
6517 gc->pc += cmdlen;
6518 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6524 struct glx_context * const gc = __glXGetCurrentContext();
6525 Display * const dpy = gc->currentDpy;
6530 __glXSetError(gc, GL_INVALID_VALUE);
6536 (void) __glXFlushRenderBuffer(gc, gc->pc);
6537 xcb_glx_gen_queries_reply_t *reply = xcb_glx_gen_queries_reply(c, xcb_glx_gen_queries(c, gc->currentContextTag, n), NULL);
6541 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GenQueries, cmdlen);
6553 struct glx_context * const gc = __glXGetCurrentContext();
6554 Display * const dpy = gc->currentDpy;
6561 (void) __glXFlushRenderBuffer(gc, gc->pc);
6562 xcb_glx_get_query_objectiv_reply_t *reply = xcb_glx_get_query_objectiv_reply(c, xcb_glx_get_query_objectiv(c, gc->currentContextTag, id, pname), NULL);
6571 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetQueryObjectiv, cmdlen);
6584 struct glx_context * const gc = __glXGetCurrentContext();
6585 Display * const dpy = gc->currentDpy;
6592 (void) __glXFlushRenderBuffer(gc, gc->pc);
6593 xcb_glx_get_query_objectuiv_reply_t *reply = xcb_glx_get_query_objectuiv_reply(c, xcb_glx_get_query_objectuiv(c, gc->currentContextTag, id, pname), NULL);
6602 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetQueryObjectuiv, cmdlen);
6615 struct glx_context * const gc = __glXGetCurrentContext();
6616 Display * const dpy = gc->currentDpy;
6623 (void) __glXFlushRenderBuffer(gc, gc->pc);
6624 xcb_glx_get_queryiv_reply_t *reply = xcb_glx_get_queryiv_reply(c, xcb_glx_get_queryiv(c, gc->currentContextTag, target, pname), NULL);
6633 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetQueryiv, cmdlen);
6646 struct glx_context * const gc = __glXGetCurrentContext();
6647 Display * const dpy = gc->currentDpy;
6655 (void) __glXFlushRenderBuffer(gc, gc->pc);
6656 xcb_glx_is_query_reply_t *reply = xcb_glx_is_query_reply(c, xcb_glx_is_query(c, gc->currentContextTag, id), NULL);
6660 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_IsQuery, cmdlen);
6672 struct glx_context * const gc = __glXGetCurrentContext();
6674 emit_header(gc->pc, X_GLrop_BlendEquationSeparate, cmdlen);
6675 (void) memcpy((void *)(gc->pc + 4), (void *)(&modeRGB), 1 * sizeof(GLenum));
6676 (void) memcpy((void *)(gc->pc + 8), (void *)(&modeA), 1 * sizeof(GLenum));
6677 gc->pc += cmdlen;
6678 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6684 struct glx_context * const gc = __glXGetCurrentContext();
6687 __glXSetError(gc, GL_INVALID_VALUE);
6691 __glXSetError(gc, GL_INVALID_VALUE);
6694 if (__builtin_expect((n >= 0) && (gc->currentDpy != NULL), 1)) {
6695 if (cmdlen <= gc->maxSmallRenderCommandSize) {
6696 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
6697 (void) __glXFlushRenderBuffer(gc, gc->pc);
6699 emit_header(gc->pc, X_GLrop_DrawBuffers, cmdlen);
6700 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 1 * sizeof(GLsizei));
6701 (void) memcpy((void *)(gc->pc + 8), (void *)(bufs), safe_mul(n, 1 * sizeof(GLenum)));
6702 gc->pc += cmdlen;
6703 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6708 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
6712 __glXSendLargeCommand(gc, pc, 12, bufs, safe_mul(n, 1 * sizeof(GLenum)));
6720 struct glx_context * const gc = __glXGetCurrentContext();
6722 emit_header(gc->pc, X_GLrop_VertexAttrib1dv, cmdlen);
6723 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6724 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
6725 gc->pc += cmdlen;
6726 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6732 struct glx_context * const gc = __glXGetCurrentContext();
6734 emit_header(gc->pc, X_GLrop_VertexAttrib1dv, cmdlen);
6735 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6736 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLdouble));
6737 gc->pc += cmdlen;
6738 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6744 struct glx_context * const gc = __glXGetCurrentContext();
6746 emit_header(gc->pc, X_GLrop_VertexAttrib1sv, cmdlen);
6747 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6748 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
6749 gc->pc += cmdlen;
6750 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6756 struct glx_context * const gc = __glXGetCurrentContext();
6758 emit_header(gc->pc, X_GLrop_VertexAttrib1sv, cmdlen);
6759 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6760 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLshort));
6761 gc->pc += cmdlen;
6762 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6768 struct glx_context * const gc = __glXGetCurrentContext();
6770 emit_header(gc->pc, X_GLrop_VertexAttrib2dv, cmdlen);
6771 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6772 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
6773 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLdouble));
6774 gc->pc += cmdlen;
6775 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6781 struct glx_context * const gc = __glXGetCurrentContext();
6783 emit_header(gc->pc, X_GLrop_VertexAttrib2dv, cmdlen);
6784 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6785 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLdouble));
6786 gc->pc += cmdlen;
6787 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6793 struct glx_context * const gc = __glXGetCurrentContext();
6795 emit_header(gc->pc, X_GLrop_VertexAttrib2sv, cmdlen);
6796 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6797 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
6798 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 1 * sizeof(GLshort));
6799 gc->pc += cmdlen;
6800 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6806 struct glx_context * const gc = __glXGetCurrentContext();
6808 emit_header(gc->pc, X_GLrop_VertexAttrib2sv, cmdlen);
6809 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6810 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLshort));
6811 gc->pc += cmdlen;
6812 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6818 struct glx_context * const gc = __glXGetCurrentContext();
6820 emit_header(gc->pc, X_GLrop_VertexAttrib3dv, cmdlen);
6821 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6822 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
6823 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLdouble));
6824 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 1 * sizeof(GLdouble));
6825 gc->pc += cmdlen;
6826 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6832 struct glx_context * const gc = __glXGetCurrentContext();
6834 emit_header(gc->pc, X_GLrop_VertexAttrib3dv, cmdlen);
6835 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6836 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLdouble));
6837 gc->pc += cmdlen;
6838 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6844 struct glx_context * const gc = __glXGetCurrentContext();
6846 emit_header(gc->pc, X_GLrop_VertexAttrib3sv, cmdlen);
6847 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6848 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
6849 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 1 * sizeof(GLshort));
6850 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLshort));
6851 gc->pc += cmdlen;
6852 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6858 struct glx_context * const gc = __glXGetCurrentContext();
6860 emit_header(gc->pc, X_GLrop_VertexAttrib3sv, cmdlen);
6861 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6862 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLshort));
6863 gc->pc += cmdlen;
6864 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6870 struct glx_context * const gc = __glXGetCurrentContext();
6872 emit_header(gc->pc, X_GLrop_VertexAttrib4Nbv, cmdlen);
6873 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6874 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLbyte));
6875 gc->pc += cmdlen;
6876 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6882 struct glx_context * const gc = __glXGetCurrentContext();
6884 emit_header(gc->pc, X_GLrop_VertexAttrib4Niv, cmdlen);
6885 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6886 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLint));
6887 gc->pc += cmdlen;
6888 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6894 struct glx_context * const gc = __glXGetCurrentContext();
6896 emit_header(gc->pc, X_GLrop_VertexAttrib4Nsv, cmdlen);
6897 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6898 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLshort));
6899 gc->pc += cmdlen;
6900 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6906 struct glx_context * const gc = __glXGetCurrentContext();
6908 emit_header(gc->pc, X_GLrop_VertexAttrib4Nubv, cmdlen);
6909 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6910 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLubyte));
6911 (void) memcpy((void *)(gc->pc + 9), (void *)(&y), 1 * sizeof(GLubyte));
6912 (void) memcpy((void *)(gc->pc + 10), (void *)(&z), 1 * sizeof(GLubyte));
6913 (void) memcpy((void *)(gc->pc + 11), (void *)(&w), 1 * sizeof(GLubyte));
6914 gc->pc += cmdlen;
6915 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6921 struct glx_context * const gc = __glXGetCurrentContext();
6923 emit_header(gc->pc, X_GLrop_VertexAttrib4Nubv, cmdlen);
6924 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6925 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLubyte));
6926 gc->pc += cmdlen;
6927 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6933 struct glx_context * const gc = __glXGetCurrentContext();
6935 emit_header(gc->pc, X_GLrop_VertexAttrib4Nuiv, cmdlen);
6936 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6937 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLuint));
6938 gc->pc += cmdlen;
6939 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6945 struct glx_context * const gc = __glXGetCurrentContext();
6947 emit_header(gc->pc, X_GLrop_VertexAttrib4Nusv, cmdlen);
6948 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6949 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLushort));
6950 gc->pc += cmdlen;
6951 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6957 struct glx_context * const gc = __glXGetCurrentContext();
6959 emit_header(gc->pc, X_GLrop_VertexAttrib4bv, cmdlen);
6960 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6961 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLbyte));
6962 gc->pc += cmdlen;
6963 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6969 struct glx_context * const gc = __glXGetCurrentContext();
6971 emit_header(gc->pc, X_GLrop_VertexAttrib4dv, cmdlen);
6972 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6973 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
6974 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLdouble));
6975 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 1 * sizeof(GLdouble));
6976 (void) memcpy((void *)(gc->pc + 32), (void *)(&w), 1 * sizeof(GLdouble));
6977 gc->pc += cmdlen;
6978 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6984 struct glx_context * const gc = __glXGetCurrentContext();
6986 emit_header(gc->pc, X_GLrop_VertexAttrib4dv, cmdlen);
6987 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
6988 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLdouble));
6989 gc->pc += cmdlen;
6990 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6996 struct glx_context * const gc = __glXGetCurrentContext();
6998 emit_header(gc->pc, X_GLrop_VertexAttrib4iv, cmdlen);
6999 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7000 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLint));
7001 gc->pc += cmdlen;
7002 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7008 struct glx_context * const gc = __glXGetCurrentContext();
7010 emit_header(gc->pc, X_GLrop_VertexAttrib4sv, cmdlen);
7011 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7012 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
7013 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 1 * sizeof(GLshort));
7014 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLshort));
7015 (void) memcpy((void *)(gc->pc + 14), (void *)(&w), 1 * sizeof(GLshort));
7016 gc->pc += cmdlen;
7017 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7023 struct glx_context * const gc = __glXGetCurrentContext();
7025 emit_header(gc->pc, X_GLrop_VertexAttrib4sv, cmdlen);
7026 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7027 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLshort));
7028 gc->pc += cmdlen;
7029 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7035 struct glx_context * const gc = __glXGetCurrentContext();
7037 emit_header(gc->pc, X_GLrop_VertexAttrib4ubv, cmdlen);
7038 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7039 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLubyte));
7040 gc->pc += cmdlen;
7041 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7047 struct glx_context * const gc = __glXGetCurrentContext();
7049 emit_header(gc->pc, X_GLrop_VertexAttrib4uiv, cmdlen);
7050 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7051 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLuint));
7052 gc->pc += cmdlen;
7053 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7059 struct glx_context * const gc = __glXGetCurrentContext();
7061 emit_header(gc->pc, X_GLrop_VertexAttrib4usv, cmdlen);
7062 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7063 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLushort));
7064 gc->pc += cmdlen;
7065 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7071 struct glx_context * const gc = __glXGetCurrentContext();
7073 emit_header(gc->pc, X_GLrop_ClampColor, cmdlen);
7074 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7075 (void) memcpy((void *)(gc->pc + 8), (void *)(&clamp), 1 * sizeof(GLenum));
7076 gc->pc += cmdlen;
7077 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7083 struct glx_context * const gc = __glXGetCurrentContext();
7085 emit_header(gc->pc, X_GLrop_BindProgramARB, cmdlen);
7086 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7087 (void) memcpy((void *)(gc->pc + 8), (void *)(&program), 1 * sizeof(GLuint));
7088 gc->pc += cmdlen;
7089 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7095 struct glx_context * const gc = __glXGetCurrentContext();
7096 Display * const dpy = gc->currentDpy;
7099 __glXSetError(gc, GL_INVALID_VALUE);
7103 __glXSetError(gc, GL_INVALID_VALUE);
7107 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivate, X_GLvop_DeleteProgramsARB, cmdlen);
7118 struct glx_context * const gc = __glXGetCurrentContext();
7119 Display * const dpy = gc->currentDpy;
7122 __glXSetError(gc, GL_INVALID_VALUE);
7126 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenProgramsARB, cmdlen);
7137 struct glx_context * const gc = __glXGetCurrentContext();
7138 Display * const dpy = gc->currentDpy;
7141 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramStringARB, cmdlen);
7153 struct glx_context * const gc = __glXGetCurrentContext();
7154 Display * const dpy = gc->currentDpy;
7157 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramivARB, cmdlen);
7169 struct glx_context * const gc = __glXGetCurrentContext();
7170 Display * const dpy = gc->currentDpy;
7174 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsProgramARB, cmdlen);
7185 struct glx_context * const gc = __glXGetCurrentContext();
7187 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4dvARB, cmdlen);
7188 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7189 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7190 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLdouble));
7191 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 1 * sizeof(GLdouble));
7192 (void) memcpy((void *)(gc->pc + 28), (void *)(&z), 1 * sizeof(GLdouble));
7193 (void) memcpy((void *)(gc->pc + 36), (void *)(&w), 1 * sizeof(GLdouble));
7194 gc->pc += cmdlen;
7195 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7201 struct glx_context * const gc = __glXGetCurrentContext();
7203 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4dvARB, cmdlen);
7204 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7205 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7206 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 4 * sizeof(GLdouble));
7207 gc->pc += cmdlen;
7208 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7214 struct glx_context * const gc = __glXGetCurrentContext();
7216 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4fvARB, cmdlen);
7217 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7218 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7219 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLfloat));
7220 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLfloat));
7221 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLfloat));
7222 (void) memcpy((void *)(gc->pc + 24), (void *)(&w), 1 * sizeof(GLfloat));
7223 gc->pc += cmdlen;
7224 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7230 struct glx_context * const gc = __glXGetCurrentContext();
7232 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4fvARB, cmdlen);
7233 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7234 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7235 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 4 * sizeof(GLfloat));
7236 gc->pc += cmdlen;
7237 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7243 struct glx_context * const gc = __glXGetCurrentContext();
7245 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4dvARB, cmdlen);
7246 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7247 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7248 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLdouble));
7249 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 1 * sizeof(GLdouble));
7250 (void) memcpy((void *)(gc->pc + 28), (void *)(&z), 1 * sizeof(GLdouble));
7251 (void) memcpy((void *)(gc->pc + 36), (void *)(&w), 1 * sizeof(GLdouble));
7252 gc->pc += cmdlen;
7253 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7259 struct glx_context * const gc = __glXGetCurrentContext();
7261 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4dvARB, cmdlen);
7262 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7263 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7264 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 4 * sizeof(GLdouble));
7265 gc->pc += cmdlen;
7266 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7272 struct glx_context * const gc = __glXGetCurrentContext();
7274 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4fvARB, cmdlen);
7275 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7276 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7277 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLfloat));
7278 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLfloat));
7279 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLfloat));
7280 (void) memcpy((void *)(gc->pc + 24), (void *)(&w), 1 * sizeof(GLfloat));
7281 gc->pc += cmdlen;
7282 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7288 struct glx_context * const gc = __glXGetCurrentContext();
7290 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4fvARB, cmdlen);
7291 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7292 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
7293 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 4 * sizeof(GLfloat));
7294 gc->pc += cmdlen;
7295 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7301 struct glx_context * const gc = __glXGetCurrentContext();
7304 __glXSetError(gc, GL_INVALID_VALUE);
7308 __glXSetError(gc, GL_INVALID_VALUE);
7311 if (__builtin_expect((len >= 0) && (gc->currentDpy != NULL), 1)) {
7312 if (cmdlen <= gc->maxSmallRenderCommandSize) {
7313 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
7314 (void) __glXFlushRenderBuffer(gc, gc->pc);
7316 emit_header(gc->pc, X_GLrop_ProgramStringARB, cmdlen);
7317 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7318 (void) memcpy((void *)(gc->pc + 8), (void *)(&format), 1 * sizeof(GLenum));
7319 (void) memcpy((void *)(gc->pc + 12), (void *)(&len), 1 * sizeof(GLsizei));
7320 (void) memcpy((void *)(gc->pc + 16), (void *)(string), len);
7321 gc->pc += cmdlen;
7322 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7327 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
7333 __glXSendLargeCommand(gc, pc, 20, string, len);
7341 struct glx_context * const gc = __glXGetCurrentContext();
7343 emit_header(gc->pc, X_GLrop_VertexAttrib1fvARB, cmdlen);
7344 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7345 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
7346 gc->pc += cmdlen;
7347 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7353 struct glx_context * const gc = __glXGetCurrentContext();
7355 emit_header(gc->pc, X_GLrop_VertexAttrib1fvARB, cmdlen);
7356 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7357 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLfloat));
7358 gc->pc += cmdlen;
7359 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7365 struct glx_context * const gc = __glXGetCurrentContext();
7367 emit_header(gc->pc, X_GLrop_VertexAttrib2fvARB, cmdlen);
7368 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7369 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
7370 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLfloat));
7371 gc->pc += cmdlen;
7372 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7378 struct glx_context * const gc = __glXGetCurrentContext();
7380 emit_header(gc->pc, X_GLrop_VertexAttrib2fvARB, cmdlen);
7381 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7382 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLfloat));
7383 gc->pc += cmdlen;
7384 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7390 struct glx_context * const gc = __glXGetCurrentContext();
7392 emit_header(gc->pc, X_GLrop_VertexAttrib3fvARB, cmdlen);
7393 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7394 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
7395 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLfloat));
7396 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 1 * sizeof(GLfloat));
7397 gc->pc += cmdlen;
7398 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7404 struct glx_context * const gc = __glXGetCurrentContext();
7406 emit_header(gc->pc, X_GLrop_VertexAttrib3fvARB, cmdlen);
7407 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7408 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLfloat));
7409 gc->pc += cmdlen;
7410 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7416 struct glx_context * const gc = __glXGetCurrentContext();
7418 emit_header(gc->pc, X_GLrop_VertexAttrib4fvARB, cmdlen);
7419 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7420 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
7421 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLfloat));
7422 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 1 * sizeof(GLfloat));
7423 (void) memcpy((void *)(gc->pc + 20), (void *)(&w), 1 * sizeof(GLfloat));
7424 gc->pc += cmdlen;
7425 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7431 struct glx_context * const gc = __glXGetCurrentContext();
7433 emit_header(gc->pc, X_GLrop_VertexAttrib4fvARB, cmdlen);
7434 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
7435 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLfloat));
7436 gc->pc += cmdlen;
7437 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7443 struct glx_context * const gc = __glXGetCurrentContext();
7445 emit_header(gc->pc, X_GLrop_BindFramebuffer, cmdlen);
7446 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7447 (void) memcpy((void *)(gc->pc + 8), (void *)(&framebuffer), 1 * sizeof(GLuint));
7448 gc->pc += cmdlen;
7449 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7455 struct glx_context * const gc = __glXGetCurrentContext();
7457 emit_header(gc->pc, X_GLrop_BindRenderbuffer, cmdlen);
7458 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7459 (void) memcpy((void *)(gc->pc + 8), (void *)(&renderbuffer), 1 * sizeof(GLuint));
7460 gc->pc += cmdlen;
7461 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7467 struct glx_context * const gc = __glXGetCurrentContext();
7469 emit_header(gc->pc, X_GLrop_BlitFramebuffer, cmdlen);
7470 (void) memcpy((void *)(gc->pc + 4), (void *)(&srcX0), 1 * sizeof(GLint));
7471 (void) memcpy((void *)(gc->pc + 8), (void *)(&srcY0), 1 * sizeof(GLint));
7472 (void) memcpy((void *)(gc->pc + 12), (void *)(&srcX1), 1 * sizeof(GLint));
7473 (void) memcpy((void *)(gc->pc + 16), (void *)(&srcY1), 1 * sizeof(GLint));
7474 (void) memcpy((void *)(gc->pc + 20), (void *)(&dstX0), 1 * sizeof(GLint));
7475 (void) memcpy((void *)(gc->pc + 24), (void *)(&dstY0), 1 * sizeof(GLint));
7476 (void) memcpy((void *)(gc->pc + 28), (void *)(&dstX1), 1 * sizeof(GLint));
7477 (void) memcpy((void *)(gc->pc + 32), (void *)(&dstY1), 1 * sizeof(GLint));
7478 (void) memcpy((void *)(gc->pc + 36), (void *)(&mask), 1 * sizeof(GLbitfield));
7479 (void) memcpy((void *)(gc->pc + 40), (void *)(&filter), 1 * sizeof(GLenum));
7480 gc->pc += cmdlen;
7481 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7487 struct glx_context * const gc = __glXGetCurrentContext();
7488 Display * const dpy = gc->currentDpy;
7492 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_CheckFramebufferStatus, cmdlen);
7503 struct glx_context * const gc = __glXGetCurrentContext();
7506 __glXSetError(gc, GL_INVALID_VALUE);
7510 __glXSetError(gc, GL_INVALID_VALUE);
7514 emit_header(gc->pc, X_GLrop_DeleteFramebuffers, cmdlen);
7515 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 1 * sizeof(GLsizei));
7516 (void) memcpy((void *)(gc->pc + 8), (void *)(framebuffers), safe_mul(n, 1 * sizeof(GLuint)));
7517 gc->pc += cmdlen;
7518 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7525 struct glx_context * const gc = __glXGetCurrentContext();
7528 __glXSetError(gc, GL_INVALID_VALUE);
7532 __glXSetError(gc, GL_INVALID_VALUE);
7536 emit_header(gc->pc, X_GLrop_DeleteRenderbuffers, cmdlen);
7537 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 1 * sizeof(GLsizei));
7538 (void) memcpy((void *)(gc->pc + 8), (void *)(renderbuffers), safe_mul(n, 1 * sizeof(GLuint)));
7539 gc->pc += cmdlen;
7540 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7547 struct glx_context * const gc = __glXGetCurrentContext();
7549 emit_header(gc->pc, X_GLrop_FramebufferRenderbuffer, cmdlen);
7550 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7551 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 1 * sizeof(GLenum));
7552 (void) memcpy((void *)(gc->pc + 12), (void *)(&renderbuffertarget), 1 * sizeof(GLenum));
7553 (void) memcpy((void *)(gc->pc + 16), (void *)(&renderbuffer), 1 * sizeof(GLuint));
7554 gc->pc += cmdlen;
7555 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7561 struct glx_context * const gc = __glXGetCurrentContext();
7563 emit_header(gc->pc, X_GLrop_FramebufferTexture1D, cmdlen);
7564 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7565 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 1 * sizeof(GLenum));
7566 (void) memcpy((void *)(gc->pc + 12), (void *)(&textarget), 1 * sizeof(GLenum));
7567 (void) memcpy((void *)(gc->pc + 16), (void *)(&texture), 1 * sizeof(GLuint));
7568 (void) memcpy((void *)(gc->pc + 20), (void *)(&level), 1 * sizeof(GLint));
7569 gc->pc += cmdlen;
7570 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7576 struct glx_context * const gc = __glXGetCurrentContext();
7578 emit_header(gc->pc, X_GLrop_FramebufferTexture2D, cmdlen);
7579 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7580 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 1 * sizeof(GLenum));
7581 (void) memcpy((void *)(gc->pc + 12), (void *)(&textarget), 1 * sizeof(GLenum));
7582 (void) memcpy((void *)(gc->pc + 16), (void *)(&texture), 1 * sizeof(GLuint));
7583 (void) memcpy((void *)(gc->pc + 20), (void *)(&level), 1 * sizeof(GLint));
7584 gc->pc += cmdlen;
7585 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7591 struct glx_context * const gc = __glXGetCurrentContext();
7593 emit_header(gc->pc, X_GLrop_FramebufferTexture3D, cmdlen);
7594 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7595 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 1 * sizeof(GLenum));
7596 (void) memcpy((void *)(gc->pc + 12), (void *)(&textarget), 1 * sizeof(GLenum));
7597 (void) memcpy((void *)(gc->pc + 16), (void *)(&texture), 1 * sizeof(GLuint));
7598 (void) memcpy((void *)(gc->pc + 20), (void *)(&level), 1 * sizeof(GLint));
7599 (void) memcpy((void *)(gc->pc + 24), (void *)(&layer), 1 * sizeof(GLint));
7600 gc->pc += cmdlen;
7601 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7607 struct glx_context * const gc = __glXGetCurrentContext();
7609 emit_header(gc->pc, X_GLrop_FramebufferTextureLayer, cmdlen);
7610 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7611 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 1 * sizeof(GLenum));
7612 (void) memcpy((void *)(gc->pc + 12), (void *)(&texture), 1 * sizeof(GLuint));
7613 (void) memcpy((void *)(gc->pc + 16), (void *)(&level), 1 * sizeof(GLint));
7614 (void) memcpy((void *)(gc->pc + 20), (void *)(&layer), 1 * sizeof(GLint));
7615 gc->pc += cmdlen;
7616 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7622 struct glx_context * const gc = __glXGetCurrentContext();
7623 Display * const dpy = gc->currentDpy;
7626 __glXSetError(gc, GL_INVALID_VALUE);
7630 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenFramebuffers, cmdlen);
7641 struct glx_context * const gc = __glXGetCurrentContext();
7642 Display * const dpy = gc->currentDpy;
7645 __glXSetError(gc, GL_INVALID_VALUE);
7649 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenRenderbuffers, cmdlen);
7660 struct glx_context * const gc = __glXGetCurrentContext();
7662 emit_header(gc->pc, X_GLrop_GenerateMipmap, cmdlen);
7663 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7664 gc->pc += cmdlen;
7665 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7671 struct glx_context * const gc = __glXGetCurrentContext();
7672 Display * const dpy = gc->currentDpy;
7675 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetFramebufferAttachmentParameteriv, cmdlen);
7688 struct glx_context * const gc = __glXGetCurrentContext();
7689 Display * const dpy = gc->currentDpy;
7692 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetRenderbufferParameteriv, cmdlen);
7704 struct glx_context * const gc = __glXGetCurrentContext();
7705 Display * const dpy = gc->currentDpy;
7709 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsFramebuffer, cmdlen);
7720 struct glx_context * const gc = __glXGetCurrentContext();
7721 Display * const dpy = gc->currentDpy;
7725 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsRenderbuffer, cmdlen);
7736 struct glx_context * const gc = __glXGetCurrentContext();
7738 emit_header(gc->pc, X_GLrop_RenderbufferStorage, cmdlen);
7739 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7740 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 1 * sizeof(GLenum));
7741 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 1 * sizeof(GLsizei));
7742 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 1 * sizeof(GLsizei));
7743 gc->pc += cmdlen;
7744 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7750 struct glx_context * const gc = __glXGetCurrentContext();
7752 emit_header(gc->pc, X_GLrop_RenderbufferStorageMultisample, cmdlen);
7753 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7754 (void) memcpy((void *)(gc->pc + 8), (void *)(&samples), 1 * sizeof(GLsizei));
7755 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 1 * sizeof(GLenum));
7756 (void) memcpy((void *)(gc->pc + 16), (void *)(&width), 1 * sizeof(GLsizei));
7757 (void) memcpy((void *)(gc->pc + 20), (void *)(&height), 1 * sizeof(GLsizei));
7758 gc->pc += cmdlen;
7759 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7765 struct glx_context * const gc = __glXGetCurrentContext();
7767 emit_header(gc->pc, X_GLrop_SampleMaskSGIS, cmdlen);
7768 (void) memcpy((void *)(gc->pc + 4), (void *)(&value), 1 * sizeof(GLclampf));
7769 (void) memcpy((void *)(gc->pc + 8), (void *)(&invert), 1 * sizeof(GLboolean));
7770 gc->pc += cmdlen;
7771 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7777 struct glx_context * const gc = __glXGetCurrentContext();
7779 emit_header(gc->pc, X_GLrop_SamplePatternSGIS, cmdlen);
7780 (void) memcpy((void *)(gc->pc + 4), (void *)(&pattern), 1 * sizeof(GLenum));
7781 gc->pc += cmdlen;
7782 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7788 struct glx_context * const gc = __glXGetCurrentContext();
7790 emit_header(gc->pc, X_GLrop_SecondaryColor3fvEXT, cmdlen);
7791 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1 * sizeof(GLfloat));
7792 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 1 * sizeof(GLfloat));
7793 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 1 * sizeof(GLfloat));
7794 gc->pc += cmdlen;
7795 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7807 struct glx_context * const gc = __glXGetCurrentContext();
7809 emit_header(gc->pc, X_GLrop_FogCoordfvEXT, cmdlen);
7810 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 1 * sizeof(GLfloat));
7811 gc->pc += cmdlen;
7812 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7824 struct glx_context * const gc = __glXGetCurrentContext();
7825 Display * const dpy = gc->currentDpy;
7829 __glXSetError(gc, GL_INVALID_VALUE);
7833 __glXSetError(gc, GL_INVALID_VALUE);
7837 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_AreProgramsResidentNV, cmdlen);
7849 struct glx_context * const gc = __glXGetCurrentContext();
7851 emit_header(gc->pc, X_GLrop_ExecuteProgramNV, cmdlen);
7852 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
7853 (void) memcpy((void *)(gc->pc + 8), (void *)(&id), 1 * sizeof(GLuint));
7854 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 4 * sizeof(GLfloat));
7855 gc->pc += cmdlen;
7856 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7862 struct glx_context * const gc = __glXGetCurrentContext();
7863 Display * const dpy = gc->currentDpy;
7866 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramParameterdvNV, cmdlen);
7879 struct glx_context * const gc = __glXGetCurrentContext();
7880 Display * const dpy = gc->currentDpy;
7883 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramParameterfvNV, cmdlen);
7896 struct glx_context * const gc = __glXGetCurrentContext();
7897 Display * const dpy = gc->currentDpy;
7900 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramStringNV, cmdlen);
7912 struct glx_context * const gc = __glXGetCurrentContext();
7913 Display * const dpy = gc->currentDpy;
7916 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramivNV, cmdlen);
7928 struct glx_context * const gc = __glXGetCurrentContext();
7929 Display * const dpy = gc->currentDpy;
7932 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetTrackMatrixivNV, cmdlen);
7945 struct glx_context * const gc = __glXGetCurrentContext();
7946 Display * const dpy = gc->currentDpy;
7949 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetVertexAttribdvNV, cmdlen);
7961 struct glx_context * const gc = __glXGetCurrentContext();
7962 Display * const dpy = gc->currentDpy;
7965 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetVertexAttribfvNV, cmdlen);
7977 struct glx_context * const gc = __glXGetCurrentContext();
7978 Display * const dpy = gc->currentDpy;
7981 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetVertexAttribivNV, cmdlen);
7993 struct glx_context * const gc = __glXGetCurrentContext();
7996 __glXSetError(gc, GL_INVALID_VALUE);
8000 __glXSetError(gc, GL_INVALID_VALUE);
8004 emit_header(gc->pc, X_GLrop_LoadProgramNV, cmdlen);
8005 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
8006 (void) memcpy((void *)(gc->pc + 8), (void *)(&id), 1 * sizeof(GLuint));
8007 (void) memcpy((void *)(gc->pc + 12), (void *)(&len), 1 * sizeof(GLsizei));
8008 (void) memcpy((void *)(gc->pc + 16), (void *)(program), len);
8009 gc->pc += cmdlen;
8010 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8017 struct glx_context * const gc = __glXGetCurrentContext();
8020 __glXSetError(gc, GL_INVALID_VALUE);
8024 __glXSetError(gc, GL_INVALID_VALUE);
8028 emit_header(gc->pc, X_GLrop_ProgramParameters4dvNV, cmdlen);
8029 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
8030 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
8031 (void) memcpy((void *)(gc->pc + 12), (void *)(&num), 1 * sizeof(GLsizei));
8032 (void) memcpy((void *)(gc->pc + 16), (void *)(params), safe_mul(num, 4 * sizeof(GLdouble)));
8033 gc->pc += cmdlen;
8034 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8041 struct glx_context * const gc = __glXGetCurrentContext();
8044 __glXSetError(gc, GL_INVALID_VALUE);
8048 __glXSetError(gc, GL_INVALID_VALUE);
8052 emit_header(gc->pc, X_GLrop_ProgramParameters4fvNV, cmdlen);
8053 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
8054 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 1 * sizeof(GLuint));
8055 (void) memcpy((void *)(gc->pc + 12), (void *)(&num), 1 * sizeof(GLsizei));
8056 (void) memcpy((void *)(gc->pc + 16), (void *)(params), safe_mul(num, 4 * sizeof(GLfloat)));
8057 gc->pc += cmdlen;
8058 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8065 struct glx_context * const gc = __glXGetCurrentContext();
8068 __glXSetError(gc, GL_INVALID_VALUE);
8072 __glXSetError(gc, GL_INVALID_VALUE);
8076 emit_header(gc->pc, X_GLrop_RequestResidentProgramsNV, cmdlen);
8077 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 1 * sizeof(GLsizei));
8078 (void) memcpy((void *)(gc->pc + 8), (void *)(ids), safe_mul(n, 1 * sizeof(GLuint)));
8079 gc->pc += cmdlen;
8080 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8087 struct glx_context * const gc = __glXGetCurrentContext();
8089 emit_header(gc->pc, X_GLrop_TrackMatrixNV, cmdlen);
8090 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
8091 (void) memcpy((void *)(gc->pc + 8), (void *)(&address), 1 * sizeof(GLuint));
8092 (void) memcpy((void *)(gc->pc + 12), (void *)(&matrix), 1 * sizeof(GLenum));
8093 (void) memcpy((void *)(gc->pc + 16), (void *)(&transform), 1 * sizeof(GLenum));
8094 gc->pc += cmdlen;
8095 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8101 struct glx_context * const gc = __glXGetCurrentContext();
8103 emit_header(gc->pc, X_GLrop_VertexAttrib1dvNV, cmdlen);
8104 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8105 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
8106 gc->pc += cmdlen;
8107 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8113 struct glx_context * const gc = __glXGetCurrentContext();
8115 emit_header(gc->pc, X_GLrop_VertexAttrib1dvNV, cmdlen);
8116 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8117 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLdouble));
8118 gc->pc += cmdlen;
8119 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8125 struct glx_context * const gc = __glXGetCurrentContext();
8127 emit_header(gc->pc, X_GLrop_VertexAttrib1fvNV, cmdlen);
8128 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8129 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
8130 gc->pc += cmdlen;
8131 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8137 struct glx_context * const gc = __glXGetCurrentContext();
8139 emit_header(gc->pc, X_GLrop_VertexAttrib1fvNV, cmdlen);
8140 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8141 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLfloat));
8142 gc->pc += cmdlen;
8143 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8149 struct glx_context * const gc = __glXGetCurrentContext();
8151 emit_header(gc->pc, X_GLrop_VertexAttrib1svNV, cmdlen);
8152 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8153 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
8154 gc->pc += cmdlen;
8155 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8161 struct glx_context * const gc = __glXGetCurrentContext();
8163 emit_header(gc->pc, X_GLrop_VertexAttrib1svNV, cmdlen);
8164 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8165 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 1 * sizeof(GLshort));
8166 gc->pc += cmdlen;
8167 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8173 struct glx_context * const gc = __glXGetCurrentContext();
8175 emit_header(gc->pc, X_GLrop_VertexAttrib2dvNV, cmdlen);
8176 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8177 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
8178 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLdouble));
8179 gc->pc += cmdlen;
8180 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8186 struct glx_context * const gc = __glXGetCurrentContext();
8188 emit_header(gc->pc, X_GLrop_VertexAttrib2dvNV, cmdlen);
8189 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8190 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLdouble));
8191 gc->pc += cmdlen;
8192 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8198 struct glx_context * const gc = __glXGetCurrentContext();
8200 emit_header(gc->pc, X_GLrop_VertexAttrib2fvNV, cmdlen);
8201 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8202 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
8203 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLfloat));
8204 gc->pc += cmdlen;
8205 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8211 struct glx_context * const gc = __glXGetCurrentContext();
8213 emit_header(gc->pc, X_GLrop_VertexAttrib2fvNV, cmdlen);
8214 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8215 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLfloat));
8216 gc->pc += cmdlen;
8217 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8223 struct glx_context * const gc = __glXGetCurrentContext();
8225 emit_header(gc->pc, X_GLrop_VertexAttrib2svNV, cmdlen);
8226 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8227 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
8228 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 1 * sizeof(GLshort));
8229 gc->pc += cmdlen;
8230 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8236 struct glx_context * const gc = __glXGetCurrentContext();
8238 emit_header(gc->pc, X_GLrop_VertexAttrib2svNV, cmdlen);
8239 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8240 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2 * sizeof(GLshort));
8241 gc->pc += cmdlen;
8242 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8248 struct glx_context * const gc = __glXGetCurrentContext();
8250 emit_header(gc->pc, X_GLrop_VertexAttrib3dvNV, cmdlen);
8251 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8252 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
8253 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLdouble));
8254 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 1 * sizeof(GLdouble));
8255 gc->pc += cmdlen;
8256 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8262 struct glx_context * const gc = __glXGetCurrentContext();
8264 emit_header(gc->pc, X_GLrop_VertexAttrib3dvNV, cmdlen);
8265 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8266 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLdouble));
8267 gc->pc += cmdlen;
8268 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8274 struct glx_context * const gc = __glXGetCurrentContext();
8276 emit_header(gc->pc, X_GLrop_VertexAttrib3fvNV, cmdlen);
8277 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8278 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
8279 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLfloat));
8280 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 1 * sizeof(GLfloat));
8281 gc->pc += cmdlen;
8282 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8288 struct glx_context * const gc = __glXGetCurrentContext();
8290 emit_header(gc->pc, X_GLrop_VertexAttrib3fvNV, cmdlen);
8291 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8292 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLfloat));
8293 gc->pc += cmdlen;
8294 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8300 struct glx_context * const gc = __glXGetCurrentContext();
8302 emit_header(gc->pc, X_GLrop_VertexAttrib3svNV, cmdlen);
8303 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8304 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
8305 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 1 * sizeof(GLshort));
8306 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLshort));
8307 gc->pc += cmdlen;
8308 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8314 struct glx_context * const gc = __glXGetCurrentContext();
8316 emit_header(gc->pc, X_GLrop_VertexAttrib3svNV, cmdlen);
8317 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8318 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 3 * sizeof(GLshort));
8319 gc->pc += cmdlen;
8320 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8326 struct glx_context * const gc = __glXGetCurrentContext();
8328 emit_header(gc->pc, X_GLrop_VertexAttrib4dvNV, cmdlen);
8329 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8330 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLdouble));
8331 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLdouble));
8332 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 1 * sizeof(GLdouble));
8333 (void) memcpy((void *)(gc->pc + 32), (void *)(&w), 1 * sizeof(GLdouble));
8334 gc->pc += cmdlen;
8335 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8341 struct glx_context * const gc = __glXGetCurrentContext();
8343 emit_header(gc->pc, X_GLrop_VertexAttrib4dvNV, cmdlen);
8344 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8345 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLdouble));
8346 gc->pc += cmdlen;
8347 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8353 struct glx_context * const gc = __glXGetCurrentContext();
8355 emit_header(gc->pc, X_GLrop_VertexAttrib4fvNV, cmdlen);
8356 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8357 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLfloat));
8358 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLfloat));
8359 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 1 * sizeof(GLfloat));
8360 (void) memcpy((void *)(gc->pc + 20), (void *)(&w), 1 * sizeof(GLfloat));
8361 gc->pc += cmdlen;
8362 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8368 struct glx_context * const gc = __glXGetCurrentContext();
8370 emit_header(gc->pc, X_GLrop_VertexAttrib4fvNV, cmdlen);
8371 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8372 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLfloat));
8373 gc->pc += cmdlen;
8374 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8380 struct glx_context * const gc = __glXGetCurrentContext();
8382 emit_header(gc->pc, X_GLrop_VertexAttrib4svNV, cmdlen);
8383 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8384 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLshort));
8385 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 1 * sizeof(GLshort));
8386 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 1 * sizeof(GLshort));
8387 (void) memcpy((void *)(gc->pc + 14), (void *)(&w), 1 * sizeof(GLshort));
8388 gc->pc += cmdlen;
8389 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8395 struct glx_context * const gc = __glXGetCurrentContext();
8397 emit_header(gc->pc, X_GLrop_VertexAttrib4svNV, cmdlen);
8398 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8399 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLshort));
8400 gc->pc += cmdlen;
8401 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8407 struct glx_context * const gc = __glXGetCurrentContext();
8409 emit_header(gc->pc, X_GLrop_VertexAttrib4ubvNV, cmdlen);
8410 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8411 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1 * sizeof(GLubyte));
8412 (void) memcpy((void *)(gc->pc + 9), (void *)(&y), 1 * sizeof(GLubyte));
8413 (void) memcpy((void *)(gc->pc + 10), (void *)(&z), 1 * sizeof(GLubyte));
8414 (void) memcpy((void *)(gc->pc + 11), (void *)(&w), 1 * sizeof(GLubyte));
8415 gc->pc += cmdlen;
8416 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8422 struct glx_context * const gc = __glXGetCurrentContext();
8424 emit_header(gc->pc, X_GLrop_VertexAttrib4ubvNV, cmdlen);
8425 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8426 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4 * sizeof(GLubyte));
8427 gc->pc += cmdlen;
8428 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8434 struct glx_context * const gc = __glXGetCurrentContext();
8437 __glXSetError(gc, GL_INVALID_VALUE);
8441 __glXSetError(gc, GL_INVALID_VALUE);
8445 emit_header(gc->pc, X_GLrop_VertexAttribs1dvNV, cmdlen);
8446 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8447 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8448 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 1 * sizeof(GLdouble)));
8449 gc->pc += cmdlen;
8450 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8457 struct glx_context * const gc = __glXGetCurrentContext();
8460 __glXSetError(gc, GL_INVALID_VALUE);
8464 __glXSetError(gc, GL_INVALID_VALUE);
8468 emit_header(gc->pc, X_GLrop_VertexAttribs1fvNV, cmdlen);
8469 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8470 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8471 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 1 * sizeof(GLfloat)));
8472 gc->pc += cmdlen;
8473 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8480 struct glx_context * const gc = __glXGetCurrentContext();
8483 __glXSetError(gc, GL_INVALID_VALUE);
8487 __glXSetError(gc, GL_INVALID_VALUE);
8491 emit_header(gc->pc, X_GLrop_VertexAttribs1svNV, cmdlen);
8492 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8493 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8494 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 1 * sizeof(GLshort)));
8495 gc->pc += cmdlen;
8496 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8503 struct glx_context * const gc = __glXGetCurrentContext();
8506 __glXSetError(gc, GL_INVALID_VALUE);
8510 __glXSetError(gc, GL_INVALID_VALUE);
8514 emit_header(gc->pc, X_GLrop_VertexAttribs2dvNV, cmdlen);
8515 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8516 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8517 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 2 * sizeof(GLdouble)));
8518 gc->pc += cmdlen;
8519 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8526 struct glx_context * const gc = __glXGetCurrentContext();
8529 __glXSetError(gc, GL_INVALID_VALUE);
8533 __glXSetError(gc, GL_INVALID_VALUE);
8537 emit_header(gc->pc, X_GLrop_VertexAttribs2fvNV, cmdlen);
8538 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8539 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8540 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 2 * sizeof(GLfloat)));
8541 gc->pc += cmdlen;
8542 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8549 struct glx_context * const gc = __glXGetCurrentContext();
8552 __glXSetError(gc, GL_INVALID_VALUE);
8556 __glXSetError(gc, GL_INVALID_VALUE);
8560 emit_header(gc->pc, X_GLrop_VertexAttribs2svNV, cmdlen);
8561 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8562 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8563 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 2 * sizeof(GLshort)));
8564 gc->pc += cmdlen;
8565 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8572 struct glx_context * const gc = __glXGetCurrentContext();
8575 __glXSetError(gc, GL_INVALID_VALUE);
8579 __glXSetError(gc, GL_INVALID_VALUE);
8583 emit_header(gc->pc, X_GLrop_VertexAttribs3dvNV, cmdlen);
8584 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8585 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8586 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 3 * sizeof(GLdouble)));
8587 gc->pc += cmdlen;
8588 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8595 struct glx_context * const gc = __glXGetCurrentContext();
8598 __glXSetError(gc, GL_INVALID_VALUE);
8602 __glXSetError(gc, GL_INVALID_VALUE);
8606 emit_header(gc->pc, X_GLrop_VertexAttribs3fvNV, cmdlen);
8607 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8608 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8609 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 3 * sizeof(GLfloat)));
8610 gc->pc += cmdlen;
8611 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8618 struct glx_context * const gc = __glXGetCurrentContext();
8621 __glXSetError(gc, GL_INVALID_VALUE);
8625 __glXSetError(gc, GL_INVALID_VALUE);
8629 emit_header(gc->pc, X_GLrop_VertexAttribs3svNV, cmdlen);
8630 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8631 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8632 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 3 * sizeof(GLshort)));
8633 gc->pc += cmdlen;
8634 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8641 struct glx_context * const gc = __glXGetCurrentContext();
8644 __glXSetError(gc, GL_INVALID_VALUE);
8648 __glXSetError(gc, GL_INVALID_VALUE);
8652 emit_header(gc->pc, X_GLrop_VertexAttribs4dvNV, cmdlen);
8653 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8654 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8655 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLdouble)));
8656 gc->pc += cmdlen;
8657 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8664 struct glx_context * const gc = __glXGetCurrentContext();
8667 __glXSetError(gc, GL_INVALID_VALUE);
8671 __glXSetError(gc, GL_INVALID_VALUE);
8675 emit_header(gc->pc, X_GLrop_VertexAttribs4fvNV, cmdlen);
8676 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8677 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8678 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLfloat)));
8679 gc->pc += cmdlen;
8680 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8687 struct glx_context * const gc = __glXGetCurrentContext();
8690 __glXSetError(gc, GL_INVALID_VALUE);
8694 __glXSetError(gc, GL_INVALID_VALUE);
8698 emit_header(gc->pc, X_GLrop_VertexAttribs4svNV, cmdlen);
8699 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8700 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8701 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLshort)));
8702 gc->pc += cmdlen;
8703 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8710 struct glx_context * const gc = __glXGetCurrentContext();
8713 __glXSetError(gc, GL_INVALID_VALUE);
8717 __glXSetError(gc, GL_INVALID_VALUE);
8721 emit_header(gc->pc, X_GLrop_VertexAttribs4ubvNV, cmdlen);
8722 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 1 * sizeof(GLuint));
8723 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 1 * sizeof(GLsizei));
8724 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4 * sizeof(GLubyte)));
8725 gc->pc += cmdlen;
8726 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8733 struct glx_context * const gc = __glXGetCurrentContext();
8735 emit_header(gc->pc, X_GLrop_ActiveStencilFaceEXT, cmdlen);
8736 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 1 * sizeof(GLenum));
8737 gc->pc += cmdlen;
8738 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8744 struct glx_context * const gc = __glXGetCurrentContext();
8745 Display * const dpy = gc->currentDpy;
8748 __glXSetError(gc, GL_INVALID_VALUE);
8752 __glXSetError(gc, GL_INVALID_VALUE);
8756 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramNamedParameterdvNV, cmdlen);
8769 struct glx_context * const gc = __glXGetCurrentContext();
8770 Display * const dpy = gc->currentDpy;
8773 __glXSetError(gc, GL_INVALID_VALUE);
8777 __glXSetError(gc, GL_INVALID_VALUE);
8781 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramNamedParameterfvNV, cmdlen);
8794 struct glx_context * const gc = __glXGetCurrentContext();
8797 __glXSetError(gc, GL_INVALID_VALUE);
8801 __glXSetError(gc, GL_INVALID_VALUE);
8805 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4dvNV, cmdlen);
8806 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 1 * sizeof(GLdouble));
8807 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 1 * sizeof(GLdouble));
8808 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLdouble));
8809 (void) memcpy((void *)(gc->pc + 28), (void *)(&w), 1 * sizeof(GLdouble));
8810 (void) memcpy((void *)(gc->pc + 36), (void *)(&id), 1 * sizeof(GLuint));
8811 (void) memcpy((void *)(gc->pc + 40), (void *)(&len), 1 * sizeof(GLsizei));
8812 (void) memcpy((void *)(gc->pc + 44), (void *)(name), len);
8813 gc->pc += cmdlen;
8814 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8821 struct glx_context * const gc = __glXGetCurrentContext();
8824 __glXSetError(gc, GL_INVALID_VALUE);
8828 __glXSetError(gc, GL_INVALID_VALUE);
8832 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4dvNV, cmdlen);
8833 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 4 * sizeof(GLdouble));
8834 (void) memcpy((void *)(gc->pc + 36), (void *)(&id), 1 * sizeof(GLuint));
8835 (void) memcpy((void *)(gc->pc + 40), (void *)(&len), 1 * sizeof(GLsizei));
8836 (void) memcpy((void *)(gc->pc + 44), (void *)(name), len);
8837 gc->pc += cmdlen;
8838 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8845 struct glx_context * const gc = __glXGetCurrentContext();
8848 __glXSetError(gc, GL_INVALID_VALUE);
8852 __glXSetError(gc, GL_INVALID_VALUE);
8856 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4fvNV, cmdlen);
8857 (void) memcpy((void *)(gc->pc + 4), (void *)(&id), 1 * sizeof(GLuint));
8858 (void) memcpy((void *)(gc->pc + 8), (void *)(&len), 1 * sizeof(GLsizei));
8859 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 1 * sizeof(GLfloat));
8860 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 1 * sizeof(GLfloat));
8861 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 1 * sizeof(GLfloat));
8862 (void) memcpy((void *)(gc->pc + 24), (void *)(&w), 1 * sizeof(GLfloat));
8863 (void) memcpy((void *)(gc->pc + 28), (void *)(name), len);
8864 gc->pc += cmdlen;
8865 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8872 struct glx_context * const gc = __glXGetCurrentContext();
8875 __glXSetError(gc, GL_INVALID_VALUE);
8879 __glXSetError(gc, GL_INVALID_VALUE);
8883 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4fvNV, cmdlen);
8884 (void) memcpy((void *)(gc->pc + 4), (void *)(&id), 1 * sizeof(GLuint));
8885 (void) memcpy((void *)(gc->pc + 8), (void *)(&len), 1 * sizeof(GLsizei));
8886 (void) memcpy((void *)(gc->pc + 12), (void *)(v), 4 * sizeof(GLfloat));
8887 (void) memcpy((void *)(gc->pc + 28), (void *)(name), len);
8888 gc->pc += cmdlen;
8889 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8896 struct glx_context * const gc = __glXGetCurrentContext();
8898 emit_header(gc->pc, X_GLrop_BindFramebufferEXT, cmdlen);
8899 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
8900 (void) memcpy((void *)(gc->pc + 8), (void *)(&framebuffer), 1 * sizeof(GLuint));
8901 gc->pc += cmdlen;
8902 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8908 struct glx_context * const gc = __glXGetCurrentContext();
8910 emit_header(gc->pc, X_GLrop_BindRenderbufferEXT, cmdlen);
8911 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 1 * sizeof(GLenum));
8912 (void) memcpy((void *)(gc->pc + 8), (void *)(&renderbuffer), 1 * sizeof(GLuint));
8913 gc->pc += cmdlen;
8914 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }