Lines Matching defs:pc
496 GLubyte *pc;
504 pc = gc->pc;
506 (void) memcpy(pc, begin_cmd, 4);
507 *(int *) (pc + 4) = mode;
509 pc += 8;
512 if ((pc + single_vertex_size) >= gc->bufEnd) {
513 pc = __glXFlushRenderBuffer(gc, pc);
516 pc = emit_element_none(pc, arrays, first + i);
519 if ((pc + 4) >= gc->bufEnd) {
520 pc = __glXFlushRenderBuffer(gc, pc);
523 (void) memcpy(pc, end_cmd, 4);
524 pc += 4;
526 gc->pc = pc;
527 if (gc->pc > gc->limit) {
528 (void) __glXFlushRenderBuffer(gc, gc->pc);
562 GLubyte *pc;
613 __glXFlushRenderBuffer(gc, gc->pc);
617 pc = ((GLubyte *) arrays->array_info_cache) - (header_size + 4);
618 *(uint32_t *) (pc + 0) = command_size;
619 *(uint32_t *) (pc + 4) = X_GLrop_DrawArrays;
620 *(uint32_t *) (pc + 8) = count;
621 *(uint32_t *) (pc + 12) = arrays->enabled_client_array_count;
622 *(uint32_t *) (pc + 16) = mode;
624 __glXSendLargeChunk(gc, 1, *total_requests, pc,
627 pc = gc->pc;
630 if ((gc->pc + command_size) >= gc->bufEnd) {
631 (void) __glXFlushRenderBuffer(gc, gc->pc);
634 pc = gc->pc;
635 *(uint16_t *) (pc + 0) = command_size;
636 *(uint16_t *) (pc + 2) = X_GLrop_DrawArrays;
637 *(uint32_t *) (pc + 4) = count;
638 *(uint32_t *) (pc + 8) = arrays->enabled_client_array_count;
639 *(uint32_t *) (pc + 12) = mode;
641 pc += header_size;
643 (void) memcpy(pc, arrays->array_info_cache,
645 pc += arrays->array_info_cache_size;
652 return pc;
666 GLubyte *pc;
673 pc = emit_DrawArrays_header_old(gc, arrays, &elements_per_request,
684 pc = emit_element_old(pc, arrays, i + first);
687 assert(pc <= gc->bufEnd);
689 gc->pc = pc;
690 if (gc->pc > gc->limit) {
691 (void) __glXFlushRenderBuffer(gc, gc->pc);
703 pc = gc->pc;
705 pc = emit_element_old(pc, arrays, i + first);
710 total_sent += (size_t) (pc - gc->pc);
711 __glXSendLargeChunk(gc, req, total_requests, gc->pc, pc - gc->pc);
730 GLubyte *pc;
738 if ((gc->pc + single_vertex_size) >= gc->bufEnd) {
739 gc->pc = __glXFlushRenderBuffer(gc, gc->pc);
742 pc = gc->pc;
744 (void) memcpy(pc, begin_cmd, 4);
745 *(int *) (pc + 4) = mode;
747 pc += 8;
752 if ((pc + single_vertex_size) >= gc->bufEnd) {
753 pc = __glXFlushRenderBuffer(gc, pc);
767 pc = emit_element_none(pc, arrays, index);
770 if ((pc + 4) >= gc->bufEnd) {
771 pc = __glXFlushRenderBuffer(gc, pc);
774 (void) memcpy(pc, end_cmd, 4);
775 pc += 4;
777 gc->pc = pc;
778 if (gc->pc > gc->limit) {
779 (void) __glXFlushRenderBuffer(gc, gc->pc);
795 GLubyte *pc;
803 pc = emit_DrawArrays_header_old(gc, arrays, &elements_per_request,
822 pc = emit_element_old(pc, arrays, index);
831 pc = emit_element_old(pc, arrays, index);
840 pc = emit_element_old(pc, arrays, index);
847 __glXSendLargeChunk(gc, req, total_requests, gc->pc, pc - gc->pc);
848 pc = gc->pc;
860 assert(pc <= gc->bufEnd);
862 gc->pc = pc;
863 if (gc->pc > gc->limit) {
864 (void) __glXFlushRenderBuffer(gc, gc->pc);
976 if ((gc->pc + single_vertex_size) >= gc->bufEnd) {
977 gc->pc = __glXFlushRenderBuffer(gc, gc->pc);
980 gc->pc = emit_element_none(gc->pc, arrays, index);
982 if (gc->pc > gc->limit) {
983 (void) __glXFlushRenderBuffer(gc, gc->pc);