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), 4);
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), 4);
369 (void) memcpy((void *)(gc->pc + 8), (void *)(&type), 4);
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), 4);
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), 4);
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), 4);
475 (void) memcpy((void *)(gc->pc + 28), (void *)(&height), 4);
476 (void) memcpy((void *)(gc->pc + 32), (void *)(&xorig), 4);
477 (void) memcpy((void *)(gc->pc + 36), (void *)(&yorig), 4);
478 (void) memcpy((void *)(gc->pc + 40), (void *)(&xmove), 4);
479 (void) memcpy((void *)(gc->pc + 44), (void *)(&ymove), 4);
481 gc->fillImage(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);
512 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1);
513 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1);
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), 8);
531 (void) memcpy((void *)(gc->pc + 12), (void *)(&green), 8);
532 (void) memcpy((void *)(gc->pc + 20), (void *)(&blue), 8);
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), 4);
550 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
551 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
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), 4);
569 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
570 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
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), 2);
588 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 2);
589 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 2);
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);
607 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1);
608 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1);
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), 4);
626 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
627 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
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), 2);
645 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 2);
646 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 2);
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);
664 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1);
665 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1);
666 (void) memcpy((void *)(gc->pc + 7), (void *)(&alpha), 1);
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), 8);
684 (void) memcpy((void *)(gc->pc + 12), (void *)(&green), 8);
685 (void) memcpy((void *)(gc->pc + 20), (void *)(&blue), 8);
686 (void) memcpy((void *)(gc->pc + 28), (void *)(&alpha), 8);
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), 4);
704 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
705 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
706 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 4);
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), 4);
724 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
725 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
726 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 4);
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), 2);
744 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 2);
745 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 2);
746 (void) memcpy((void *)(gc->pc + 10), (void *)(&alpha), 2);
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);
764 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1);
765 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1);
766 (void) memcpy((void *)(gc->pc + 7), (void *)(&alpha), 1);
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), 4);
784 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
785 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
786 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 4);
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), 2);
804 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 2);
805 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 2);
806 (void) memcpy((void *)(gc->pc + 10), (void *)(&alpha), 2);
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);
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);
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), 8);
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), 4);
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), 4);
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), 2);
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), 2);
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);
929 (void) memcpy((void *)(gc->pc + 5), (void *)(&ny), 1);
930 (void) memcpy((void *)(gc->pc + 6), (void *)(&nz), 1);
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), 8);
948 (void) memcpy((void *)(gc->pc + 12), (void *)(&ny), 8);
949 (void) memcpy((void *)(gc->pc + 20), (void *)(&nz), 8);
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), 4);
967 (void) memcpy((void *)(gc->pc + 8), (void *)(&ny), 4);
968 (void) memcpy((void *)(gc->pc + 12), (void *)(&nz), 4);
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), 4);
986 (void) memcpy((void *)(gc->pc + 8), (void *)(&ny), 4);
987 (void) memcpy((void *)(gc->pc + 12), (void *)(&nz), 4);
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), 2);
1005 (void) memcpy((void *)(gc->pc + 6), (void *)(&ny), 2);
1006 (void) memcpy((void *)(gc->pc + 8), (void *)(&nz), 2);
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), 8);
1024 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
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), 4);
1042 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
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), 4);
1060 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
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), 2);
1078 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 2);
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), 8);
1096 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
1097 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 8);
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), 4);
1115 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1116 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
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), 4);
1134 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1135 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
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), 2);
1153 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 2);
1154 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 2);
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), 8);
1172 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
1173 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 8);
1174 (void) memcpy((void *)(gc->pc + 28), (void *)(&w), 8);
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), 4);
1192 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1193 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
1194 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 4);
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), 4);
1212 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1213 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
1214 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 4);
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), 2);
1232 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 2);
1233 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 2);
1234 (void) memcpy((void *)(gc->pc + 10), (void *)(&w), 2);
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), 8);
1252 (void) memcpy((void *)(gc->pc + 12), (void *)(&y1), 8);
1253 (void) memcpy((void *)(gc->pc + 20), (void *)(&x2), 8);
1254 (void) memcpy((void *)(gc->pc + 28), (void *)(&y2), 8);
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), 16);
1266 (void) memcpy((void *)(gc->pc + 20), (void *)(v2), 16);
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), 4);
1278 (void) memcpy((void *)(gc->pc + 8), (void *)(&y1), 4);
1279 (void) memcpy((void *)(gc->pc + 12), (void *)(&x2), 4);
1280 (void) memcpy((void *)(gc->pc + 16), (void *)(&y2), 4);
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), 8);
1292 (void) memcpy((void *)(gc->pc + 12), (void *)(v2), 8);
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), 4);
1304 (void) memcpy((void *)(gc->pc + 8), (void *)(&y1), 4);
1305 (void) memcpy((void *)(gc->pc + 12), (void *)(&x2), 4);
1306 (void) memcpy((void *)(gc->pc + 16), (void *)(&y2), 4);
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), 8);
1318 (void) memcpy((void *)(gc->pc + 12), (void *)(v2), 8);
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), 2);
1330 (void) memcpy((void *)(gc->pc + 6), (void *)(&y1), 2);
1331 (void) memcpy((void *)(gc->pc + 8), (void *)(&x2), 2);
1332 (void) memcpy((void *)(gc->pc + 10), (void *)(&y2), 2);
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), 4);
1344 (void) memcpy((void *)(gc->pc + 8), (void *)(v2), 4);
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), 8);
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), 4);
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), 4);
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), 2);
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), 2);
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), 8);
1429 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 8);
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), 4);
1447 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 4);
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), 4);
1465 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 4);
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), 2);
1483 (void) memcpy((void *)(gc->pc + 6), (void *)(&t), 2);
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), 8);
1501 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 8);
1502 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 8);
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), 4);
1520 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 4);
1521 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 4);
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), 4);
1539 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 4);
1540 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 4);
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), 2);
1558 (void) memcpy((void *)(gc->pc + 6), (void *)(&t), 2);
1559 (void) memcpy((void *)(gc->pc + 8), (void *)(&r), 2);
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), 8);
1577 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 8);
1578 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 8);
1579 (void) memcpy((void *)(gc->pc + 28), (void *)(&q), 8);
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), 4);
1597 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 4);
1598 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 4);
1599 (void) memcpy((void *)(gc->pc + 16), (void *)(&q), 4);
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), 4);
1617 (void) memcpy((void *)(gc->pc + 8), (void *)(&t), 4);
1618 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 4);
1619 (void) memcpy((void *)(gc->pc + 16), (void *)(&q), 4);
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), 2);
1637 (void) memcpy((void *)(gc->pc + 6), (void *)(&t), 2);
1638 (void) memcpy((void *)(gc->pc + 8), (void *)(&r), 2);
1639 (void) memcpy((void *)(gc->pc + 10), (void *)(&q), 2);
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), 8);
1657 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
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), 4);
1675 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
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), 4);
1693 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
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), 2);
1711 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 2);
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), 8);
1729 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
1730 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 8);
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), 4);
1748 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1749 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
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), 4);
1767 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1768 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
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), 2);
1786 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 2);
1787 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 2);
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), 8);
1805 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
1806 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 8);
1807 (void) memcpy((void *)(gc->pc + 28), (void *)(&w), 8);
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), 4);
1825 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1826 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
1827 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 4);
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), 4);
1845 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
1846 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
1847 (void) memcpy((void *)(gc->pc + 16), (void *)(&w), 4);
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), 2);
1865 (void) memcpy((void *)(gc->pc + 6), (void *)(&y), 2);
1866 (void) memcpy((void *)(gc->pc + 8), (void *)(&z), 2);
1867 (void) memcpy((void *)(gc->pc + 10), (void *)(&w), 2);
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), 32);
1885 (void) memcpy((void *)(gc->pc + 36), (void *)(&plane), 4);
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), 4);
1897 (void) memcpy((void *)(gc->pc + 8), (void *)(&mode), 4);
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), 4);
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), 4);
1920 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
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), 4);
1937 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 4));
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), 4);
1949 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
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), 4);
1966 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 4));
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), 4);
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), 4);
1989 (void) memcpy((void *)(gc->pc + 8), (void *)(&mode), 4);
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), 4);
2001 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2002 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2019 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2020 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
2032 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2033 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2050 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2051 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
2063 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
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), 4);
2080 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 4));
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), 4);
2092 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
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), 4);
2109 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 4));
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), 4);
2121 (void) memcpy((void *)(gc->pc + 8), (void *)(&pattern), 2);
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), 4);
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), 4);
2144 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2145 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2162 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2163 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
2175 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2176 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2193 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2194 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
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), 4);
2217 (void) memcpy((void *)(gc->pc + 8), (void *)(&mode), 4);
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 gc->fillImage(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), 4);
2249 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
2250 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 4);
2251 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 4);
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), 4);
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), 4);
2274 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2275 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2292 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2293 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
2305 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2306 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2323 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2324 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
2346 (void) memcpy((void *)(gc->pc + 28), (void *)(&level), 4);
2347 (void) memcpy((void *)(gc->pc + 32), (void *)(&internalformat), 4);
2348 (void) memcpy((void *)(gc->pc + 36), (void *)(&width), 4);
2349 (void) memcpy((void *)(gc->pc + 40), (void *)(&height), 4);
2350 (void) memcpy((void *)(gc->pc + 44), (void *)(&border), 4);
2351 (void) memcpy((void *)(gc->pc + 48), (void *)(&format), 4);
2352 (void) memcpy((void *)(gc->pc + 52), (void *)(&type), 4);
2354 gc->fillImage(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), 4);
2399 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2400 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2417 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2418 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
2430 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2431 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2448 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2449 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 8);
2461 (void) memcpy((void *)(gc->pc + 12), (void *)(&coord), 4);
2462 (void) memcpy((void *)(gc->pc + 16), (void *)(&pname), 4);
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), 4);
2479 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2480 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 8));
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), 4);
2492 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2493 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2510 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2511 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
2523 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2524 (void) memcpy((void *)(gc->pc + 12), (void *)(¶m), 4);
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), 4);
2541 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
2542 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
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), 4);
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), 4);
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), 4);
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), 4);
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), 4);
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), 4);
2629 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
2630 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
2631 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 4);
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), 4);
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), 4);
2654 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
2655 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
2656 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 4);
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), 4);
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), 8);
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), 4);
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);
2701 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1);
2702 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1);
2703 (void) memcpy((void *)(gc->pc + 7), (void *)(&alpha), 1);
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);
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), 4);
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), 4);
2737 (void) memcpy((void *)(gc->pc + 8), (void *)(&value), 4);
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), 4);
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), 8);
2770 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 8);
2771 (void) memcpy((void *)(gc->pc + 20), (void *)(&un), 4);
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), 4);
2783 (void) memcpy((void *)(gc->pc + 8), (void *)(&u1), 4);
2784 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 4);
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), 8);
2796 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 8);
2797 (void) memcpy((void *)(gc->pc + 20), (void *)(&v1), 8);
2798 (void) memcpy((void *)(gc->pc + 28), (void *)(&v2), 8);
2799 (void) memcpy((void *)(gc->pc + 36), (void *)(&un), 4);
2800 (void) memcpy((void *)(gc->pc + 40), (void *)(&vn), 4);
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), 4);
2812 (void) memcpy((void *)(gc->pc + 8), (void *)(&u1), 4);
2813 (void) memcpy((void *)(gc->pc + 12), (void *)(&u2), 4);
2814 (void) memcpy((void *)(gc->pc + 16), (void *)(&vn), 4);
2815 (void) memcpy((void *)(gc->pc + 20), (void *)(&v1), 4);
2816 (void) memcpy((void *)(gc->pc + 24), (void *)(&v2), 4);
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), 8);
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), 4);
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), 8);
2862 (void) memcpy((void *)(gc->pc + 12), (void *)(&v), 8);
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), 4);
2880 (void) memcpy((void *)(gc->pc + 8), (void *)(&v), 4);
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), 4);
2898 (void) memcpy((void *)(gc->pc + 8), (void *)(&i1), 4);
2899 (void) memcpy((void *)(gc->pc + 12), (void *)(&i2), 4);
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), 4);
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), 4);
2922 (void) memcpy((void *)(gc->pc + 8), (void *)(&i1), 4);
2923 (void) memcpy((void *)(gc->pc + 12), (void *)(&i2), 4);
2924 (void) memcpy((void *)(gc->pc + 16), (void *)(&j1), 4);
2925 (void) memcpy((void *)(gc->pc + 20), (void *)(&j2), 4);
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), 4);
2937 (void) memcpy((void *)(gc->pc + 8), (void *)(&j), 4);
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), 4);
2949 (void) memcpy((void *)(gc->pc + 8), (void *)(&ref), 4);
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), 4);
2961 (void) memcpy((void *)(gc->pc + 8), (void *)(&dfactor), 4);
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), 4);
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), 4);
2984 (void) memcpy((void *)(gc->pc + 8), (void *)(&ref), 4);
2985 (void) memcpy((void *)(gc->pc + 12), (void *)(&mask), 4);
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), 4);
2997 (void) memcpy((void *)(gc->pc + 8), (void *)(&zfail), 4);
2998 (void) memcpy((void *)(gc->pc + 12), (void *)(&zpass), 4);
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), 4);
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), 4);
3021 (void) memcpy((void *)(gc->pc + 8), (void *)(&yfactor), 4);
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), 4);
3033 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
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), 4);
3045 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
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), 4);
3070 (void) memcpy((void *)(gc->pc + 8), (void *)(&mapsize), 4);
3071 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 4));
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, 4));
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), 4);
3108 (void) memcpy((void *)(gc->pc + 8), (void *)(&mapsize), 4);
3109 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 4));
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, 4));
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), 4);
3146 (void) memcpy((void *)(gc->pc + 8), (void *)(&mapsize), 4);
3147 (void) memcpy((void *)(gc->pc + 12), (void *)(values), safe_mul(mapsize, 2));
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, 2));
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), 4);
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), 4);
3182 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
3183 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 4);
3184 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 4);
3185 (void) memcpy((void *)(gc->pc + 20), (void *)(&type), 4);
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), 4);
3240 (void) memcpy((void *)(gc->pc + 28), (void *)(&height), 4);
3241 (void) memcpy((void *)(gc->pc + 32), (void *)(&format), 4);
3242 (void) memcpy((void *)(gc->pc + 36), (void *)(&type), 4);
3244 gc->fillImage(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), 8);
3970 (void) memcpy((void *)(gc->pc + 12), (void *)(&zFar), 8);
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), 8);
3982 (void) memcpy((void *)(gc->pc + 12), (void *)(&right), 8);
3983 (void) memcpy((void *)(gc->pc + 20), (void *)(&bottom), 8);
3984 (void) memcpy((void *)(gc->pc + 28), (void *)(&top), 8);
3985 (void) memcpy((void *)(gc->pc + 36), (void *)(&zNear), 8);
3986 (void) memcpy((void *)(gc->pc + 44), (void *)(&zFar), 8);
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), 64);
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), 128);
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), 4);
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), 64);
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), 128);
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), 8);
4063 (void) memcpy((void *)(gc->pc + 12), (void *)(&right), 8);
4064 (void) memcpy((void *)(gc->pc + 20), (void *)(&bottom), 8);
4065 (void) memcpy((void *)(gc->pc + 28), (void *)(&top), 8);
4066 (void) memcpy((void *)(gc->pc + 36), (void *)(&zNear), 8);
4067 (void) memcpy((void *)(gc->pc + 44), (void *)(&zFar), 8);
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), 8);
4099 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 8);
4100 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 8);
4101 (void) memcpy((void *)(gc->pc + 28), (void *)(&z), 8);
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), 4);
4113 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
4114 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 4);
4115 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 4);
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), 8);
4127 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
4128 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 8);
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), 4);
4140 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
4141 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
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), 8);
4153 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
4154 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 8);
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), 4);
4166 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
4167 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
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), 4);
4179 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
4180 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 4);
4181 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 4);
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), 4);
4193 (void) memcpy((void *)(gc->pc + 8), (void *)(&texture), 4);
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);
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);
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), 4);
4227 (void) memcpy((void *)(gc->pc + 8), (void *)(&units), 4);
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), 4);
4239 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 4);
4240 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 4);
4241 (void) memcpy((void *)(gc->pc + 16), (void *)(&x), 4);
4242 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 4);
4243 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 4);
4244 (void) memcpy((void *)(gc->pc + 28), (void *)(&border), 4);
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), 4);
4256 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 4);
4257 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 4);
4258 (void) memcpy((void *)(gc->pc + 16), (void *)(&x), 4);
4259 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 4);
4260 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 4);
4261 (void) memcpy((void *)(gc->pc + 28), (void *)(&height), 4);
4262 (void) memcpy((void *)(gc->pc + 32), (void *)(&border), 4);
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), 4);
4274 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 4);
4275 (void) memcpy((void *)(gc->pc + 12), (void *)(&xoffset), 4);
4276 (void) memcpy((void *)(gc->pc + 16), (void *)(&x), 4);
4277 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 4);
4278 (void) memcpy((void *)(gc->pc + 24), (void *)(&width), 4);
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), 4);
4290 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 4);
4291 (void) memcpy((void *)(gc->pc + 12), (void *)(&xoffset), 4);
4292 (void) memcpy((void *)(gc->pc + 16), (void *)(&yoffset), 4);
4293 (void) memcpy((void *)(gc->pc + 20), (void *)(&x), 4);
4294 (void) memcpy((void *)(gc->pc + 24), (void *)(&y), 4);
4295 (void) memcpy((void *)(gc->pc + 28), (void *)(&width), 4);
4296 (void) memcpy((void *)(gc->pc + 32), (void *)(&height), 4);
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);
4335 struct glx_context * const gc = __glXGetCurrentContext();
4338 if (gc->isDirect) {
4346 struct glx_context * const gc = __glXGetCurrentContext();
4347 Display * const dpy = gc->currentDpy;
4350 __glXSetError(gc, GL_INVALID_VALUE);
4354 __glXSetError(gc, GL_INVALID_VALUE);
4358 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivate, X_GLvop_DeleteTexturesEXT, cmdlen);
4370 struct glx_context * const gc = __glXGetCurrentContext();
4371 Display * const dpy = gc->currentDpy;
4376 __glXSetError(gc, GL_INVALID_VALUE);
4382 (void) __glXFlushRenderBuffer(gc, gc->pc);
4383 xcb_glx_gen_textures_reply_t *reply = xcb_glx_gen_textures_reply(c, xcb_glx_gen_textures(c, gc->currentContextTag, n), NULL);
4387 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GenTextures, cmdlen);
4399 struct glx_context * const gc = __glXGetCurrentContext();
4402 if (gc->isDirect) {
4410 struct glx_context * const gc = __glXGetCurrentContext();
4411 Display * const dpy = gc->currentDpy;
4414 __glXSetError(gc, GL_INVALID_VALUE);
4418 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenTexturesEXT, cmdlen);
4430 struct glx_context * const gc = __glXGetCurrentContext();
4431 Display * const dpy = gc->currentDpy;
4439 (void) __glXFlushRenderBuffer(gc, gc->pc);
4440 xcb_glx_is_texture_reply_t *reply = xcb_glx_is_texture_reply(c, xcb_glx_is_texture(c, gc->currentContextTag, texture), NULL);
4444 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_IsTexture, cmdlen);
4456 struct glx_context * const gc = __glXGetCurrentContext();
4459 if (gc->isDirect) {
4467 struct glx_context * const gc = __glXGetCurrentContext();
4468 Display * const dpy = gc->currentDpy;
4472 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsTextureEXT, cmdlen);
4484 struct glx_context * const gc = __glXGetCurrentContext();
4487 __glXSetError(gc, GL_INVALID_VALUE);
4491 __glXSetError(gc, GL_INVALID_VALUE);
4495 emit_header(gc->pc, X_GLrop_PrioritizeTextures, cmdlen);
4496 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 4);
4497 (void) memcpy((void *)(gc->pc + 8), (void *)(textures), safe_mul(n, 4));
4498 (void) memcpy((void *)(gc->pc + 8 + safe_mul(n, 4)), (void *)(priorities), safe_mul(n, 4));
4499 gc->pc += cmdlen;
4500 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4507 struct glx_context * const gc = __glXGetCurrentContext();
4511 __glXSetError(gc, GL_INVALID_VALUE);
4514 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4515 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4516 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4517 (void) __glXFlushRenderBuffer(gc, gc->pc);
4519 emit_header(gc->pc, opcode, cmdlen);
4520 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 4);
4521 (void) memcpy((void *)(gc->pc + 28), (void *)(&level), 4);
4522 (void) memcpy((void *)(gc->pc + 32), (void *)(&xoffset), 4);
4523 (void) memcpy((void *)(gc->pc + 36), (void *)(&yoffset), 4);
4524 (void) memcpy((void *)(gc->pc + 40), (void *)(&width), 4);
4525 (void) memcpy((void *)(gc->pc + 44), (void *)(&height), 4);
4526 (void) memcpy((void *)(gc->pc + 48), (void *)(&format), 4);
4527 (void) memcpy((void *)(gc->pc + 52), (void *)(&type), 4);
4528 (void) memset((void *)(gc->pc + 56), 0, 4);
4530 gc->fillImage(gc, dim, width, height, 1, format, type, pixels, gc->pc + 60, gc->pc + 4);
4532 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
4534 gc->pc += cmdlen;
4535 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4540 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4552 __glXSendLargeImage(gc, compsize, dim, width, height, 1, format, type, pixels, pc + 64, pc + 8);
4572 struct glx_context * const gc = __glXGetCurrentContext();
4574 emit_header(gc->pc, X_GLrop_BlendColor, cmdlen);
4575 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 4);
4576 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
4577 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
4578 (void) memcpy((void *)(gc->pc + 16), (void *)(&alpha), 4);
4579 gc->pc += cmdlen;
4580 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4586 struct glx_context * const gc = __glXGetCurrentContext();
4588 emit_header(gc->pc, X_GLrop_BlendEquation, cmdlen);
4589 (void) memcpy((void *)(gc->pc + 4), (void *)(&mode), 4);
4590 gc->pc += cmdlen;
4591 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4597 struct glx_context * const gc = __glXGetCurrentContext();
4601 __glXSetError(gc, GL_INVALID_VALUE);
4604 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4605 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4606 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4607 (void) __glXFlushRenderBuffer(gc, gc->pc);
4609 emit_header(gc->pc, X_GLrop_ColorTable, cmdlen);
4610 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 4);
4611 (void) memcpy((void *)(gc->pc + 28), (void *)(&internalformat), 4);
4612 (void) memcpy((void *)(gc->pc + 32), (void *)(&width), 4);
4613 (void) memcpy((void *)(gc->pc + 36), (void *)(&format), 4);
4614 (void) memcpy((void *)(gc->pc + 40), (void *)(&type), 4);
4616 gc->fillImage(gc, 1, width, 1, 1, format, type, table, gc->pc + 44, gc->pc + 4);
4618 (void) memcpy( gc->pc + 4, default_pixel_store_1D, default_pixel_store_1D_size );
4620 gc->pc += cmdlen;
4621 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4626 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4634 __glXSendLargeImage(gc, compsize, 1, width, 1, 1, format, type, table, pc + 48, pc + 8);
4642 struct glx_context * const gc = __glXGetCurrentContext();
4646 __glXSetError(gc, GL_INVALID_VALUE);
4649 emit_header(gc->pc, X_GLrop_ColorTableParameterfv, cmdlen);
4650 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
4651 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
4652 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
4653 gc->pc += cmdlen;
4654 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4660 struct glx_context * const gc = __glXGetCurrentContext();
4664 __glXSetError(gc, GL_INVALID_VALUE);
4667 emit_header(gc->pc, X_GLrop_ColorTableParameteriv, cmdlen);
4668 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
4669 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
4670 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
4671 gc->pc += cmdlen;
4672 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4678 struct glx_context * const gc = __glXGetCurrentContext();
4680 emit_header(gc->pc, X_GLrop_CopyColorTable, cmdlen);
4681 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
4682 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 4);
4683 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 4);
4684 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 4);
4685 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 4);
4686 gc->pc += cmdlen;
4687 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4693 struct glx_context * const gc = __glXGetCurrentContext();
4694 const __GLXattribute * const state = gc->client_state_private;
4695 Display * const dpy = gc->currentDpy;
4702 (void) __glXFlushRenderBuffer(gc, gc->pc);
4703 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);
4704 __glEmptyImage(gc, 3, reply->width, 1, 1, format, type, xcb_glx_get_color_table_data(reply), table);
4707 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetColorTable, cmdlen);
4713 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, table, GL_TRUE);
4723 struct glx_context * const gc = __glXGetCurrentContext();
4726 if (gc->isDirect) {
4734 struct glx_context * const gc = __glXGetCurrentContext();
4735 const __GLXattribute * const state = gc->client_state_private;
4736 Display * const dpy = gc->currentDpy;
4739 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetColorTableSGI, cmdlen);
4745 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, table, GL_TRUE);
4755 struct glx_context * const gc = __glXGetCurrentContext();
4756 Display * const dpy = gc->currentDpy;
4763 (void) __glXFlushRenderBuffer(gc, gc->pc);
4764 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);
4773 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetColorTableParameterfv, cmdlen);
4786 struct glx_context * const gc = __glXGetCurrentContext();
4789 if (gc->isDirect) {
4797 struct glx_context * const gc = __glXGetCurrentContext();
4798 Display * const dpy = gc->currentDpy;
4801 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetColorTableParameterfvSGI, cmdlen);
4814 struct glx_context * const gc = __glXGetCurrentContext();
4815 Display * const dpy = gc->currentDpy;
4822 (void) __glXFlushRenderBuffer(gc, gc->pc);
4823 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);
4832 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetColorTableParameteriv, cmdlen);
4845 struct glx_context * const gc = __glXGetCurrentContext();
4848 if (gc->isDirect) {
4856 struct glx_context * const gc = __glXGetCurrentContext();
4857 Display * const dpy = gc->currentDpy;
4860 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetColorTableParameterivSGI, cmdlen);
4873 struct glx_context * const gc = __glXGetCurrentContext();
4877 __glXSetError(gc, GL_INVALID_VALUE);
4880 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4881 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4882 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4883 (void) __glXFlushRenderBuffer(gc, gc->pc);
4885 emit_header(gc->pc, X_GLrop_ColorSubTable, cmdlen);
4886 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 4);
4887 (void) memcpy((void *)(gc->pc + 28), (void *)(&start), 4);
4888 (void) memcpy((void *)(gc->pc + 32), (void *)(&count), 4);
4889 (void) memcpy((void *)(gc->pc + 36), (void *)(&format), 4);
4890 (void) memcpy((void *)(gc->pc + 40), (void *)(&type), 4);
4892 gc->fillImage(gc, 1, count, 1, 1, format, type, data, gc->pc + 44, gc->pc + 4);
4894 (void) memcpy( gc->pc + 4, default_pixel_store_1D, default_pixel_store_1D_size );
4896 gc->pc += cmdlen;
4897 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4902 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4910 __glXSendLargeImage(gc, compsize, 1, count, 1, 1, format, type, data, pc + 48, pc + 8);
4918 struct glx_context * const gc = __glXGetCurrentContext();
4920 emit_header(gc->pc, X_GLrop_CopyColorSubTable, cmdlen);
4921 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
4922 (void) memcpy((void *)(gc->pc + 8), (void *)(&start), 4);
4923 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 4);
4924 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 4);
4925 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 4);
4926 gc->pc += cmdlen;
4927 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4933 struct glx_context * const gc = __glXGetCurrentContext();
4937 __glXSetError(gc, GL_INVALID_VALUE);
4940 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
4941 if (cmdlen <= gc->maxSmallRenderCommandSize) {
4942 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
4943 (void) __glXFlushRenderBuffer(gc, gc->pc);
4945 emit_header(gc->pc, opcode, cmdlen);
4946 (void) memcpy((void *)(gc->pc + 24), (void *)(&target), 4);
4947 (void) memcpy((void *)(gc->pc + 28), (void *)(&internalformat), 4);
4948 (void) memcpy((void *)(gc->pc + 32), (void *)(&width), 4);
4949 (void) memcpy((void *)(gc->pc + 36), (void *)(&height), 4);
4950 (void) memcpy((void *)(gc->pc + 40), (void *)(&format), 4);
4951 (void) memcpy((void *)(gc->pc + 44), (void *)(&type), 4);
4953 gc->fillImage(gc, dim, width, height, 1, format, type, image, gc->pc + 48, gc->pc + 4);
4955 (void) memcpy( gc->pc + 4, default_pixel_store_2D, default_pixel_store_2D_size );
4957 gc->pc += cmdlen;
4958 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
4963 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
4972 __glXSendLargeImage(gc, compsize, dim, width, height, 1, format, type, image, pc + 52, pc + 8);
4992 struct glx_context * const gc = __glXGetCurrentContext();
4994 emit_header(gc->pc, X_GLrop_ConvolutionParameterf, cmdlen);
4995 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
4996 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
4997 (void) memcpy((void *)(gc->pc + 12), (void *)(¶ms), 4);
4998 gc->pc += cmdlen;
4999 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5005 struct glx_context * const gc = __glXGetCurrentContext();
5009 __glXSetError(gc, GL_INVALID_VALUE);
5012 emit_header(gc->pc, X_GLrop_ConvolutionParameterfv, cmdlen);
5013 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5014 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
5015 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
5016 gc->pc += cmdlen;
5017 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5023 struct glx_context * const gc = __glXGetCurrentContext();
5025 emit_header(gc->pc, X_GLrop_ConvolutionParameteri, cmdlen);
5026 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5027 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
5028 (void) memcpy((void *)(gc->pc + 12), (void *)(¶ms), 4);
5029 gc->pc += cmdlen;
5030 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5036 struct glx_context * const gc = __glXGetCurrentContext();
5040 __glXSetError(gc, GL_INVALID_VALUE);
5043 emit_header(gc->pc, X_GLrop_ConvolutionParameteriv, cmdlen);
5044 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5045 (void) memcpy((void *)(gc->pc + 8), (void *)(&pname), 4);
5046 (void) memcpy((void *)(gc->pc + 12), (void *)(params), safe_mul(compsize, 4));
5047 gc->pc += cmdlen;
5048 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5054 struct glx_context * const gc = __glXGetCurrentContext();
5056 emit_header(gc->pc, X_GLrop_CopyConvolutionFilter1D, cmdlen);
5057 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5058 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 4);
5059 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 4);
5060 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 4);
5061 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 4);
5062 gc->pc += cmdlen;
5063 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5069 struct glx_context * const gc = __glXGetCurrentContext();
5071 emit_header(gc->pc, X_GLrop_CopyConvolutionFilter2D, cmdlen);
5072 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5073 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 4);
5074 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 4);
5075 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 4);
5076 (void) memcpy((void *)(gc->pc + 20), (void *)(&width), 4);
5077 (void) memcpy((void *)(gc->pc + 24), (void *)(&height), 4);
5078 gc->pc += cmdlen;
5079 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5085 struct glx_context * const gc = __glXGetCurrentContext();
5086 const __GLXattribute * const state = gc->client_state_private;
5087 Display * const dpy = gc->currentDpy;
5094 (void) __glXFlushRenderBuffer(gc, gc->pc);
5095 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);
5097 __glEmptyImage(gc, 3, reply->width, reply->height, 1, format, type, xcb_glx_get_convolution_filter_data(reply), image);
5100 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionFilter, cmdlen);
5106 __glXReadPixelReply(dpy, gc, 2, 0, 0, 0, format, type, image, GL_TRUE);
5116 struct glx_context * const gc = __glXGetCurrentContext();
5119 if (gc->isDirect) {
5127 struct glx_context * const gc = __glXGetCurrentContext();
5128 const __GLXattribute * const state = gc->client_state_private;
5129 Display * const dpy = gc->currentDpy;
5132 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetConvolutionFilterEXT, cmdlen);
5138 __glXReadPixelReply(dpy, gc, 2, 0, 0, 0, format, type, image, GL_TRUE);
5148 struct glx_context * const gc = __glXGetCurrentContext();
5149 Display * const dpy = gc->currentDpy;
5156 (void) __glXFlushRenderBuffer(gc, gc->pc);
5157 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);
5166 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionParameterfv, cmdlen);
5179 struct glx_context * const gc = __glXGetCurrentContext();
5182 if (gc->isDirect) {
5190 struct glx_context * const gc = __glXGetCurrentContext();
5191 Display * const dpy = gc->currentDpy;
5194 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetConvolutionParameterfvEXT, cmdlen);
5207 struct glx_context * const gc = __glXGetCurrentContext();
5208 Display * const dpy = gc->currentDpy;
5215 (void) __glXFlushRenderBuffer(gc, gc->pc);
5216 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);
5225 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetConvolutionParameteriv, cmdlen);
5238 struct glx_context * const gc = __glXGetCurrentContext();
5241 if (gc->isDirect) {
5249 struct glx_context * const gc = __glXGetCurrentContext();
5250 Display * const dpy = gc->currentDpy;
5253 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetConvolutionParameterivEXT, cmdlen);
5266 struct glx_context * const gc = __glXGetCurrentContext();
5267 const __GLXattribute * const state = gc->client_state_private;
5268 Display * const dpy = gc->currentDpy;
5275 (void) __glXFlushRenderBuffer(gc, gc->pc);
5276 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);
5277 __glEmptyImage(gc, 3, reply->width, 1, 1, format, type, xcb_glx_get_histogram_data(reply), values);
5280 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetHistogram, cmdlen);
5287 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, values, GL_TRUE);
5297 struct glx_context * const gc = __glXGetCurrentContext();
5300 if (gc->isDirect) {
5308 struct glx_context * const gc = __glXGetCurrentContext();
5309 const __GLXattribute * const state = gc->client_state_private;
5310 Display * const dpy = gc->currentDpy;
5313 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetHistogramEXT, cmdlen);
5320 __glXReadPixelReply(dpy, gc, 1, 0, 0, 0, format, type, values, GL_TRUE);
5330 struct glx_context * const gc = __glXGetCurrentContext();
5331 Display * const dpy = gc->currentDpy;
5338 (void) __glXFlushRenderBuffer(gc, gc->pc);
5339 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);
5348 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetHistogramParameterfv, cmdlen);
5361 struct glx_context * const gc = __glXGetCurrentContext();
5364 if (gc->isDirect) {
5372 struct glx_context * const gc = __glXGetCurrentContext();
5373 Display * const dpy = gc->currentDpy;
5376 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetHistogramParameterfvEXT, cmdlen);
5389 struct glx_context * const gc = __glXGetCurrentContext();
5390 Display * const dpy = gc->currentDpy;
5397 (void) __glXFlushRenderBuffer(gc, gc->pc);
5398 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);
5407 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetHistogramParameteriv, cmdlen);
5420 struct glx_context * const gc = __glXGetCurrentContext();
5423 if (gc->isDirect) {
5431 struct glx_context * const gc = __glXGetCurrentContext();
5432 Display * const dpy = gc->currentDpy;
5435 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetHistogramParameterivEXT, cmdlen);
5448 struct glx_context * const gc = __glXGetCurrentContext();
5449 const __GLXattribute * const state = gc->client_state_private;
5450 Display * const dpy = gc->currentDpy;
5457 (void) __glXFlushRenderBuffer(gc, gc->pc);
5458 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);
5459 __glEmptyImage(gc, 3, 2, 1, 1, format, type, xcb_glx_get_minmax_data(reply), values);
5462 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMinmax, cmdlen);
5469 __glXReadPixelReply(dpy, gc, 1, 2, 1, 1, format, type, values, GL_FALSE);
5479 struct glx_context * const gc = __glXGetCurrentContext();
5482 if (gc->isDirect) {
5490 struct glx_context * const gc = __glXGetCurrentContext();
5491 const __GLXattribute * const state = gc->client_state_private;
5492 Display * const dpy = gc->currentDpy;
5495 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetMinmaxEXT, cmdlen);
5502 __glXReadPixelReply(dpy, gc, 1, 2, 1, 1, format, type, values, GL_FALSE);
5512 struct glx_context * const gc = __glXGetCurrentContext();
5513 Display * const dpy = gc->currentDpy;
5520 (void) __glXFlushRenderBuffer(gc, gc->pc);
5521 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);
5530 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMinmaxParameterfv, cmdlen);
5543 struct glx_context * const gc = __glXGetCurrentContext();
5546 if (gc->isDirect) {
5554 struct glx_context * const gc = __glXGetCurrentContext();
5555 Display * const dpy = gc->currentDpy;
5558 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetMinmaxParameterfvEXT, cmdlen);
5571 struct glx_context * const gc = __glXGetCurrentContext();
5572 Display * const dpy = gc->currentDpy;
5579 (void) __glXFlushRenderBuffer(gc, gc->pc);
5580 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);
5589 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetMinmaxParameteriv, cmdlen);
5602 struct glx_context * const gc = __glXGetCurrentContext();
5605 if (gc->isDirect) {
5613 struct glx_context * const gc = __glXGetCurrentContext();
5614 Display * const dpy = gc->currentDpy;
5617 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetMinmaxParameterivEXT, cmdlen);
5630 struct glx_context * const gc = __glXGetCurrentContext();
5632 emit_header(gc->pc, X_GLrop_Histogram, cmdlen);
5633 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5634 (void) memcpy((void *)(gc->pc + 8), (void *)(&width), 4);
5635 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 4);
5636 (void) memcpy((void *)(gc->pc + 16), (void *)(&sink), 1);
5637 gc->pc += cmdlen;
5638 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5644 struct glx_context * const gc = __glXGetCurrentContext();
5646 emit_header(gc->pc, X_GLrop_Minmax, cmdlen);
5647 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5648 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 4);
5649 (void) memcpy((void *)(gc->pc + 12), (void *)(&sink), 1);
5650 gc->pc += cmdlen;
5651 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5657 struct glx_context * const gc = __glXGetCurrentContext();
5659 emit_header(gc->pc, X_GLrop_ResetHistogram, cmdlen);
5660 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5661 gc->pc += cmdlen;
5662 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5668 struct glx_context * const gc = __glXGetCurrentContext();
5670 emit_header(gc->pc, X_GLrop_ResetMinmax, cmdlen);
5671 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5672 gc->pc += cmdlen;
5673 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5679 struct glx_context * const gc = __glXGetCurrentContext();
5683 __glXSetError(gc, GL_INVALID_VALUE);
5686 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
5687 if (cmdlen <= gc->maxSmallRenderCommandSize) {
5688 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
5689 (void) __glXFlushRenderBuffer(gc, gc->pc);
5691 emit_header(gc->pc, opcode, cmdlen);
5692 (void) memcpy((void *)(gc->pc + 40), (void *)(&target), 4);
5693 (void) memcpy((void *)(gc->pc + 44), (void *)(&level), 4);
5694 (void) memcpy((void *)(gc->pc + 48), (void *)(&internalformat), 4);
5695 (void) memcpy((void *)(gc->pc + 52), (void *)(&width), 4);
5696 (void) memcpy((void *)(gc->pc + 56), (void *)(&height), 4);
5697 (void) memcpy((void *)(gc->pc + 60), (void *)(&depth), 4);
5698 (void) memcpy((void *)(gc->pc + 64), (void *)(&extent), 4);
5699 (void) memcpy((void *)(gc->pc + 68), (void *)(&border), 4);
5700 (void) memcpy((void *)(gc->pc + 72), (void *)(&format), 4);
5701 (void) memcpy((void *)(gc->pc + 76), (void *)(&type), 4);
5702 (void) memcpy((void *)(gc->pc + 80), (void *)((pixels == NULL) ? one : zero), 4);
5704 gc->fillImage(gc, dim, width, height, depth, format, type, pixels, gc->pc + 84, gc->pc + 4);
5706 (void) memcpy( gc->pc + 4, default_pixel_store_4D, default_pixel_store_4D_size );
5708 gc->pc += cmdlen;
5709 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5714 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
5728 __glXSendLargeImage(gc, compsize, dim, width, height, depth, format, type, pixels, pc + 88, pc + 8);
5742 struct glx_context * const gc = __glXGetCurrentContext();
5746 __glXSetError(gc, GL_INVALID_VALUE);
5749 if (__builtin_expect(gc->currentDpy != NULL, 1)) {
5750 if (cmdlen <= gc->maxSmallRenderCommandSize) {
5751 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
5752 (void) __glXFlushRenderBuffer(gc, gc->pc);
5754 emit_header(gc->pc, opcode, cmdlen);
5755 (void) memcpy((void *)(gc->pc + 40), (void *)(&target), 4);
5756 (void) memcpy((void *)(gc->pc + 44), (void *)(&level), 4);
5757 (void) memcpy((void *)(gc->pc + 48), (void *)(&xoffset), 4);
5758 (void) memcpy((void *)(gc->pc + 52), (void *)(&yoffset), 4);
5759 (void) memcpy((void *)(gc->pc + 56), (void *)(&zoffset), 4);
5760 (void) memcpy((void *)(gc->pc + 60), (void *)(&woffset), 4);
5761 (void) memcpy((void *)(gc->pc + 64), (void *)(&width), 4);
5762 (void) memcpy((void *)(gc->pc + 68), (void *)(&height), 4);
5763 (void) memcpy((void *)(gc->pc + 72), (void *)(&depth), 4);
5764 (void) memcpy((void *)(gc->pc + 76), (void *)(&extent), 4);
5765 (void) memcpy((void *)(gc->pc + 80), (void *)(&format), 4);
5766 (void) memcpy((void *)(gc->pc + 84), (void *)(&type), 4);
5767 (void) memset((void *)(gc->pc + 88), 0, 4);
5769 gc->fillImage(gc, dim, width, height, depth, format, type, pixels, gc->pc + 92, gc->pc + 4);
5771 (void) memcpy( gc->pc + 4, default_pixel_store_4D, default_pixel_store_4D_size );
5773 gc->pc += cmdlen;
5774 if (gc->pc > gc->limit) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5779 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
5795 __glXSendLargeImage(gc, compsize, dim, width, height, depth, format, type, pixels, pc + 96, pc + 8);
5809 struct glx_context * const gc = __glXGetCurrentContext();
5811 emit_header(gc->pc, X_GLrop_CopyTexSubImage3D, cmdlen);
5812 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5813 (void) memcpy((void *)(gc->pc + 8), (void *)(&level), 4);
5814 (void) memcpy((void *)(gc->pc + 12), (void *)(&xoffset), 4);
5815 (void) memcpy((void *)(gc->pc + 16), (void *)(&yoffset), 4);
5816 (void) memcpy((void *)(gc->pc + 20), (void *)(&zoffset), 4);
5817 (void) memcpy((void *)(gc->pc + 24), (void *)(&x), 4);
5818 (void) memcpy((void *)(gc->pc + 28), (void *)(&y), 4);
5819 (void) memcpy((void *)(gc->pc + 32), (void *)(&width), 4);
5820 (void) memcpy((void *)(gc->pc + 36), (void *)(&height), 4);
5821 gc->pc += cmdlen;
5822 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5828 struct glx_context * const gc = __glXGetCurrentContext();
5830 emit_header(gc->pc, X_GLrop_ActiveTexture, cmdlen);
5831 (void) memcpy((void *)(gc->pc + 4), (void *)(&texture), 4);
5832 gc->pc += cmdlen;
5833 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5839 struct glx_context * const gc = __glXGetCurrentContext();
5841 emit_header(gc->pc, X_GLrop_MultiTexCoord1dv, cmdlen);
5842 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 8);
5843 (void) memcpy((void *)(gc->pc + 12), (void *)(&target), 4);
5844 gc->pc += cmdlen;
5845 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5851 struct glx_context * const gc = __glXGetCurrentContext();
5853 emit_header(gc->pc, X_GLrop_MultiTexCoord1dv, cmdlen);
5854 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 8);
5855 (void) memcpy((void *)(gc->pc + 12), (void *)(&target), 4);
5856 gc->pc += cmdlen;
5857 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5863 struct glx_context * const gc = __glXGetCurrentContext();
5865 emit_header(gc->pc, X_GLrop_MultiTexCoord1fvARB, cmdlen);
5866 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5867 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
5868 gc->pc += cmdlen;
5869 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5875 struct glx_context * const gc = __glXGetCurrentContext();
5877 emit_header(gc->pc, X_GLrop_MultiTexCoord1fvARB, cmdlen);
5878 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5879 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
5880 gc->pc += cmdlen;
5881 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5887 struct glx_context * const gc = __glXGetCurrentContext();
5889 emit_header(gc->pc, X_GLrop_MultiTexCoord1iv, cmdlen);
5890 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5891 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
5892 gc->pc += cmdlen;
5893 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5899 struct glx_context * const gc = __glXGetCurrentContext();
5901 emit_header(gc->pc, X_GLrop_MultiTexCoord1iv, cmdlen);
5902 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5903 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
5904 gc->pc += cmdlen;
5905 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5911 struct glx_context * const gc = __glXGetCurrentContext();
5913 emit_header(gc->pc, X_GLrop_MultiTexCoord1sv, cmdlen);
5914 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5915 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 2);
5916 gc->pc += cmdlen;
5917 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5923 struct glx_context * const gc = __glXGetCurrentContext();
5925 emit_header(gc->pc, X_GLrop_MultiTexCoord1sv, cmdlen);
5926 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5927 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2);
5928 gc->pc += cmdlen;
5929 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5935 struct glx_context * const gc = __glXGetCurrentContext();
5937 emit_header(gc->pc, X_GLrop_MultiTexCoord2dv, cmdlen);
5938 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 8);
5939 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 8);
5940 (void) memcpy((void *)(gc->pc + 20), (void *)(&target), 4);
5941 gc->pc += cmdlen;
5942 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5948 struct glx_context * const gc = __glXGetCurrentContext();
5950 emit_header(gc->pc, X_GLrop_MultiTexCoord2dv, cmdlen);
5951 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 16);
5952 (void) memcpy((void *)(gc->pc + 20), (void *)(&target), 4);
5953 gc->pc += cmdlen;
5954 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5960 struct glx_context * const gc = __glXGetCurrentContext();
5962 emit_header(gc->pc, X_GLrop_MultiTexCoord2fvARB, cmdlen);
5963 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5964 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
5965 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 4);
5966 gc->pc += cmdlen;
5967 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5973 struct glx_context * const gc = __glXGetCurrentContext();
5975 emit_header(gc->pc, X_GLrop_MultiTexCoord2fvARB, cmdlen);
5976 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5977 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
5978 gc->pc += cmdlen;
5979 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5985 struct glx_context * const gc = __glXGetCurrentContext();
5987 emit_header(gc->pc, X_GLrop_MultiTexCoord2iv, cmdlen);
5988 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
5989 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
5990 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 4);
5991 gc->pc += cmdlen;
5992 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
5998 struct glx_context * const gc = __glXGetCurrentContext();
6000 emit_header(gc->pc, X_GLrop_MultiTexCoord2iv, cmdlen);
6001 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6002 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
6003 gc->pc += cmdlen;
6004 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6010 struct glx_context * const gc = __glXGetCurrentContext();
6012 emit_header(gc->pc, X_GLrop_MultiTexCoord2sv, cmdlen);
6013 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6014 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 2);
6015 (void) memcpy((void *)(gc->pc + 10), (void *)(&t), 2);
6016 gc->pc += cmdlen;
6017 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6023 struct glx_context * const gc = __glXGetCurrentContext();
6025 emit_header(gc->pc, X_GLrop_MultiTexCoord2sv, cmdlen);
6026 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6027 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
6028 gc->pc += cmdlen;
6029 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6035 struct glx_context * const gc = __glXGetCurrentContext();
6037 emit_header(gc->pc, X_GLrop_MultiTexCoord3dv, cmdlen);
6038 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 8);
6039 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 8);
6040 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 8);
6041 (void) memcpy((void *)(gc->pc + 28), (void *)(&target), 4);
6042 gc->pc += cmdlen;
6043 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6049 struct glx_context * const gc = __glXGetCurrentContext();
6051 emit_header(gc->pc, X_GLrop_MultiTexCoord3dv, cmdlen);
6052 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 24);
6053 (void) memcpy((void *)(gc->pc + 28), (void *)(&target), 4);
6054 gc->pc += cmdlen;
6055 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6061 struct glx_context * const gc = __glXGetCurrentContext();
6063 emit_header(gc->pc, X_GLrop_MultiTexCoord3fvARB, cmdlen);
6064 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6065 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
6066 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 4);
6067 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 4);
6068 gc->pc += cmdlen;
6069 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6075 struct glx_context * const gc = __glXGetCurrentContext();
6077 emit_header(gc->pc, X_GLrop_MultiTexCoord3fvARB, cmdlen);
6078 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6079 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 12);
6080 gc->pc += cmdlen;
6081 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6087 struct glx_context * const gc = __glXGetCurrentContext();
6089 emit_header(gc->pc, X_GLrop_MultiTexCoord3iv, cmdlen);
6090 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6091 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
6092 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 4);
6093 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 4);
6094 gc->pc += cmdlen;
6095 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6101 struct glx_context * const gc = __glXGetCurrentContext();
6103 emit_header(gc->pc, X_GLrop_MultiTexCoord3iv, cmdlen);
6104 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6105 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 12);
6106 gc->pc += cmdlen;
6107 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6113 struct glx_context * const gc = __glXGetCurrentContext();
6115 emit_header(gc->pc, X_GLrop_MultiTexCoord3sv, cmdlen);
6116 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6117 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 2);
6118 (void) memcpy((void *)(gc->pc + 10), (void *)(&t), 2);
6119 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 2);
6120 gc->pc += cmdlen;
6121 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6127 struct glx_context * const gc = __glXGetCurrentContext();
6129 emit_header(gc->pc, X_GLrop_MultiTexCoord3sv, cmdlen);
6130 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6131 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 6);
6132 gc->pc += cmdlen;
6133 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6139 struct glx_context * const gc = __glXGetCurrentContext();
6141 emit_header(gc->pc, X_GLrop_MultiTexCoord4dv, cmdlen);
6142 (void) memcpy((void *)(gc->pc + 4), (void *)(&s), 8);
6143 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 8);
6144 (void) memcpy((void *)(gc->pc + 20), (void *)(&r), 8);
6145 (void) memcpy((void *)(gc->pc + 28), (void *)(&q), 8);
6146 (void) memcpy((void *)(gc->pc + 36), (void *)(&target), 4);
6147 gc->pc += cmdlen;
6148 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6154 struct glx_context * const gc = __glXGetCurrentContext();
6156 emit_header(gc->pc, X_GLrop_MultiTexCoord4dv, cmdlen);
6157 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 32);
6158 (void) memcpy((void *)(gc->pc + 36), (void *)(&target), 4);
6159 gc->pc += cmdlen;
6160 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6166 struct glx_context * const gc = __glXGetCurrentContext();
6168 emit_header(gc->pc, X_GLrop_MultiTexCoord4fvARB, cmdlen);
6169 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6170 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
6171 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 4);
6172 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 4);
6173 (void) memcpy((void *)(gc->pc + 20), (void *)(&q), 4);
6174 gc->pc += cmdlen;
6175 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6181 struct glx_context * const gc = __glXGetCurrentContext();
6183 emit_header(gc->pc, X_GLrop_MultiTexCoord4fvARB, cmdlen);
6184 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6185 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
6186 gc->pc += cmdlen;
6187 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6193 struct glx_context * const gc = __glXGetCurrentContext();
6195 emit_header(gc->pc, X_GLrop_MultiTexCoord4iv, cmdlen);
6196 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6197 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 4);
6198 (void) memcpy((void *)(gc->pc + 12), (void *)(&t), 4);
6199 (void) memcpy((void *)(gc->pc + 16), (void *)(&r), 4);
6200 (void) memcpy((void *)(gc->pc + 20), (void *)(&q), 4);
6201 gc->pc += cmdlen;
6202 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6208 struct glx_context * const gc = __glXGetCurrentContext();
6210 emit_header(gc->pc, X_GLrop_MultiTexCoord4iv, cmdlen);
6211 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6212 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
6213 gc->pc += cmdlen;
6214 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6220 struct glx_context * const gc = __glXGetCurrentContext();
6222 emit_header(gc->pc, X_GLrop_MultiTexCoord4sv, cmdlen);
6223 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6224 (void) memcpy((void *)(gc->pc + 8), (void *)(&s), 2);
6225 (void) memcpy((void *)(gc->pc + 10), (void *)(&t), 2);
6226 (void) memcpy((void *)(gc->pc + 12), (void *)(&r), 2);
6227 (void) memcpy((void *)(gc->pc + 14), (void *)(&q), 2);
6228 gc->pc += cmdlen;
6229 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6235 struct glx_context * const gc = __glXGetCurrentContext();
6237 emit_header(gc->pc, X_GLrop_MultiTexCoord4sv, cmdlen);
6238 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6239 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
6240 gc->pc += cmdlen;
6241 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6247 struct glx_context * const gc = __glXGetCurrentContext();
6249 emit_header(gc->pc, X_GLrop_SampleCoverage, cmdlen);
6250 (void) memcpy((void *)(gc->pc + 4), (void *)(&value), 4);
6251 (void) memcpy((void *)(gc->pc + 8), (void *)(&invert), 1);
6252 gc->pc += cmdlen;
6253 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6259 struct glx_context * const gc = __glXGetCurrentContext();
6261 emit_header(gc->pc, X_GLrop_BlendFuncSeparate, cmdlen);
6262 (void) memcpy((void *)(gc->pc + 4), (void *)(&sfactorRGB), 4);
6263 (void) memcpy((void *)(gc->pc + 8), (void *)(&dfactorRGB), 4);
6264 (void) memcpy((void *)(gc->pc + 12), (void *)(&sfactorAlpha), 4);
6265 (void) memcpy((void *)(gc->pc + 16), (void *)(&dfactorAlpha), 4);
6266 gc->pc += cmdlen;
6267 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6273 struct glx_context * const gc = __glXGetCurrentContext();
6275 emit_header(gc->pc, X_GLrop_FogCoorddv, cmdlen);
6276 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 8);
6277 gc->pc += cmdlen;
6278 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6290 struct glx_context * const gc = __glXGetCurrentContext();
6292 emit_header(gc->pc, X_GLrop_PointParameterf, cmdlen);
6293 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 4);
6294 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
6295 gc->pc += cmdlen;
6296 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6302 struct glx_context * const gc = __glXGetCurrentContext();
6306 __glXSetError(gc, GL_INVALID_VALUE);
6309 emit_header(gc->pc, X_GLrop_PointParameterfv, cmdlen);
6310 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 4);
6311 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 4));
6312 gc->pc += cmdlen;
6313 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6319 struct glx_context * const gc = __glXGetCurrentContext();
6321 emit_header(gc->pc, X_GLrop_PointParameteri, cmdlen);
6322 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 4);
6323 (void) memcpy((void *)(gc->pc + 8), (void *)(¶m), 4);
6324 gc->pc += cmdlen;
6325 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6331 struct glx_context * const gc = __glXGetCurrentContext();
6335 __glXSetError(gc, GL_INVALID_VALUE);
6338 emit_header(gc->pc, X_GLrop_PointParameteriv, cmdlen);
6339 (void) memcpy((void *)(gc->pc + 4), (void *)(&pname), 4);
6340 (void) memcpy((void *)(gc->pc + 8), (void *)(params), safe_mul(compsize, 4));
6341 gc->pc += cmdlen;
6342 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6348 struct glx_context * const gc = __glXGetCurrentContext();
6350 emit_header(gc->pc, X_GLrop_SecondaryColor3bv, cmdlen);
6351 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1);
6352 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1);
6353 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1);
6354 gc->pc += cmdlen;
6355 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6367 struct glx_context * const gc = __glXGetCurrentContext();
6369 emit_header(gc->pc, X_GLrop_SecondaryColor3dv, cmdlen);
6370 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 8);
6371 (void) memcpy((void *)(gc->pc + 12), (void *)(&green), 8);
6372 (void) memcpy((void *)(gc->pc + 20), (void *)(&blue), 8);
6373 gc->pc += cmdlen;
6374 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6386 struct glx_context * const gc = __glXGetCurrentContext();
6388 emit_header(gc->pc, X_GLrop_SecondaryColor3iv, cmdlen);
6389 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 4);
6390 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
6391 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
6392 gc->pc += cmdlen;
6393 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6405 struct glx_context * const gc = __glXGetCurrentContext();
6407 emit_header(gc->pc, X_GLrop_SecondaryColor3sv, cmdlen);
6408 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 2);
6409 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 2);
6410 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 2);
6411 gc->pc += cmdlen;
6412 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6424 struct glx_context * const gc = __glXGetCurrentContext();
6426 emit_header(gc->pc, X_GLrop_SecondaryColor3ubv, cmdlen);
6427 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 1);
6428 (void) memcpy((void *)(gc->pc + 5), (void *)(&green), 1);
6429 (void) memcpy((void *)(gc->pc + 6), (void *)(&blue), 1);
6430 gc->pc += cmdlen;
6431 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6443 struct glx_context * const gc = __glXGetCurrentContext();
6445 emit_header(gc->pc, X_GLrop_SecondaryColor3uiv, cmdlen);
6446 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 4);
6447 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
6448 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
6449 gc->pc += cmdlen;
6450 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6462 struct glx_context * const gc = __glXGetCurrentContext();
6464 emit_header(gc->pc, X_GLrop_SecondaryColor3usv, cmdlen);
6465 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 2);
6466 (void) memcpy((void *)(gc->pc + 6), (void *)(&green), 2);
6467 (void) memcpy((void *)(gc->pc + 8), (void *)(&blue), 2);
6468 gc->pc += cmdlen;
6469 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6481 struct glx_context * const gc = __glXGetCurrentContext();
6483 emit_header(gc->pc, X_GLrop_WindowPos3fv, cmdlen);
6484 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 4);
6485 (void) memcpy((void *)(gc->pc + 8), (void *)(&y), 4);
6486 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 4);
6487 gc->pc += cmdlen;
6488 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6500 struct glx_context * const gc = __glXGetCurrentContext();
6502 emit_header(gc->pc, X_GLrop_BeginQuery, cmdlen);
6503 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6504 (void) memcpy((void *)(gc->pc + 8), (void *)(&id), 4);
6505 gc->pc += cmdlen;
6506 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6512 struct glx_context * const gc = __glXGetCurrentContext();
6513 Display * const dpy = gc->currentDpy;
6518 __glXSetError(gc, GL_INVALID_VALUE);
6522 __glXSetError(gc, GL_INVALID_VALUE);
6528 (void) __glXFlushRenderBuffer(gc, gc->pc);
6529 xcb_glx_delete_queries(c, gc->currentContextTag, n, ids);
6531 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_DeleteQueries, cmdlen);
6543 struct glx_context * const gc = __glXGetCurrentContext();
6545 emit_header(gc->pc, X_GLrop_EndQuery, cmdlen);
6546 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
6547 gc->pc += cmdlen;
6548 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6554 struct glx_context * const gc = __glXGetCurrentContext();
6555 Display * const dpy = gc->currentDpy;
6560 __glXSetError(gc, GL_INVALID_VALUE);
6566 (void) __glXFlushRenderBuffer(gc, gc->pc);
6567 xcb_glx_gen_queries_reply_t *reply = xcb_glx_gen_queries_reply(c, xcb_glx_gen_queries(c, gc->currentContextTag, n), NULL);
6571 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GenQueries, cmdlen);
6583 struct glx_context * const gc = __glXGetCurrentContext();
6584 Display * const dpy = gc->currentDpy;
6591 (void) __glXFlushRenderBuffer(gc, gc->pc);
6592 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);
6601 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetQueryObjectiv, cmdlen);
6614 struct glx_context * const gc = __glXGetCurrentContext();
6615 Display * const dpy = gc->currentDpy;
6622 (void) __glXFlushRenderBuffer(gc, gc->pc);
6623 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);
6632 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetQueryObjectuiv, cmdlen);
6645 struct glx_context * const gc = __glXGetCurrentContext();
6646 Display * const dpy = gc->currentDpy;
6653 (void) __glXFlushRenderBuffer(gc, gc->pc);
6654 xcb_glx_get_queryiv_reply_t *reply = xcb_glx_get_queryiv_reply(c, xcb_glx_get_queryiv(c, gc->currentContextTag, target, pname), NULL);
6663 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GetQueryiv, cmdlen);
6676 struct glx_context * const gc = __glXGetCurrentContext();
6677 Display * const dpy = gc->currentDpy;
6685 (void) __glXFlushRenderBuffer(gc, gc->pc);
6686 xcb_glx_is_query_reply_t *reply = xcb_glx_is_query_reply(c, xcb_glx_is_query(c, gc->currentContextTag, id), NULL);
6690 GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_IsQuery, cmdlen);
6702 struct glx_context * const gc = __glXGetCurrentContext();
6704 emit_header(gc->pc, X_GLrop_BlendEquationSeparate, cmdlen);
6705 (void) memcpy((void *)(gc->pc + 4), (void *)(&modeRGB), 4);
6706 (void) memcpy((void *)(gc->pc + 8), (void *)(&modeA), 4);
6707 gc->pc += cmdlen;
6708 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6714 struct glx_context * const gc = __glXGetCurrentContext();
6717 __glXSetError(gc, GL_INVALID_VALUE);
6721 __glXSetError(gc, GL_INVALID_VALUE);
6724 if (__builtin_expect((n >= 0) && (gc->currentDpy != NULL), 1)) {
6725 if (cmdlen <= gc->maxSmallRenderCommandSize) {
6726 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
6727 (void) __glXFlushRenderBuffer(gc, gc->pc);
6729 emit_header(gc->pc, X_GLrop_DrawBuffers, cmdlen);
6730 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 4);
6731 (void) memcpy((void *)(gc->pc + 8), (void *)(bufs), safe_mul(n, 4));
6732 gc->pc += cmdlen;
6733 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6738 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
6742 __glXSendLargeCommand(gc, pc, 12, bufs, safe_mul(n, 4));
6750 struct glx_context * const gc = __glXGetCurrentContext();
6752 emit_header(gc->pc, X_GLrop_VertexAttrib1dv, cmdlen);
6753 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6754 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
6755 gc->pc += cmdlen;
6756 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6762 struct glx_context * const gc = __glXGetCurrentContext();
6764 emit_header(gc->pc, X_GLrop_VertexAttrib1dv, cmdlen);
6765 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6766 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
6767 gc->pc += cmdlen;
6768 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6774 struct glx_context * const gc = __glXGetCurrentContext();
6776 emit_header(gc->pc, X_GLrop_VertexAttrib1sv, cmdlen);
6777 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6778 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
6779 gc->pc += cmdlen;
6780 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6786 struct glx_context * const gc = __glXGetCurrentContext();
6788 emit_header(gc->pc, X_GLrop_VertexAttrib1sv, cmdlen);
6789 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6790 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2);
6791 gc->pc += cmdlen;
6792 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6798 struct glx_context * const gc = __glXGetCurrentContext();
6800 emit_header(gc->pc, X_GLrop_VertexAttrib2dv, cmdlen);
6801 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6802 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
6803 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 8);
6804 gc->pc += cmdlen;
6805 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6811 struct glx_context * const gc = __glXGetCurrentContext();
6813 emit_header(gc->pc, X_GLrop_VertexAttrib2dv, cmdlen);
6814 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6815 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
6816 gc->pc += cmdlen;
6817 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6823 struct glx_context * const gc = __glXGetCurrentContext();
6825 emit_header(gc->pc, X_GLrop_VertexAttrib2sv, cmdlen);
6826 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6827 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
6828 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 2);
6829 gc->pc += cmdlen;
6830 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6836 struct glx_context * const gc = __glXGetCurrentContext();
6838 emit_header(gc->pc, X_GLrop_VertexAttrib2sv, cmdlen);
6839 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6840 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
6841 gc->pc += cmdlen;
6842 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6848 struct glx_context * const gc = __glXGetCurrentContext();
6850 emit_header(gc->pc, X_GLrop_VertexAttrib3dv, cmdlen);
6851 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6852 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
6853 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 8);
6854 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 8);
6855 gc->pc += cmdlen;
6856 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6862 struct glx_context * const gc = __glXGetCurrentContext();
6864 emit_header(gc->pc, X_GLrop_VertexAttrib3dv, cmdlen);
6865 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6866 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 24);
6867 gc->pc += cmdlen;
6868 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6874 struct glx_context * const gc = __glXGetCurrentContext();
6876 emit_header(gc->pc, X_GLrop_VertexAttrib3sv, cmdlen);
6877 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6878 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
6879 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 2);
6880 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 2);
6881 gc->pc += cmdlen;
6882 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6888 struct glx_context * const gc = __glXGetCurrentContext();
6890 emit_header(gc->pc, X_GLrop_VertexAttrib3sv, cmdlen);
6891 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6892 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 6);
6893 gc->pc += cmdlen;
6894 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6900 struct glx_context * const gc = __glXGetCurrentContext();
6902 emit_header(gc->pc, X_GLrop_VertexAttrib4Nbv, cmdlen);
6903 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6904 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
6905 gc->pc += cmdlen;
6906 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6912 struct glx_context * const gc = __glXGetCurrentContext();
6914 emit_header(gc->pc, X_GLrop_VertexAttrib4Niv, cmdlen);
6915 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6916 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
6917 gc->pc += cmdlen;
6918 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6924 struct glx_context * const gc = __glXGetCurrentContext();
6926 emit_header(gc->pc, X_GLrop_VertexAttrib4Nsv, cmdlen);
6927 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6928 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
6929 gc->pc += cmdlen;
6930 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6936 struct glx_context * const gc = __glXGetCurrentContext();
6938 emit_header(gc->pc, X_GLrop_VertexAttrib4Nubv, cmdlen);
6939 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6940 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1);
6941 (void) memcpy((void *)(gc->pc + 9), (void *)(&y), 1);
6942 (void) memcpy((void *)(gc->pc + 10), (void *)(&z), 1);
6943 (void) memcpy((void *)(gc->pc + 11), (void *)(&w), 1);
6944 gc->pc += cmdlen;
6945 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6951 struct glx_context * const gc = __glXGetCurrentContext();
6953 emit_header(gc->pc, X_GLrop_VertexAttrib4Nubv, cmdlen);
6954 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6955 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
6956 gc->pc += cmdlen;
6957 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6963 struct glx_context * const gc = __glXGetCurrentContext();
6965 emit_header(gc->pc, X_GLrop_VertexAttrib4Nuiv, cmdlen);
6966 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6967 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
6968 gc->pc += cmdlen;
6969 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6975 struct glx_context * const gc = __glXGetCurrentContext();
6977 emit_header(gc->pc, X_GLrop_VertexAttrib4Nusv, cmdlen);
6978 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6979 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
6980 gc->pc += cmdlen;
6981 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6987 struct glx_context * const gc = __glXGetCurrentContext();
6989 emit_header(gc->pc, X_GLrop_VertexAttrib4bv, cmdlen);
6990 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
6991 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
6992 gc->pc += cmdlen;
6993 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
6999 struct glx_context * const gc = __glXGetCurrentContext();
7001 emit_header(gc->pc, X_GLrop_VertexAttrib4dv, cmdlen);
7002 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7003 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
7004 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 8);
7005 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 8);
7006 (void) memcpy((void *)(gc->pc + 32), (void *)(&w), 8);
7007 gc->pc += cmdlen;
7008 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7014 struct glx_context * const gc = __glXGetCurrentContext();
7016 emit_header(gc->pc, X_GLrop_VertexAttrib4dv, cmdlen);
7017 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7018 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 32);
7019 gc->pc += cmdlen;
7020 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7026 struct glx_context * const gc = __glXGetCurrentContext();
7028 emit_header(gc->pc, X_GLrop_VertexAttrib4iv, cmdlen);
7029 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7030 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
7031 gc->pc += cmdlen;
7032 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7038 struct glx_context * const gc = __glXGetCurrentContext();
7040 emit_header(gc->pc, X_GLrop_VertexAttrib4sv, cmdlen);
7041 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7042 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
7043 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 2);
7044 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 2);
7045 (void) memcpy((void *)(gc->pc + 14), (void *)(&w), 2);
7046 gc->pc += cmdlen;
7047 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7053 struct glx_context * const gc = __glXGetCurrentContext();
7055 emit_header(gc->pc, X_GLrop_VertexAttrib4sv, cmdlen);
7056 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7057 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
7058 gc->pc += cmdlen;
7059 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7065 struct glx_context * const gc = __glXGetCurrentContext();
7067 emit_header(gc->pc, X_GLrop_VertexAttrib4ubv, cmdlen);
7068 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7069 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
7070 gc->pc += cmdlen;
7071 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7077 struct glx_context * const gc = __glXGetCurrentContext();
7079 emit_header(gc->pc, X_GLrop_VertexAttrib4uiv, cmdlen);
7080 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7081 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
7082 gc->pc += cmdlen;
7083 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7089 struct glx_context * const gc = __glXGetCurrentContext();
7091 emit_header(gc->pc, X_GLrop_VertexAttrib4usv, cmdlen);
7092 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7093 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
7094 gc->pc += cmdlen;
7095 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7101 struct glx_context * const gc = __glXGetCurrentContext();
7103 emit_header(gc->pc, X_GLrop_ClampColor, cmdlen);
7104 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7105 (void) memcpy((void *)(gc->pc + 8), (void *)(&clamp), 4);
7106 gc->pc += cmdlen;
7107 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7113 struct glx_context * const gc = __glXGetCurrentContext();
7115 emit_header(gc->pc, X_GLrop_BindProgramARB, cmdlen);
7116 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7117 (void) memcpy((void *)(gc->pc + 8), (void *)(&program), 4);
7118 gc->pc += cmdlen;
7119 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7125 struct glx_context * const gc = __glXGetCurrentContext();
7126 Display * const dpy = gc->currentDpy;
7129 __glXSetError(gc, GL_INVALID_VALUE);
7133 __glXSetError(gc, GL_INVALID_VALUE);
7137 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivate, X_GLvop_DeleteProgramsARB, cmdlen);
7148 struct glx_context * const gc = __glXGetCurrentContext();
7149 Display * const dpy = gc->currentDpy;
7152 __glXSetError(gc, GL_INVALID_VALUE);
7156 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenProgramsARB, cmdlen);
7167 struct glx_context * const gc = __glXGetCurrentContext();
7168 Display * const dpy = gc->currentDpy;
7171 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramStringARB, cmdlen);
7183 struct glx_context * const gc = __glXGetCurrentContext();
7184 Display * const dpy = gc->currentDpy;
7187 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramivARB, cmdlen);
7199 struct glx_context * const gc = __glXGetCurrentContext();
7200 Display * const dpy = gc->currentDpy;
7204 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsProgramARB, cmdlen);
7215 struct glx_context * const gc = __glXGetCurrentContext();
7217 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4dvARB, cmdlen);
7218 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7219 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7220 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 8);
7221 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 8);
7222 (void) memcpy((void *)(gc->pc + 28), (void *)(&z), 8);
7223 (void) memcpy((void *)(gc->pc + 36), (void *)(&w), 8);
7224 gc->pc += cmdlen;
7225 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7231 struct glx_context * const gc = __glXGetCurrentContext();
7233 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4dvARB, cmdlen);
7234 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7235 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7236 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 32);
7237 gc->pc += cmdlen;
7238 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7244 struct glx_context * const gc = __glXGetCurrentContext();
7246 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4fvARB, cmdlen);
7247 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7248 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7249 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 4);
7250 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 4);
7251 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 4);
7252 (void) memcpy((void *)(gc->pc + 24), (void *)(&w), 4);
7253 gc->pc += cmdlen;
7254 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7260 struct glx_context * const gc = __glXGetCurrentContext();
7262 emit_header(gc->pc, X_GLrop_ProgramEnvParameter4fvARB, cmdlen);
7263 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7264 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7265 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 16);
7266 gc->pc += cmdlen;
7267 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7273 struct glx_context * const gc = __glXGetCurrentContext();
7275 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4dvARB, cmdlen);
7276 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7277 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7278 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 8);
7279 (void) memcpy((void *)(gc->pc + 20), (void *)(&y), 8);
7280 (void) memcpy((void *)(gc->pc + 28), (void *)(&z), 8);
7281 (void) memcpy((void *)(gc->pc + 36), (void *)(&w), 8);
7282 gc->pc += cmdlen;
7283 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7289 struct glx_context * const gc = __glXGetCurrentContext();
7291 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4dvARB, cmdlen);
7292 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7293 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7294 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 32);
7295 gc->pc += cmdlen;
7296 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7302 struct glx_context * const gc = __glXGetCurrentContext();
7304 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4fvARB, cmdlen);
7305 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7306 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7307 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 4);
7308 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 4);
7309 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 4);
7310 (void) memcpy((void *)(gc->pc + 24), (void *)(&w), 4);
7311 gc->pc += cmdlen;
7312 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7318 struct glx_context * const gc = __glXGetCurrentContext();
7320 emit_header(gc->pc, X_GLrop_ProgramLocalParameter4fvARB, cmdlen);
7321 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7322 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
7323 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 16);
7324 gc->pc += cmdlen;
7325 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7331 struct glx_context * const gc = __glXGetCurrentContext();
7334 __glXSetError(gc, GL_INVALID_VALUE);
7338 __glXSetError(gc, GL_INVALID_VALUE);
7341 if (__builtin_expect((len >= 0) && (gc->currentDpy != NULL), 1)) {
7342 if (cmdlen <= gc->maxSmallRenderCommandSize) {
7343 if ( (gc->pc + cmdlen) > gc->bufEnd ) {
7344 (void) __glXFlushRenderBuffer(gc, gc->pc);
7346 emit_header(gc->pc, X_GLrop_ProgramStringARB, cmdlen);
7347 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7348 (void) memcpy((void *)(gc->pc + 8), (void *)(&format), 4);
7349 (void) memcpy((void *)(gc->pc + 12), (void *)(&len), 4);
7350 (void) memcpy((void *)(gc->pc + 16), (void *)(string), len);
7351 gc->pc += cmdlen;
7352 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7357 GLubyte * const pc = __glXFlushRenderBuffer(gc, gc->pc);
7363 __glXSendLargeCommand(gc, pc, 20, string, len);
7371 struct glx_context * const gc = __glXGetCurrentContext();
7373 emit_header(gc->pc, X_GLrop_VertexAttrib1fvARB, cmdlen);
7374 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7375 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
7376 gc->pc += cmdlen;
7377 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7383 struct glx_context * const gc = __glXGetCurrentContext();
7385 emit_header(gc->pc, X_GLrop_VertexAttrib1fvARB, cmdlen);
7386 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7387 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
7388 gc->pc += cmdlen;
7389 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7395 struct glx_context * const gc = __glXGetCurrentContext();
7397 emit_header(gc->pc, X_GLrop_VertexAttrib2fvARB, cmdlen);
7398 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7399 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
7400 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 4);
7401 gc->pc += cmdlen;
7402 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7408 struct glx_context * const gc = __glXGetCurrentContext();
7410 emit_header(gc->pc, X_GLrop_VertexAttrib2fvARB, cmdlen);
7411 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7412 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
7413 gc->pc += cmdlen;
7414 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7420 struct glx_context * const gc = __glXGetCurrentContext();
7422 emit_header(gc->pc, X_GLrop_VertexAttrib3fvARB, cmdlen);
7423 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7424 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
7425 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 4);
7426 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 4);
7427 gc->pc += cmdlen;
7428 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7434 struct glx_context * const gc = __glXGetCurrentContext();
7436 emit_header(gc->pc, X_GLrop_VertexAttrib3fvARB, cmdlen);
7437 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7438 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 12);
7439 gc->pc += cmdlen;
7440 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7446 struct glx_context * const gc = __glXGetCurrentContext();
7448 emit_header(gc->pc, X_GLrop_VertexAttrib4fvARB, cmdlen);
7449 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7450 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
7451 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 4);
7452 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 4);
7453 (void) memcpy((void *)(gc->pc + 20), (void *)(&w), 4);
7454 gc->pc += cmdlen;
7455 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7461 struct glx_context * const gc = __glXGetCurrentContext();
7463 emit_header(gc->pc, X_GLrop_VertexAttrib4fvARB, cmdlen);
7464 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
7465 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
7466 gc->pc += cmdlen;
7467 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7473 struct glx_context * const gc = __glXGetCurrentContext();
7475 emit_header(gc->pc, X_GLrop_BindFramebuffer, cmdlen);
7476 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7477 (void) memcpy((void *)(gc->pc + 8), (void *)(&framebuffer), 4);
7478 gc->pc += cmdlen;
7479 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7485 struct glx_context * const gc = __glXGetCurrentContext();
7487 emit_header(gc->pc, X_GLrop_BindRenderbuffer, cmdlen);
7488 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7489 (void) memcpy((void *)(gc->pc + 8), (void *)(&renderbuffer), 4);
7490 gc->pc += cmdlen;
7491 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7497 struct glx_context * const gc = __glXGetCurrentContext();
7499 emit_header(gc->pc, X_GLrop_BlitFramebuffer, cmdlen);
7500 (void) memcpy((void *)(gc->pc + 4), (void *)(&srcX0), 4);
7501 (void) memcpy((void *)(gc->pc + 8), (void *)(&srcY0), 4);
7502 (void) memcpy((void *)(gc->pc + 12), (void *)(&srcX1), 4);
7503 (void) memcpy((void *)(gc->pc + 16), (void *)(&srcY1), 4);
7504 (void) memcpy((void *)(gc->pc + 20), (void *)(&dstX0), 4);
7505 (void) memcpy((void *)(gc->pc + 24), (void *)(&dstY0), 4);
7506 (void) memcpy((void *)(gc->pc + 28), (void *)(&dstX1), 4);
7507 (void) memcpy((void *)(gc->pc + 32), (void *)(&dstY1), 4);
7508 (void) memcpy((void *)(gc->pc + 36), (void *)(&mask), 4);
7509 (void) memcpy((void *)(gc->pc + 40), (void *)(&filter), 4);
7510 gc->pc += cmdlen;
7511 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7517 struct glx_context * const gc = __glXGetCurrentContext();
7518 Display * const dpy = gc->currentDpy;
7522 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_CheckFramebufferStatus, cmdlen);
7533 struct glx_context * const gc = __glXGetCurrentContext();
7536 __glXSetError(gc, GL_INVALID_VALUE);
7540 __glXSetError(gc, GL_INVALID_VALUE);
7544 emit_header(gc->pc, X_GLrop_DeleteFramebuffers, cmdlen);
7545 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 4);
7546 (void) memcpy((void *)(gc->pc + 8), (void *)(framebuffers), safe_mul(n, 4));
7547 gc->pc += cmdlen;
7548 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7555 struct glx_context * const gc = __glXGetCurrentContext();
7558 __glXSetError(gc, GL_INVALID_VALUE);
7562 __glXSetError(gc, GL_INVALID_VALUE);
7566 emit_header(gc->pc, X_GLrop_DeleteRenderbuffers, cmdlen);
7567 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 4);
7568 (void) memcpy((void *)(gc->pc + 8), (void *)(renderbuffers), safe_mul(n, 4));
7569 gc->pc += cmdlen;
7570 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7577 struct glx_context * const gc = __glXGetCurrentContext();
7579 emit_header(gc->pc, X_GLrop_FramebufferRenderbuffer, cmdlen);
7580 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7581 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 4);
7582 (void) memcpy((void *)(gc->pc + 12), (void *)(&renderbuffertarget), 4);
7583 (void) memcpy((void *)(gc->pc + 16), (void *)(&renderbuffer), 4);
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_FramebufferTexture1D, cmdlen);
7594 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7595 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 4);
7596 (void) memcpy((void *)(gc->pc + 12), (void *)(&textarget), 4);
7597 (void) memcpy((void *)(gc->pc + 16), (void *)(&texture), 4);
7598 (void) memcpy((void *)(gc->pc + 20), (void *)(&level), 4);
7599 gc->pc += cmdlen;
7600 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7606 struct glx_context * const gc = __glXGetCurrentContext();
7608 emit_header(gc->pc, X_GLrop_FramebufferTexture2D, cmdlen);
7609 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7610 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 4);
7611 (void) memcpy((void *)(gc->pc + 12), (void *)(&textarget), 4);
7612 (void) memcpy((void *)(gc->pc + 16), (void *)(&texture), 4);
7613 (void) memcpy((void *)(gc->pc + 20), (void *)(&level), 4);
7614 gc->pc += cmdlen;
7615 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7621 struct glx_context * const gc = __glXGetCurrentContext();
7623 emit_header(gc->pc, X_GLrop_FramebufferTexture3D, cmdlen);
7624 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7625 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 4);
7626 (void) memcpy((void *)(gc->pc + 12), (void *)(&textarget), 4);
7627 (void) memcpy((void *)(gc->pc + 16), (void *)(&texture), 4);
7628 (void) memcpy((void *)(gc->pc + 20), (void *)(&level), 4);
7629 (void) memcpy((void *)(gc->pc + 24), (void *)(&layer), 4);
7630 gc->pc += cmdlen;
7631 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7637 struct glx_context * const gc = __glXGetCurrentContext();
7639 emit_header(gc->pc, X_GLrop_FramebufferTextureLayer, cmdlen);
7640 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7641 (void) memcpy((void *)(gc->pc + 8), (void *)(&attachment), 4);
7642 (void) memcpy((void *)(gc->pc + 12), (void *)(&texture), 4);
7643 (void) memcpy((void *)(gc->pc + 16), (void *)(&level), 4);
7644 (void) memcpy((void *)(gc->pc + 20), (void *)(&layer), 4);
7645 gc->pc += cmdlen;
7646 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7652 struct glx_context * const gc = __glXGetCurrentContext();
7653 Display * const dpy = gc->currentDpy;
7656 __glXSetError(gc, GL_INVALID_VALUE);
7660 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenFramebuffers, cmdlen);
7671 struct glx_context * const gc = __glXGetCurrentContext();
7672 Display * const dpy = gc->currentDpy;
7675 __glXSetError(gc, GL_INVALID_VALUE);
7679 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GenRenderbuffers, cmdlen);
7690 struct glx_context * const gc = __glXGetCurrentContext();
7692 emit_header(gc->pc, X_GLrop_GenerateMipmap, cmdlen);
7693 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7694 gc->pc += cmdlen;
7695 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7701 struct glx_context * const gc = __glXGetCurrentContext();
7702 Display * const dpy = gc->currentDpy;
7705 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetFramebufferAttachmentParameteriv, cmdlen);
7718 struct glx_context * const gc = __glXGetCurrentContext();
7719 Display * const dpy = gc->currentDpy;
7722 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetRenderbufferParameteriv, cmdlen);
7734 struct glx_context * const gc = __glXGetCurrentContext();
7735 Display * const dpy = gc->currentDpy;
7739 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsFramebuffer, cmdlen);
7750 struct glx_context * const gc = __glXGetCurrentContext();
7751 Display * const dpy = gc->currentDpy;
7755 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_IsRenderbuffer, cmdlen);
7766 struct glx_context * const gc = __glXGetCurrentContext();
7768 emit_header(gc->pc, X_GLrop_RenderbufferStorage, cmdlen);
7769 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7770 (void) memcpy((void *)(gc->pc + 8), (void *)(&internalformat), 4);
7771 (void) memcpy((void *)(gc->pc + 12), (void *)(&width), 4);
7772 (void) memcpy((void *)(gc->pc + 16), (void *)(&height), 4);
7773 gc->pc += cmdlen;
7774 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7780 struct glx_context * const gc = __glXGetCurrentContext();
7782 emit_header(gc->pc, X_GLrop_RenderbufferStorageMultisample, cmdlen);
7783 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7784 (void) memcpy((void *)(gc->pc + 8), (void *)(&samples), 4);
7785 (void) memcpy((void *)(gc->pc + 12), (void *)(&internalformat), 4);
7786 (void) memcpy((void *)(gc->pc + 16), (void *)(&width), 4);
7787 (void) memcpy((void *)(gc->pc + 20), (void *)(&height), 4);
7788 gc->pc += cmdlen;
7789 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7795 struct glx_context * const gc = __glXGetCurrentContext();
7797 emit_header(gc->pc, X_GLrop_SampleMaskSGIS, cmdlen);
7798 (void) memcpy((void *)(gc->pc + 4), (void *)(&value), 4);
7799 (void) memcpy((void *)(gc->pc + 8), (void *)(&invert), 1);
7800 gc->pc += cmdlen;
7801 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_SamplePatternSGIS, cmdlen);
7810 (void) memcpy((void *)(gc->pc + 4), (void *)(&pattern), 4);
7811 gc->pc += cmdlen;
7812 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7818 struct glx_context * const gc = __glXGetCurrentContext();
7820 emit_header(gc->pc, X_GLrop_SecondaryColor3fvEXT, cmdlen);
7821 (void) memcpy((void *)(gc->pc + 4), (void *)(&red), 4);
7822 (void) memcpy((void *)(gc->pc + 8), (void *)(&green), 4);
7823 (void) memcpy((void *)(gc->pc + 12), (void *)(&blue), 4);
7824 gc->pc += cmdlen;
7825 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7837 struct glx_context * const gc = __glXGetCurrentContext();
7839 emit_header(gc->pc, X_GLrop_FogCoordfvEXT, cmdlen);
7840 (void) memcpy((void *)(gc->pc + 4), (void *)(&coord), 4);
7841 gc->pc += cmdlen;
7842 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7854 struct glx_context * const gc = __glXGetCurrentContext();
7855 Display * const dpy = gc->currentDpy;
7859 __glXSetError(gc, GL_INVALID_VALUE);
7863 __glXSetError(gc, GL_INVALID_VALUE);
7867 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_AreProgramsResidentNV, cmdlen);
7879 struct glx_context * const gc = __glXGetCurrentContext();
7881 emit_header(gc->pc, X_GLrop_ExecuteProgramNV, cmdlen);
7882 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
7883 (void) memcpy((void *)(gc->pc + 8), (void *)(&id), 4);
7884 (void) memcpy((void *)(gc->pc + 12), (void *)(params), 16);
7885 gc->pc += cmdlen;
7886 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
7892 struct glx_context * const gc = __glXGetCurrentContext();
7893 Display * const dpy = gc->currentDpy;
7896 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramParameterdvNV, cmdlen);
7909 struct glx_context * const gc = __glXGetCurrentContext();
7910 Display * const dpy = gc->currentDpy;
7913 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramParameterfvNV, cmdlen);
7926 struct glx_context * const gc = __glXGetCurrentContext();
7927 Display * const dpy = gc->currentDpy;
7930 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramStringNV, cmdlen);
7942 struct glx_context * const gc = __glXGetCurrentContext();
7943 Display * const dpy = gc->currentDpy;
7946 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramivNV, cmdlen);
7958 struct glx_context * const gc = __glXGetCurrentContext();
7959 Display * const dpy = gc->currentDpy;
7962 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetTrackMatrixivNV, cmdlen);
7975 struct glx_context * const gc = __glXGetCurrentContext();
7976 Display * const dpy = gc->currentDpy;
7979 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetVertexAttribdvNV, cmdlen);
7991 struct glx_context * const gc = __glXGetCurrentContext();
7992 Display * const dpy = gc->currentDpy;
7995 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetVertexAttribfvNV, cmdlen);
8007 struct glx_context * const gc = __glXGetCurrentContext();
8008 Display * const dpy = gc->currentDpy;
8011 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetVertexAttribivNV, cmdlen);
8023 struct glx_context * const gc = __glXGetCurrentContext();
8026 __glXSetError(gc, GL_INVALID_VALUE);
8030 __glXSetError(gc, GL_INVALID_VALUE);
8034 emit_header(gc->pc, X_GLrop_LoadProgramNV, cmdlen);
8035 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
8036 (void) memcpy((void *)(gc->pc + 8), (void *)(&id), 4);
8037 (void) memcpy((void *)(gc->pc + 12), (void *)(&len), 4);
8038 (void) memcpy((void *)(gc->pc + 16), (void *)(program), len);
8039 gc->pc += cmdlen;
8040 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8047 struct glx_context * const gc = __glXGetCurrentContext();
8050 __glXSetError(gc, GL_INVALID_VALUE);
8054 __glXSetError(gc, GL_INVALID_VALUE);
8058 emit_header(gc->pc, X_GLrop_ProgramParameters4dvNV, cmdlen);
8059 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
8060 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
8061 (void) memcpy((void *)(gc->pc + 12), (void *)(&num), 4);
8062 (void) memcpy((void *)(gc->pc + 16), (void *)(params), safe_mul(num, 32));
8063 gc->pc += cmdlen;
8064 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8071 struct glx_context * const gc = __glXGetCurrentContext();
8074 __glXSetError(gc, GL_INVALID_VALUE);
8078 __glXSetError(gc, GL_INVALID_VALUE);
8082 emit_header(gc->pc, X_GLrop_ProgramParameters4fvNV, cmdlen);
8083 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
8084 (void) memcpy((void *)(gc->pc + 8), (void *)(&index), 4);
8085 (void) memcpy((void *)(gc->pc + 12), (void *)(&num), 4);
8086 (void) memcpy((void *)(gc->pc + 16), (void *)(params), safe_mul(num, 16));
8087 gc->pc += cmdlen;
8088 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8095 struct glx_context * const gc = __glXGetCurrentContext();
8098 __glXSetError(gc, GL_INVALID_VALUE);
8102 __glXSetError(gc, GL_INVALID_VALUE);
8106 emit_header(gc->pc, X_GLrop_RequestResidentProgramsNV, cmdlen);
8107 (void) memcpy((void *)(gc->pc + 4), (void *)(&n), 4);
8108 (void) memcpy((void *)(gc->pc + 8), (void *)(ids), safe_mul(n, 4));
8109 gc->pc += cmdlen;
8110 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8117 struct glx_context * const gc = __glXGetCurrentContext();
8119 emit_header(gc->pc, X_GLrop_TrackMatrixNV, cmdlen);
8120 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
8121 (void) memcpy((void *)(gc->pc + 8), (void *)(&address), 4);
8122 (void) memcpy((void *)(gc->pc + 12), (void *)(&matrix), 4);
8123 (void) memcpy((void *)(gc->pc + 16), (void *)(&transform), 4);
8124 gc->pc += cmdlen;
8125 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8131 struct glx_context * const gc = __glXGetCurrentContext();
8133 emit_header(gc->pc, X_GLrop_VertexAttrib1dvNV, cmdlen);
8134 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8135 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
8136 gc->pc += cmdlen;
8137 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8143 struct glx_context * const gc = __glXGetCurrentContext();
8145 emit_header(gc->pc, X_GLrop_VertexAttrib1dvNV, cmdlen);
8146 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8147 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
8148 gc->pc += cmdlen;
8149 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8155 struct glx_context * const gc = __glXGetCurrentContext();
8157 emit_header(gc->pc, X_GLrop_VertexAttrib1fvNV, cmdlen);
8158 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8159 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
8160 gc->pc += cmdlen;
8161 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8167 struct glx_context * const gc = __glXGetCurrentContext();
8169 emit_header(gc->pc, X_GLrop_VertexAttrib1fvNV, cmdlen);
8170 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8171 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
8172 gc->pc += cmdlen;
8173 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8179 struct glx_context * const gc = __glXGetCurrentContext();
8181 emit_header(gc->pc, X_GLrop_VertexAttrib1svNV, cmdlen);
8182 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8183 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
8184 gc->pc += cmdlen;
8185 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8191 struct glx_context * const gc = __glXGetCurrentContext();
8193 emit_header(gc->pc, X_GLrop_VertexAttrib1svNV, cmdlen);
8194 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8195 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 2);
8196 gc->pc += cmdlen;
8197 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8203 struct glx_context * const gc = __glXGetCurrentContext();
8205 emit_header(gc->pc, X_GLrop_VertexAttrib2dvNV, cmdlen);
8206 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8207 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
8208 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 8);
8209 gc->pc += cmdlen;
8210 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8216 struct glx_context * const gc = __glXGetCurrentContext();
8218 emit_header(gc->pc, X_GLrop_VertexAttrib2dvNV, cmdlen);
8219 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8220 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
8221 gc->pc += cmdlen;
8222 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8228 struct glx_context * const gc = __glXGetCurrentContext();
8230 emit_header(gc->pc, X_GLrop_VertexAttrib2fvNV, cmdlen);
8231 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8232 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
8233 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 4);
8234 gc->pc += cmdlen;
8235 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8241 struct glx_context * const gc = __glXGetCurrentContext();
8243 emit_header(gc->pc, X_GLrop_VertexAttrib2fvNV, cmdlen);
8244 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8245 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
8246 gc->pc += cmdlen;
8247 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8253 struct glx_context * const gc = __glXGetCurrentContext();
8255 emit_header(gc->pc, X_GLrop_VertexAttrib2svNV, cmdlen);
8256 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8257 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
8258 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 2);
8259 gc->pc += cmdlen;
8260 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8266 struct glx_context * const gc = __glXGetCurrentContext();
8268 emit_header(gc->pc, X_GLrop_VertexAttrib2svNV, cmdlen);
8269 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8270 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
8271 gc->pc += cmdlen;
8272 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8278 struct glx_context * const gc = __glXGetCurrentContext();
8280 emit_header(gc->pc, X_GLrop_VertexAttrib3dvNV, cmdlen);
8281 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8282 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
8283 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 8);
8284 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 8);
8285 gc->pc += cmdlen;
8286 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8292 struct glx_context * const gc = __glXGetCurrentContext();
8294 emit_header(gc->pc, X_GLrop_VertexAttrib3dvNV, cmdlen);
8295 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8296 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 24);
8297 gc->pc += cmdlen;
8298 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8304 struct glx_context * const gc = __glXGetCurrentContext();
8306 emit_header(gc->pc, X_GLrop_VertexAttrib3fvNV, cmdlen);
8307 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8308 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
8309 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 4);
8310 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 4);
8311 gc->pc += cmdlen;
8312 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8318 struct glx_context * const gc = __glXGetCurrentContext();
8320 emit_header(gc->pc, X_GLrop_VertexAttrib3fvNV, cmdlen);
8321 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8322 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 12);
8323 gc->pc += cmdlen;
8324 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8330 struct glx_context * const gc = __glXGetCurrentContext();
8332 emit_header(gc->pc, X_GLrop_VertexAttrib3svNV, cmdlen);
8333 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8334 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
8335 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 2);
8336 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 2);
8337 gc->pc += cmdlen;
8338 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8344 struct glx_context * const gc = __glXGetCurrentContext();
8346 emit_header(gc->pc, X_GLrop_VertexAttrib3svNV, cmdlen);
8347 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8348 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 6);
8349 gc->pc += cmdlen;
8350 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8356 struct glx_context * const gc = __glXGetCurrentContext();
8358 emit_header(gc->pc, X_GLrop_VertexAttrib4dvNV, cmdlen);
8359 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8360 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 8);
8361 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 8);
8362 (void) memcpy((void *)(gc->pc + 24), (void *)(&z), 8);
8363 (void) memcpy((void *)(gc->pc + 32), (void *)(&w), 8);
8364 gc->pc += cmdlen;
8365 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8371 struct glx_context * const gc = __glXGetCurrentContext();
8373 emit_header(gc->pc, X_GLrop_VertexAttrib4dvNV, cmdlen);
8374 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8375 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 32);
8376 gc->pc += cmdlen;
8377 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8383 struct glx_context * const gc = __glXGetCurrentContext();
8385 emit_header(gc->pc, X_GLrop_VertexAttrib4fvNV, cmdlen);
8386 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8387 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 4);
8388 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 4);
8389 (void) memcpy((void *)(gc->pc + 16), (void *)(&z), 4);
8390 (void) memcpy((void *)(gc->pc + 20), (void *)(&w), 4);
8391 gc->pc += cmdlen;
8392 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8398 struct glx_context * const gc = __glXGetCurrentContext();
8400 emit_header(gc->pc, X_GLrop_VertexAttrib4fvNV, cmdlen);
8401 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8402 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 16);
8403 gc->pc += cmdlen;
8404 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8410 struct glx_context * const gc = __glXGetCurrentContext();
8412 emit_header(gc->pc, X_GLrop_VertexAttrib4svNV, cmdlen);
8413 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8414 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 2);
8415 (void) memcpy((void *)(gc->pc + 10), (void *)(&y), 2);
8416 (void) memcpy((void *)(gc->pc + 12), (void *)(&z), 2);
8417 (void) memcpy((void *)(gc->pc + 14), (void *)(&w), 2);
8418 gc->pc += cmdlen;
8419 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8425 struct glx_context * const gc = __glXGetCurrentContext();
8427 emit_header(gc->pc, X_GLrop_VertexAttrib4svNV, cmdlen);
8428 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8429 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 8);
8430 gc->pc += cmdlen;
8431 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8437 struct glx_context * const gc = __glXGetCurrentContext();
8439 emit_header(gc->pc, X_GLrop_VertexAttrib4ubvNV, cmdlen);
8440 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8441 (void) memcpy((void *)(gc->pc + 8), (void *)(&x), 1);
8442 (void) memcpy((void *)(gc->pc + 9), (void *)(&y), 1);
8443 (void) memcpy((void *)(gc->pc + 10), (void *)(&z), 1);
8444 (void) memcpy((void *)(gc->pc + 11), (void *)(&w), 1);
8445 gc->pc += cmdlen;
8446 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8452 struct glx_context * const gc = __glXGetCurrentContext();
8454 emit_header(gc->pc, X_GLrop_VertexAttrib4ubvNV, cmdlen);
8455 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8456 (void) memcpy((void *)(gc->pc + 8), (void *)(v), 4);
8457 gc->pc += cmdlen;
8458 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8464 struct glx_context * const gc = __glXGetCurrentContext();
8467 __glXSetError(gc, GL_INVALID_VALUE);
8471 __glXSetError(gc, GL_INVALID_VALUE);
8475 emit_header(gc->pc, X_GLrop_VertexAttribs1dvNV, cmdlen);
8476 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8477 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8478 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 8));
8479 gc->pc += cmdlen;
8480 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8487 struct glx_context * const gc = __glXGetCurrentContext();
8490 __glXSetError(gc, GL_INVALID_VALUE);
8494 __glXSetError(gc, GL_INVALID_VALUE);
8498 emit_header(gc->pc, X_GLrop_VertexAttribs1fvNV, cmdlen);
8499 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8500 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8501 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4));
8502 gc->pc += cmdlen;
8503 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8510 struct glx_context * const gc = __glXGetCurrentContext();
8513 __glXSetError(gc, GL_INVALID_VALUE);
8517 __glXSetError(gc, GL_INVALID_VALUE);
8521 emit_header(gc->pc, X_GLrop_VertexAttribs1svNV, cmdlen);
8522 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8523 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8524 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 2));
8525 gc->pc += cmdlen;
8526 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8533 struct glx_context * const gc = __glXGetCurrentContext();
8536 __glXSetError(gc, GL_INVALID_VALUE);
8540 __glXSetError(gc, GL_INVALID_VALUE);
8544 emit_header(gc->pc, X_GLrop_VertexAttribs2dvNV, cmdlen);
8545 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8546 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8547 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 16));
8548 gc->pc += cmdlen;
8549 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8556 struct glx_context * const gc = __glXGetCurrentContext();
8559 __glXSetError(gc, GL_INVALID_VALUE);
8563 __glXSetError(gc, GL_INVALID_VALUE);
8567 emit_header(gc->pc, X_GLrop_VertexAttribs2fvNV, cmdlen);
8568 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8569 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8570 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 8));
8571 gc->pc += cmdlen;
8572 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8579 struct glx_context * const gc = __glXGetCurrentContext();
8582 __glXSetError(gc, GL_INVALID_VALUE);
8586 __glXSetError(gc, GL_INVALID_VALUE);
8590 emit_header(gc->pc, X_GLrop_VertexAttribs2svNV, cmdlen);
8591 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8592 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8593 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4));
8594 gc->pc += cmdlen;
8595 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8602 struct glx_context * const gc = __glXGetCurrentContext();
8605 __glXSetError(gc, GL_INVALID_VALUE);
8609 __glXSetError(gc, GL_INVALID_VALUE);
8613 emit_header(gc->pc, X_GLrop_VertexAttribs3dvNV, cmdlen);
8614 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8615 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8616 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 24));
8617 gc->pc += cmdlen;
8618 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8625 struct glx_context * const gc = __glXGetCurrentContext();
8628 __glXSetError(gc, GL_INVALID_VALUE);
8632 __glXSetError(gc, GL_INVALID_VALUE);
8636 emit_header(gc->pc, X_GLrop_VertexAttribs3fvNV, cmdlen);
8637 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8638 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8639 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 12));
8640 gc->pc += cmdlen;
8641 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8648 struct glx_context * const gc = __glXGetCurrentContext();
8651 __glXSetError(gc, GL_INVALID_VALUE);
8655 __glXSetError(gc, GL_INVALID_VALUE);
8659 emit_header(gc->pc, X_GLrop_VertexAttribs3svNV, cmdlen);
8660 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8661 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8662 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 6));
8663 gc->pc += cmdlen;
8664 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8671 struct glx_context * const gc = __glXGetCurrentContext();
8674 __glXSetError(gc, GL_INVALID_VALUE);
8678 __glXSetError(gc, GL_INVALID_VALUE);
8682 emit_header(gc->pc, X_GLrop_VertexAttribs4dvNV, cmdlen);
8683 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8684 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8685 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 32));
8686 gc->pc += cmdlen;
8687 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8694 struct glx_context * const gc = __glXGetCurrentContext();
8697 __glXSetError(gc, GL_INVALID_VALUE);
8701 __glXSetError(gc, GL_INVALID_VALUE);
8705 emit_header(gc->pc, X_GLrop_VertexAttribs4fvNV, cmdlen);
8706 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8707 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8708 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 16));
8709 gc->pc += cmdlen;
8710 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8717 struct glx_context * const gc = __glXGetCurrentContext();
8720 __glXSetError(gc, GL_INVALID_VALUE);
8724 __glXSetError(gc, GL_INVALID_VALUE);
8728 emit_header(gc->pc, X_GLrop_VertexAttribs4svNV, cmdlen);
8729 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8730 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8731 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 8));
8732 gc->pc += cmdlen;
8733 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8740 struct glx_context * const gc = __glXGetCurrentContext();
8743 __glXSetError(gc, GL_INVALID_VALUE);
8747 __glXSetError(gc, GL_INVALID_VALUE);
8751 emit_header(gc->pc, X_GLrop_VertexAttribs4ubvNV, cmdlen);
8752 (void) memcpy((void *)(gc->pc + 4), (void *)(&index), 4);
8753 (void) memcpy((void *)(gc->pc + 8), (void *)(&n), 4);
8754 (void) memcpy((void *)(gc->pc + 12), (void *)(v), safe_mul(n, 4));
8755 gc->pc += cmdlen;
8756 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8763 struct glx_context * const gc = __glXGetCurrentContext();
8765 emit_header(gc->pc, X_GLrop_ActiveStencilFaceEXT, cmdlen);
8766 (void) memcpy((void *)(gc->pc + 4), (void *)(&face), 4);
8767 gc->pc += cmdlen;
8768 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8774 struct glx_context * const gc = __glXGetCurrentContext();
8775 Display * const dpy = gc->currentDpy;
8778 __glXSetError(gc, GL_INVALID_VALUE);
8782 __glXSetError(gc, GL_INVALID_VALUE);
8786 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramNamedParameterdvNV, cmdlen);
8799 struct glx_context * const gc = __glXGetCurrentContext();
8800 Display * const dpy = gc->currentDpy;
8803 __glXSetError(gc, GL_INVALID_VALUE);
8807 __glXSetError(gc, GL_INVALID_VALUE);
8811 GLubyte const * pc = __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply, X_GLvop_GetProgramNamedParameterfvNV, cmdlen);
8824 struct glx_context * const gc = __glXGetCurrentContext();
8827 __glXSetError(gc, GL_INVALID_VALUE);
8831 __glXSetError(gc, GL_INVALID_VALUE);
8835 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4dvNV, cmdlen);
8836 (void) memcpy((void *)(gc->pc + 4), (void *)(&x), 8);
8837 (void) memcpy((void *)(gc->pc + 12), (void *)(&y), 8);
8838 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 8);
8839 (void) memcpy((void *)(gc->pc + 28), (void *)(&w), 8);
8840 (void) memcpy((void *)(gc->pc + 36), (void *)(&id), 4);
8841 (void) memcpy((void *)(gc->pc + 40), (void *)(&len), 4);
8842 (void) memcpy((void *)(gc->pc + 44), (void *)(name), len);
8843 gc->pc += cmdlen;
8844 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8851 struct glx_context * const gc = __glXGetCurrentContext();
8854 __glXSetError(gc, GL_INVALID_VALUE);
8858 __glXSetError(gc, GL_INVALID_VALUE);
8862 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4dvNV, cmdlen);
8863 (void) memcpy((void *)(gc->pc + 4), (void *)(v), 32);
8864 (void) memcpy((void *)(gc->pc + 36), (void *)(&id), 4);
8865 (void) memcpy((void *)(gc->pc + 40), (void *)(&len), 4);
8866 (void) memcpy((void *)(gc->pc + 44), (void *)(name), len);
8867 gc->pc += cmdlen;
8868 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8875 struct glx_context * const gc = __glXGetCurrentContext();
8878 __glXSetError(gc, GL_INVALID_VALUE);
8882 __glXSetError(gc, GL_INVALID_VALUE);
8886 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4fvNV, cmdlen);
8887 (void) memcpy((void *)(gc->pc + 4), (void *)(&id), 4);
8888 (void) memcpy((void *)(gc->pc + 8), (void *)(&len), 4);
8889 (void) memcpy((void *)(gc->pc + 12), (void *)(&x), 4);
8890 (void) memcpy((void *)(gc->pc + 16), (void *)(&y), 4);
8891 (void) memcpy((void *)(gc->pc + 20), (void *)(&z), 4);
8892 (void) memcpy((void *)(gc->pc + 24), (void *)(&w), 4);
8893 (void) memcpy((void *)(gc->pc + 28), (void *)(name), len);
8894 gc->pc += cmdlen;
8895 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8902 struct glx_context * const gc = __glXGetCurrentContext();
8905 __glXSetError(gc, GL_INVALID_VALUE);
8909 __glXSetError(gc, GL_INVALID_VALUE);
8913 emit_header(gc->pc, X_GLrop_ProgramNamedParameter4fvNV, cmdlen);
8914 (void) memcpy((void *)(gc->pc + 4), (void *)(&id), 4);
8915 (void) memcpy((void *)(gc->pc + 8), (void *)(&len), 4);
8916 (void) memcpy((void *)(gc->pc + 12), (void *)(v), 16);
8917 (void) memcpy((void *)(gc->pc + 28), (void *)(name), len);
8918 gc->pc += cmdlen;
8919 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8926 struct glx_context * const gc = __glXGetCurrentContext();
8928 emit_header(gc->pc, X_GLrop_BindFramebufferEXT, cmdlen);
8929 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
8930 (void) memcpy((void *)(gc->pc + 8), (void *)(&framebuffer), 4);
8931 gc->pc += cmdlen;
8932 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }
8938 struct glx_context * const gc = __glXGetCurrentContext();
8940 emit_header(gc->pc, X_GLrop_BindRenderbufferEXT, cmdlen);
8941 (void) memcpy((void *)(gc->pc + 4), (void *)(&target), 4);
8942 (void) memcpy((void *)(gc->pc + 8), (void *)(&renderbuffer), 4);
8943 gc->pc += cmdlen;
8944 if (__builtin_expect(gc->pc > gc->limit, 0)) { (void) __glXFlushRenderBuffer(gc, gc->pc); }