Lines Matching refs:cmd

52 _mesa_unmarshal_NewList(struct gl_context *ctx, const struct marshal_cmd_NewList *cmd, const uint64_t *last)
54 GLuint list = cmd->list;
55 GLenum mode = cmd->mode;
58 assert (cmd_size == cmd->cmd_base.cmd_size);
66 struct marshal_cmd_NewList *cmd;
67 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NewList, cmd_size);
68 cmd->list = list;
69 cmd->mode = mode;
80 _mesa_unmarshal_EndList(struct gl_context *ctx, const struct marshal_cmd_EndList *cmd, const uint64_t *last)
84 assert (cmd_size == cmd->cmd_base.cmd_size);
92 struct marshal_cmd_EndList *cmd;
93 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EndList, cmd_size);
94 (void) cmd;
108 _mesa_unmarshal_CallLists(struct gl_context *ctx, const struct marshal_cmd_CallLists *cmd, const uint64_t *last)
110 GLsizei n = cmd->n;
111 GLenum type = cmd->type;
113 const char *variable_data = (const char *) (cmd + 1);
116 return cmd->cmd_base.cmd_size;
124 struct marshal_cmd_CallLists *cmd;
131 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CallLists, cmd_size);
132 cmd->n = n;
133 cmd->type = type;
134 char *variable_data = (char *) (cmd + 1);
148 _mesa_unmarshal_DeleteLists(struct gl_context *ctx, const struct marshal_cmd_DeleteLists *cmd, const uint64_t *last)
150 GLuint list = cmd->list;
151 GLsizei range = cmd->range;
154 assert (cmd_size == cmd->cmd_base.cmd_size);
162 struct marshal_cmd_DeleteLists *cmd;
163 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteLists, cmd_size);
164 cmd->list = list;
165 cmd->range = range;
187 _mesa_unmarshal_ListBase(struct gl_context *ctx, const struct marshal_cmd_ListBase *cmd, const uint64_t *last)
189 GLuint base = cmd->base;
192 assert (cmd_size == cmd->cmd_base.cmd_size);
200 struct marshal_cmd_ListBase *cmd;
201 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ListBase, cmd_size);
202 cmd->base = base;
214 _mesa_unmarshal_Begin(struct gl_context *ctx, const struct marshal_cmd_Begin *cmd, const uint64_t *last)
216 GLenum mode = cmd->mode;
219 assert (cmd_size == cmd->cmd_base.cmd_size);
227 struct marshal_cmd_Begin *cmd;
228 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Begin, cmd_size);
229 cmd->mode = mode;
246 _mesa_unmarshal_Bitmap(struct gl_context *ctx, const struct marshal_cmd_Bitmap *cmd, const uint64_t *last)
248 GLsizei width = cmd->width;
249 GLsizei height = cmd->height;
250 GLfloat xorig = cmd->xorig;
251 GLfloat yorig = cmd->yorig;
252 GLfloat xmove = cmd->xmove;
253 GLfloat ymove = cmd->ymove;
254 const GLubyte * bitmap = cmd->bitmap;
257 assert (cmd_size == cmd->cmd_base.cmd_size);
265 struct marshal_cmd_Bitmap *cmd;
271 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Bitmap, cmd_size);
272 cmd->width = width;
273 cmd->height = height;
274 cmd->xorig = xorig;
275 cmd->yorig = yorig;
276 cmd->xmove = xmove;
277 cmd->ymove = ymove;
278 cmd->bitmap = bitmap;
291 _mesa_unmarshal_Color3b(struct gl_context *ctx, const struct marshal_cmd_Color3b *cmd, const uint64_t *last)
293 GLbyte red = cmd->red;
294 GLbyte green = cmd->green;
295 GLbyte blue = cmd->blue;
298 assert (cmd_size == cmd->cmd_base.cmd_size);
306 struct marshal_cmd_Color3b *cmd;
307 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3b, cmd_size);
308 cmd->red = red;
309 cmd->green = green;
310 cmd->blue = blue;
321 _mesa_unmarshal_Color3bv(struct gl_context *ctx, const struct marshal_cmd_Color3bv *cmd, const uint64_t *last)
323 const GLbyte * v = cmd->v;
326 assert (cmd_size == cmd->cmd_base.cmd_size);
334 struct marshal_cmd_Color3bv *cmd;
335 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3bv, cmd_size);
336 memcpy(cmd->v, v, 3 * sizeof(GLbyte));
349 _mesa_unmarshal_Color3d(struct gl_context *ctx, const struct marshal_cmd_Color3d *cmd, const uint64_t *last)
351 GLdouble red = cmd->red;
352 GLdouble green = cmd->green;
353 GLdouble blue = cmd->blue;
356 assert (cmd_size == cmd->cmd_base.cmd_size);
364 struct marshal_cmd_Color3d *cmd;
365 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3d, cmd_size);
366 cmd->red = red;
367 cmd->green = green;
368 cmd->blue = blue;
379 _mesa_unmarshal_Color3dv(struct gl_context *ctx, const struct marshal_cmd_Color3dv *cmd, const uint64_t *last)
381 const GLdouble * v = cmd->v;
384 assert (cmd_size == cmd->cmd_base.cmd_size);
392 struct marshal_cmd_Color3dv *cmd;
393 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3dv, cmd_size);
394 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
407 _mesa_unmarshal_Color3f(struct gl_context *ctx, const struct marshal_cmd_Color3f *cmd, const uint64_t *last)
409 GLfloat red = cmd->red;
410 GLfloat green = cmd->green;
411 GLfloat blue = cmd->blue;
414 assert (cmd_size == cmd->cmd_base.cmd_size);
422 struct marshal_cmd_Color3f *cmd;
423 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3f, cmd_size);
424 cmd->red = red;
425 cmd->green = green;
426 cmd->blue = blue;
437 _mesa_unmarshal_Color3fv(struct gl_context *ctx, const struct marshal_cmd_Color3fv *cmd, const uint64_t *last)
439 const GLfloat * v = cmd->v;
442 assert (cmd_size == cmd->cmd_base.cmd_size);
450 struct marshal_cmd_Color3fv *cmd;
451 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3fv, cmd_size);
452 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
465 _mesa_unmarshal_Color3i(struct gl_context *ctx, const struct marshal_cmd_Color3i *cmd, const uint64_t *last)
467 GLint red = cmd->red;
468 GLint green = cmd->green;
469 GLint blue = cmd->blue;
472 assert (cmd_size == cmd->cmd_base.cmd_size);
480 struct marshal_cmd_Color3i *cmd;
481 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3i, cmd_size);
482 cmd->red = red;
483 cmd->green = green;
484 cmd->blue = blue;
495 _mesa_unmarshal_Color3iv(struct gl_context *ctx, const struct marshal_cmd_Color3iv *cmd, const uint64_t *last)
497 const GLint * v = cmd->v;
500 assert (cmd_size == cmd->cmd_base.cmd_size);
508 struct marshal_cmd_Color3iv *cmd;
509 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3iv, cmd_size);
510 memcpy(cmd->v, v, 3 * sizeof(GLint));
523 _mesa_unmarshal_Color3s(struct gl_context *ctx, const struct marshal_cmd_Color3s *cmd, const uint64_t *last)
525 GLshort red = cmd->red;
526 GLshort green = cmd->green;
527 GLshort blue = cmd->blue;
530 assert (cmd_size == cmd->cmd_base.cmd_size);
538 struct marshal_cmd_Color3s *cmd;
539 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3s, cmd_size);
540 cmd->red = red;
541 cmd->green = green;
542 cmd->blue = blue;
553 _mesa_unmarshal_Color3sv(struct gl_context *ctx, const struct marshal_cmd_Color3sv *cmd, const uint64_t *last)
555 const GLshort * v = cmd->v;
558 assert (cmd_size == cmd->cmd_base.cmd_size);
566 struct marshal_cmd_Color3sv *cmd;
567 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3sv, cmd_size);
568 memcpy(cmd->v, v, 3 * sizeof(GLshort));
581 _mesa_unmarshal_Color3ub(struct gl_context *ctx, const struct marshal_cmd_Color3ub *cmd, const uint64_t *last)
583 GLubyte red = cmd->red;
584 GLubyte green = cmd->green;
585 GLubyte blue = cmd->blue;
588 assert (cmd_size == cmd->cmd_base.cmd_size);
596 struct marshal_cmd_Color3ub *cmd;
597 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3ub, cmd_size);
598 cmd->red = red;
599 cmd->green = green;
600 cmd->blue = blue;
611 _mesa_unmarshal_Color3ubv(struct gl_context *ctx, const struct marshal_cmd_Color3ubv *cmd, const uint64_t *last)
613 const GLubyte * v = cmd->v;
616 assert (cmd_size == cmd->cmd_base.cmd_size);
624 struct marshal_cmd_Color3ubv *cmd;
625 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3ubv, cmd_size);
626 memcpy(cmd->v, v, 3 * sizeof(GLubyte));
639 _mesa_unmarshal_Color3ui(struct gl_context *ctx, const struct marshal_cmd_Color3ui *cmd, const uint64_t *last)
641 GLuint red = cmd->red;
642 GLuint green = cmd->green;
643 GLuint blue = cmd->blue;
646 assert (cmd_size == cmd->cmd_base.cmd_size);
654 struct marshal_cmd_Color3ui *cmd;
655 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3ui, cmd_size);
656 cmd->red = red;
657 cmd->green = green;
658 cmd->blue = blue;
669 _mesa_unmarshal_Color3uiv(struct gl_context *ctx, const struct marshal_cmd_Color3uiv *cmd, const uint64_t *last)
671 const GLuint * v = cmd->v;
674 assert (cmd_size == cmd->cmd_base.cmd_size);
682 struct marshal_cmd_Color3uiv *cmd;
683 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3uiv, cmd_size);
684 memcpy(cmd->v, v, 3 * sizeof(GLuint));
697 _mesa_unmarshal_Color3us(struct gl_context *ctx, const struct marshal_cmd_Color3us *cmd, const uint64_t *last)
699 GLushort red = cmd->red;
700 GLushort green = cmd->green;
701 GLushort blue = cmd->blue;
704 assert (cmd_size == cmd->cmd_base.cmd_size);
712 struct marshal_cmd_Color3us *cmd;
713 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3us, cmd_size);
714 cmd->red = red;
715 cmd->green = green;
716 cmd->blue = blue;
727 _mesa_unmarshal_Color3usv(struct gl_context *ctx, const struct marshal_cmd_Color3usv *cmd, const uint64_t *last)
729 const GLushort * v = cmd->v;
732 assert (cmd_size == cmd->cmd_base.cmd_size);
740 struct marshal_cmd_Color3usv *cmd;
741 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3usv, cmd_size);
742 memcpy(cmd->v, v, 3 * sizeof(GLushort));
756 _mesa_unmarshal_Color4b(struct gl_context *ctx, const struct marshal_cmd_Color4b *cmd, const uint64_t *last)
758 GLbyte red = cmd->red;
759 GLbyte green = cmd->green;
760 GLbyte blue = cmd->blue;
761 GLbyte alpha = cmd->alpha;
764 assert (cmd_size == cmd->cmd_base.cmd_size);
772 struct marshal_cmd_Color4b *cmd;
773 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4b, cmd_size);
774 cmd->red = red;
775 cmd->green = green;
776 cmd->blue = blue;
777 cmd->alpha = alpha;
788 _mesa_unmarshal_Color4bv(struct gl_context *ctx, const struct marshal_cmd_Color4bv *cmd, const uint64_t *last)
790 const GLbyte * v = cmd->v;
793 assert (cmd_size == cmd->cmd_base.cmd_size);
801 struct marshal_cmd_Color4bv *cmd;
802 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4bv, cmd_size);
803 memcpy(cmd->v, v, 4 * sizeof(GLbyte));
817 _mesa_unmarshal_Color4d(struct gl_context *ctx, const struct marshal_cmd_Color4d *cmd, const uint64_t *last)
819 GLdouble red = cmd->red;
820 GLdouble green = cmd->green;
821 GLdouble blue = cmd->blue;
822 GLdouble alpha = cmd->alpha;
825 assert (cmd_size == cmd->cmd_base.cmd_size);
833 struct marshal_cmd_Color4d *cmd;
834 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4d, cmd_size);
835 cmd->red = red;
836 cmd->green = green;
837 cmd->blue = blue;
838 cmd->alpha = alpha;
849 _mesa_unmarshal_Color4dv(struct gl_context *ctx, const struct marshal_cmd_Color4dv *cmd, const uint64_t *last)
851 const GLdouble * v = cmd->v;
854 assert (cmd_size == cmd->cmd_base.cmd_size);
862 struct marshal_cmd_Color4dv *cmd;
863 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4dv, cmd_size);
864 memcpy(cmd->v, v, 4 * sizeof(GLdouble));
878 _mesa_unmarshal_Color4f(struct gl_context *ctx, const struct marshal_cmd_Color4f *cmd, const uint64_t *last)
880 GLfloat red = cmd->red;
881 GLfloat green = cmd->green;
882 GLfloat blue = cmd->blue;
883 GLfloat alpha = cmd->alpha;
886 assert (cmd_size == cmd->cmd_base.cmd_size);
894 struct marshal_cmd_Color4f *cmd;
895 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4f, cmd_size);
896 cmd->red = red;
897 cmd->green = green;
898 cmd->blue = blue;
899 cmd->alpha = alpha;
910 _mesa_unmarshal_Color4fv(struct gl_context *ctx, const struct marshal_cmd_Color4fv *cmd, const uint64_t *last)
912 const GLfloat * v = cmd->v;
915 assert (cmd_size == cmd->cmd_base.cmd_size);
923 struct marshal_cmd_Color4fv *cmd;
924 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4fv, cmd_size);
925 memcpy(cmd->v, v, 4 * sizeof(GLfloat));
939 _mesa_unmarshal_Color4i(struct gl_context *ctx, const struct marshal_cmd_Color4i *cmd, const uint64_t *last)
941 GLint red = cmd->red;
942 GLint green = cmd->green;
943 GLint blue = cmd->blue;
944 GLint alpha = cmd->alpha;
947 assert (cmd_size == cmd->cmd_base.cmd_size);
955 struct marshal_cmd_Color4i *cmd;
956 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4i, cmd_size);
957 cmd->red = red;
958 cmd->green = green;
959 cmd->blue = blue;
960 cmd->alpha = alpha;
971 _mesa_unmarshal_Color4iv(struct gl_context *ctx, const struct marshal_cmd_Color4iv *cmd, const uint64_t *last)
973 const GLint * v = cmd->v;
976 assert (cmd_size == cmd->cmd_base.cmd_size);
984 struct marshal_cmd_Color4iv *cmd;
985 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4iv, cmd_size);
986 memcpy(cmd->v, v, 4 * sizeof(GLint));
1000 _mesa_unmarshal_Color4s(struct gl_context *ctx, const struct marshal_cmd_Color4s *cmd, const uint64_t *last)
1002 GLshort red = cmd->red;
1003 GLshort green = cmd->green;
1004 GLshort blue = cmd->blue;
1005 GLshort alpha = cmd->alpha;
1008 assert (cmd_size == cmd->cmd_base.cmd_size);
1016 struct marshal_cmd_Color4s *cmd;
1017 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4s, cmd_size);
1018 cmd->red = red;
1019 cmd->green = green;
1020 cmd->blue = blue;
1021 cmd->alpha = alpha;
1032 _mesa_unmarshal_Color4sv(struct gl_context *ctx, const struct marshal_cmd_Color4sv *cmd, const uint64_t *last)
1034 const GLshort * v = cmd->v;
1037 assert (cmd_size == cmd->cmd_base.cmd_size);
1045 struct marshal_cmd_Color4sv *cmd;
1046 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4sv, cmd_size);
1047 memcpy(cmd->v, v, 4 * sizeof(GLshort));
1061 _mesa_unmarshal_Color4ub(struct gl_context *ctx, const struct marshal_cmd_Color4ub *cmd, const uint64_t *last)
1063 GLubyte red = cmd->red;
1064 GLubyte green = cmd->green;
1065 GLubyte blue = cmd->blue;
1066 GLubyte alpha = cmd->alpha;
1069 assert (cmd_size == cmd->cmd_base.cmd_size);
1077 struct marshal_cmd_Color4ub *cmd;
1078 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4ub, cmd_size);
1079 cmd->red = red;
1080 cmd->green = green;
1081 cmd->blue = blue;
1082 cmd->alpha = alpha;
1093 _mesa_unmarshal_Color4ubv(struct gl_context *ctx, const struct marshal_cmd_Color4ubv *cmd, const uint64_t *last)
1095 const GLubyte * v = cmd->v;
1098 assert (cmd_size == cmd->cmd_base.cmd_size);
1106 struct marshal_cmd_Color4ubv *cmd;
1107 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4ubv, cmd_size);
1108 memcpy(cmd->v, v, 4 * sizeof(GLubyte));
1122 _mesa_unmarshal_Color4ui(struct gl_context *ctx, const struct marshal_cmd_Color4ui *cmd, const uint64_t *last)
1124 GLuint red = cmd->red;
1125 GLuint green = cmd->green;
1126 GLuint blue = cmd->blue;
1127 GLuint alpha = cmd->alpha;
1130 assert (cmd_size == cmd->cmd_base.cmd_size);
1138 struct marshal_cmd_Color4ui *cmd;
1139 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4ui, cmd_size);
1140 cmd->red = red;
1141 cmd->green = green;
1142 cmd->blue = blue;
1143 cmd->alpha = alpha;
1154 _mesa_unmarshal_Color4uiv(struct gl_context *ctx, const struct marshal_cmd_Color4uiv *cmd, const uint64_t *last)
1156 const GLuint * v = cmd->v;
1159 assert (cmd_size == cmd->cmd_base.cmd_size);
1167 struct marshal_cmd_Color4uiv *cmd;
1168 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4uiv, cmd_size);
1169 memcpy(cmd->v, v, 4 * sizeof(GLuint));
1183 _mesa_unmarshal_Color4us(struct gl_context *ctx, const struct marshal_cmd_Color4us *cmd, const uint64_t *last)
1185 GLushort red = cmd->red;
1186 GLushort green = cmd->green;
1187 GLushort blue = cmd->blue;
1188 GLushort alpha = cmd->alpha;
1191 assert (cmd_size == cmd->cmd_base.cmd_size);
1199 struct marshal_cmd_Color4us *cmd;
1200 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4us, cmd_size);
1201 cmd->red = red;
1202 cmd->green = green;
1203 cmd->blue = blue;
1204 cmd->alpha = alpha;
1215 _mesa_unmarshal_Color4usv(struct gl_context *ctx, const struct marshal_cmd_Color4usv *cmd, const uint64_t *last)
1217 const GLushort * v = cmd->v;
1220 assert (cmd_size == cmd->cmd_base.cmd_size);
1228 struct marshal_cmd_Color4usv *cmd;
1229 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4usv, cmd_size);
1230 memcpy(cmd->v, v, 4 * sizeof(GLushort));
1241 _mesa_unmarshal_EdgeFlag(struct gl_context *ctx, const struct marshal_cmd_EdgeFlag *cmd, const uint64_t *last)
1243 GLboolean flag = cmd->flag;
1246 assert (cmd_size == cmd->cmd_base.cmd_size);
1254 struct marshal_cmd_EdgeFlag *cmd;
1255 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EdgeFlag, cmd_size);
1256 cmd->flag = flag;
1267 _mesa_unmarshal_EdgeFlagv(struct gl_context *ctx, const struct marshal_cmd_EdgeFlagv *cmd, const uint64_t *last)
1269 const GLboolean * flag = cmd->flag;
1272 assert (cmd_size == cmd->cmd_base.cmd_size);
1280 struct marshal_cmd_EdgeFlagv *cmd;
1281 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EdgeFlagv, cmd_size);
1282 memcpy(cmd->flag, flag, 1 * sizeof(GLboolean));
1292 _mesa_unmarshal_End(struct gl_context *ctx, const struct marshal_cmd_End *cmd, const uint64_t *last)
1296 assert (cmd_size == cmd->cmd_base.cmd_size);
1304 struct marshal_cmd_End *cmd;
1305 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_End, cmd_size);
1306 (void) cmd;
1317 _mesa_unmarshal_Indexd(struct gl_context *ctx, const struct marshal_cmd_Indexd *cmd, const uint64_t *last)
1319 GLdouble c = cmd->c;
1322 assert (cmd_size == cmd->cmd_base.cmd_size);
1330 struct marshal_cmd_Indexd *cmd;
1331 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexd, cmd_size);
1332 cmd->c = c;
1343 _mesa_unmarshal_Indexdv(struct gl_context *ctx, const struct marshal_cmd_Indexdv *cmd, const uint64_t *last)
1345 const GLdouble * c = cmd->c;
1348 assert (cmd_size == cmd->cmd_base.cmd_size);
1356 struct marshal_cmd_Indexdv *cmd;
1357 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexdv, cmd_size);
1358 memcpy(cmd->c, c, 1 * sizeof(GLdouble));
1369 _mesa_unmarshal_Indexf(struct gl_context *ctx, const struct marshal_cmd_Indexf *cmd, const uint64_t *last)
1371 GLfloat c = cmd->c;
1374 assert (cmd_size == cmd->cmd_base.cmd_size);
1382 struct marshal_cmd_Indexf *cmd;
1383 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexf, cmd_size);
1384 cmd->c = c;
1395 _mesa_unmarshal_Indexfv(struct gl_context *ctx, const struct marshal_cmd_Indexfv *cmd, const uint64_t *last)
1397 const GLfloat * c = cmd->c;
1400 assert (cmd_size == cmd->cmd_base.cmd_size);
1408 struct marshal_cmd_Indexfv *cmd;
1409 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexfv, cmd_size);
1410 memcpy(cmd->c, c, 1 * sizeof(GLfloat));
1421 _mesa_unmarshal_Indexi(struct gl_context *ctx, const struct marshal_cmd_Indexi *cmd, const uint64_t *last)
1423 GLint c = cmd->c;
1426 assert (cmd_size == cmd->cmd_base.cmd_size);
1434 struct marshal_cmd_Indexi *cmd;
1435 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexi, cmd_size);
1436 cmd->c = c;
1447 _mesa_unmarshal_Indexiv(struct gl_context *ctx, const struct marshal_cmd_Indexiv *cmd, const uint64_t *last)
1449 const GLint * c = cmd->c;
1452 assert (cmd_size == cmd->cmd_base.cmd_size);
1460 struct marshal_cmd_Indexiv *cmd;
1461 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexiv, cmd_size);
1462 memcpy(cmd->c, c, 1 * sizeof(GLint));
1473 _mesa_unmarshal_Indexs(struct gl_context *ctx, const struct marshal_cmd_Indexs *cmd, const uint64_t *last)
1475 GLshort c = cmd->c;
1478 assert (cmd_size == cmd->cmd_base.cmd_size);
1486 struct marshal_cmd_Indexs *cmd;
1487 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexs, cmd_size);
1488 cmd->c = c;
1499 _mesa_unmarshal_Indexsv(struct gl_context *ctx, const struct marshal_cmd_Indexsv *cmd, const uint64_t *last)
1501 const GLshort * c = cmd->c;
1504 assert (cmd_size == cmd->cmd_base.cmd_size);
1512 struct marshal_cmd_Indexsv *cmd;
1513 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexsv, cmd_size);
1514 memcpy(cmd->c, c, 1 * sizeof(GLshort));
1527 _mesa_unmarshal_Normal3b(struct gl_context *ctx, const struct marshal_cmd_Normal3b *cmd, const uint64_t *last)
1529 GLbyte nx = cmd->nx;
1530 GLbyte ny = cmd->ny;
1531 GLbyte nz = cmd->nz;
1534 assert (cmd_size == cmd->cmd_base.cmd_size);
1542 struct marshal_cmd_Normal3b *cmd;
1543 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3b, cmd_size);
1544 cmd->nx = nx;
1545 cmd->ny = ny;
1546 cmd->nz = nz;
1557 _mesa_unmarshal_Normal3bv(struct gl_context *ctx, const struct marshal_cmd_Normal3bv *cmd, const uint64_t *last)
1559 const GLbyte * v = cmd->v;
1562 assert (cmd_size == cmd->cmd_base.cmd_size);
1570 struct marshal_cmd_Normal3bv *cmd;
1571 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3bv, cmd_size);
1572 memcpy(cmd->v, v, 3 * sizeof(GLbyte));
1585 _mesa_unmarshal_Normal3d(struct gl_context *ctx, const struct marshal_cmd_Normal3d *cmd, const uint64_t *last)
1587 GLdouble nx = cmd->nx;
1588 GLdouble ny = cmd->ny;
1589 GLdouble nz = cmd->nz;
1592 assert (cmd_size == cmd->cmd_base.cmd_size);
1600 struct marshal_cmd_Normal3d *cmd;
1601 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3d, cmd_size);
1602 cmd->nx = nx;
1603 cmd->ny = ny;
1604 cmd->nz = nz;
1615 _mesa_unmarshal_Normal3dv(struct gl_context *ctx, const struct marshal_cmd_Normal3dv *cmd, const uint64_t *last)
1617 const GLdouble * v = cmd->v;
1620 assert (cmd_size == cmd->cmd_base.cmd_size);
1628 struct marshal_cmd_Normal3dv *cmd;
1629 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3dv, cmd_size);
1630 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
1643 _mesa_unmarshal_Normal3f(struct gl_context *ctx, const struct marshal_cmd_Normal3f *cmd, const uint64_t *last)
1645 GLfloat nx = cmd->nx;
1646 GLfloat ny = cmd->ny;
1647 GLfloat nz = cmd->nz;
1650 assert (cmd_size == cmd->cmd_base.cmd_size);
1658 struct marshal_cmd_Normal3f *cmd;
1659 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3f, cmd_size);
1660 cmd->nx = nx;
1661 cmd->ny = ny;
1662 cmd->nz = nz;
1673 _mesa_unmarshal_Normal3fv(struct gl_context *ctx, const struct marshal_cmd_Normal3fv *cmd, const uint64_t *last)
1675 const GLfloat * v = cmd->v;
1678 assert (cmd_size == cmd->cmd_base.cmd_size);
1686 struct marshal_cmd_Normal3fv *cmd;
1687 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3fv, cmd_size);
1688 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
1701 _mesa_unmarshal_Normal3i(struct gl_context *ctx, const struct marshal_cmd_Normal3i *cmd, const uint64_t *last)
1703 GLint nx = cmd->nx;
1704 GLint ny = cmd->ny;
1705 GLint nz = cmd->nz;
1708 assert (cmd_size == cmd->cmd_base.cmd_size);
1716 struct marshal_cmd_Normal3i *cmd;
1717 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3i, cmd_size);
1718 cmd->nx = nx;
1719 cmd->ny = ny;
1720 cmd->nz = nz;
1731 _mesa_unmarshal_Normal3iv(struct gl_context *ctx, const struct marshal_cmd_Normal3iv *cmd, const uint64_t *last)
1733 const GLint * v = cmd->v;
1736 assert (cmd_size == cmd->cmd_base.cmd_size);
1744 struct marshal_cmd_Normal3iv *cmd;
1745 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3iv, cmd_size);
1746 memcpy(cmd->v, v, 3 * sizeof(GLint));
1759 _mesa_unmarshal_Normal3s(struct gl_context *ctx, const struct marshal_cmd_Normal3s *cmd, const uint64_t *last)
1761 GLshort nx = cmd->nx;
1762 GLshort ny = cmd->ny;
1763 GLshort nz = cmd->nz;
1766 assert (cmd_size == cmd->cmd_base.cmd_size);
1774 struct marshal_cmd_Normal3s *cmd;
1775 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3s, cmd_size);
1776 cmd->nx = nx;
1777 cmd->ny = ny;
1778 cmd->nz = nz;
1789 _mesa_unmarshal_Normal3sv(struct gl_context *ctx, const struct marshal_cmd_Normal3sv *cmd, const uint64_t *last)
1791 const GLshort * v = cmd->v;
1794 assert (cmd_size == cmd->cmd_base.cmd_size);
1802 struct marshal_cmd_Normal3sv *cmd;
1803 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3sv, cmd_size);
1804 memcpy(cmd->v, v, 3 * sizeof(GLshort));
1816 _mesa_unmarshal_RasterPos2d(struct gl_context *ctx, const struct marshal_cmd_RasterPos2d *cmd, const uint64_t *last)
1818 GLdouble x = cmd->x;
1819 GLdouble y = cmd->y;
1822 assert (cmd_size == cmd->cmd_base.cmd_size);
1830 struct marshal_cmd_RasterPos2d *cmd;
1831 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2d, cmd_size);
1832 cmd->x = x;
1833 cmd->y = y;
1844 _mesa_unmarshal_RasterPos2dv(struct gl_context *ctx, const struct marshal_cmd_RasterPos2dv *cmd, const uint64_t *last)
1846 const GLdouble * v = cmd->v;
1849 assert (cmd_size == cmd->cmd_base.cmd_size);
1857 struct marshal_cmd_RasterPos2dv *cmd;
1858 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2dv, cmd_size);
1859 memcpy(cmd->v, v, 2 * sizeof(GLdouble));
1871 _mesa_unmarshal_RasterPos2f(struct gl_context *ctx, const struct marshal_cmd_RasterPos2f *cmd, const uint64_t *last)
1873 GLfloat x = cmd->x;
1874 GLfloat y = cmd->y;
1877 assert (cmd_size == cmd->cmd_base.cmd_size);
1885 struct marshal_cmd_RasterPos2f *cmd;
1886 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2f, cmd_size);
1887 cmd->x = x;
1888 cmd->y = y;
1899 _mesa_unmarshal_RasterPos2fv(struct gl_context *ctx, const struct marshal_cmd_RasterPos2fv *cmd, const uint64_t *last)
1901 const GLfloat * v = cmd->v;
1904 assert (cmd_size == cmd->cmd_base.cmd_size);
1912 struct marshal_cmd_RasterPos2fv *cmd;
1913 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2fv, cmd_size);
1914 memcpy(cmd->v, v, 2 * sizeof(GLfloat));
1926 _mesa_unmarshal_RasterPos2i(struct gl_context *ctx, const struct marshal_cmd_RasterPos2i *cmd, const uint64_t *last)
1928 GLint x = cmd->x;
1929 GLint y = cmd->y;
1932 assert (cmd_size == cmd->cmd_base.cmd_size);
1940 struct marshal_cmd_RasterPos2i *cmd;
1941 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2i, cmd_size);
1942 cmd->x = x;
1943 cmd->y = y;
1954 _mesa_unmarshal_RasterPos2iv(struct gl_context *ctx, const struct marshal_cmd_RasterPos2iv *cmd, const uint64_t *last)
1956 const GLint * v = cmd->v;
1959 assert (cmd_size == cmd->cmd_base.cmd_size);
1967 struct marshal_cmd_RasterPos2iv *cmd;
1968 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2iv, cmd_size);
1969 memcpy(cmd->v, v, 2 * sizeof(GLint));
1981 _mesa_unmarshal_RasterPos2s(struct gl_context *ctx, const struct marshal_cmd_RasterPos2s *cmd, const uint64_t *last)
1983 GLshort x = cmd->x;
1984 GLshort y = cmd->y;
1987 assert (cmd_size == cmd->cmd_base.cmd_size);
1995 struct marshal_cmd_RasterPos2s *cmd;
1996 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2s, cmd_size);
1997 cmd->x = x;
1998 cmd->y = y;
2009 _mesa_unmarshal_RasterPos2sv(struct gl_context *ctx, const struct marshal_cmd_RasterPos2sv *cmd, const uint64_t *last)
2011 const GLshort * v = cmd->v;
2014 assert (cmd_size == cmd->cmd_base.cmd_size);
2022 struct marshal_cmd_RasterPos2sv *cmd;
2023 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos2sv, cmd_size);
2024 memcpy(cmd->v, v, 2 * sizeof(GLshort));
2037 _mesa_unmarshal_RasterPos3d(struct gl_context *ctx, const struct marshal_cmd_RasterPos3d *cmd, const uint64_t *last)
2039 GLdouble x = cmd->x;
2040 GLdouble y = cmd->y;
2041 GLdouble z = cmd->z;
2044 assert (cmd_size == cmd->cmd_base.cmd_size);
2052 struct marshal_cmd_RasterPos3d *cmd;
2053 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3d, cmd_size);
2054 cmd->x = x;
2055 cmd->y = y;
2056 cmd->z = z;
2067 _mesa_unmarshal_RasterPos3dv(struct gl_context *ctx, const struct marshal_cmd_RasterPos3dv *cmd, const uint64_t *last)
2069 const GLdouble * v = cmd->v;
2072 assert (cmd_size == cmd->cmd_base.cmd_size);
2080 struct marshal_cmd_RasterPos3dv *cmd;
2081 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3dv, cmd_size);
2082 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
2095 _mesa_unmarshal_RasterPos3f(struct gl_context *ctx, const struct marshal_cmd_RasterPos3f *cmd, const uint64_t *last)
2097 GLfloat x = cmd->x;
2098 GLfloat y = cmd->y;
2099 GLfloat z = cmd->z;
2102 assert (cmd_size == cmd->cmd_base.cmd_size);
2110 struct marshal_cmd_RasterPos3f *cmd;
2111 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3f, cmd_size);
2112 cmd->x = x;
2113 cmd->y = y;
2114 cmd->z = z;
2125 _mesa_unmarshal_RasterPos3fv(struct gl_context *ctx, const struct marshal_cmd_RasterPos3fv *cmd, const uint64_t *last)
2127 const GLfloat * v = cmd->v;
2130 assert (cmd_size == cmd->cmd_base.cmd_size);
2138 struct marshal_cmd_RasterPos3fv *cmd;
2139 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3fv, cmd_size);
2140 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
2153 _mesa_unmarshal_RasterPos3i(struct gl_context *ctx, const struct marshal_cmd_RasterPos3i *cmd, const uint64_t *last)
2155 GLint x = cmd->x;
2156 GLint y = cmd->y;
2157 GLint z = cmd->z;
2160 assert (cmd_size == cmd->cmd_base.cmd_size);
2168 struct marshal_cmd_RasterPos3i *cmd;
2169 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3i, cmd_size);
2170 cmd->x = x;
2171 cmd->y = y;
2172 cmd->z = z;
2183 _mesa_unmarshal_RasterPos3iv(struct gl_context *ctx, const struct marshal_cmd_RasterPos3iv *cmd, const uint64_t *last)
2185 const GLint * v = cmd->v;
2188 assert (cmd_size == cmd->cmd_base.cmd_size);
2196 struct marshal_cmd_RasterPos3iv *cmd;
2197 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3iv, cmd_size);
2198 memcpy(cmd->v, v, 3 * sizeof(GLint));
2211 _mesa_unmarshal_RasterPos3s(struct gl_context *ctx, const struct marshal_cmd_RasterPos3s *cmd, const uint64_t *last)
2213 GLshort x = cmd->x;
2214 GLshort y = cmd->y;
2215 GLshort z = cmd->z;
2218 assert (cmd_size == cmd->cmd_base.cmd_size);
2226 struct marshal_cmd_RasterPos3s *cmd;
2227 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3s, cmd_size);
2228 cmd->x = x;
2229 cmd->y = y;
2230 cmd->z = z;
2241 _mesa_unmarshal_RasterPos3sv(struct gl_context *ctx, const struct marshal_cmd_RasterPos3sv *cmd, const uint64_t *last)
2243 const GLshort * v = cmd->v;
2246 assert (cmd_size == cmd->cmd_base.cmd_size);
2254 struct marshal_cmd_RasterPos3sv *cmd;
2255 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos3sv, cmd_size);
2256 memcpy(cmd->v, v, 3 * sizeof(GLshort));
2270 _mesa_unmarshal_RasterPos4d(struct gl_context *ctx, const struct marshal_cmd_RasterPos4d *cmd, const uint64_t *last)
2272 GLdouble x = cmd->x;
2273 GLdouble y = cmd->y;
2274 GLdouble z = cmd->z;
2275 GLdouble w = cmd->w;
2278 assert (cmd_size == cmd->cmd_base.cmd_size);
2286 struct marshal_cmd_RasterPos4d *cmd;
2287 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4d, cmd_size);
2288 cmd->x = x;
2289 cmd->y = y;
2290 cmd->z = z;
2291 cmd->w = w;
2302 _mesa_unmarshal_RasterPos4dv(struct gl_context *ctx, const struct marshal_cmd_RasterPos4dv *cmd, const uint64_t *last)
2304 const GLdouble * v = cmd->v;
2307 assert (cmd_size == cmd->cmd_base.cmd_size);
2315 struct marshal_cmd_RasterPos4dv *cmd;
2316 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4dv, cmd_size);
2317 memcpy(cmd->v, v, 4 * sizeof(GLdouble));
2331 _mesa_unmarshal_RasterPos4f(struct gl_context *ctx, const struct marshal_cmd_RasterPos4f *cmd, const uint64_t *last)
2333 GLfloat x = cmd->x;
2334 GLfloat y = cmd->y;
2335 GLfloat z = cmd->z;
2336 GLfloat w = cmd->w;
2339 assert (cmd_size == cmd->cmd_base.cmd_size);
2347 struct marshal_cmd_RasterPos4f *cmd;
2348 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4f, cmd_size);
2349 cmd->x = x;
2350 cmd->y = y;
2351 cmd->z = z;
2352 cmd->w = w;
2363 _mesa_unmarshal_RasterPos4fv(struct gl_context *ctx, const struct marshal_cmd_RasterPos4fv *cmd, const uint64_t *last)
2365 const GLfloat * v = cmd->v;
2368 assert (cmd_size == cmd->cmd_base.cmd_size);
2376 struct marshal_cmd_RasterPos4fv *cmd;
2377 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4fv, cmd_size);
2378 memcpy(cmd->v, v, 4 * sizeof(GLfloat));
2392 _mesa_unmarshal_RasterPos4i(struct gl_context *ctx, const struct marshal_cmd_RasterPos4i *cmd, const uint64_t *last)
2394 GLint x = cmd->x;
2395 GLint y = cmd->y;
2396 GLint z = cmd->z;
2397 GLint w = cmd->w;
2400 assert (cmd_size == cmd->cmd_base.cmd_size);
2408 struct marshal_cmd_RasterPos4i *cmd;
2409 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4i, cmd_size);
2410 cmd->x = x;
2411 cmd->y = y;
2412 cmd->z = z;
2413 cmd->w = w;
2424 _mesa_unmarshal_RasterPos4iv(struct gl_context *ctx, const struct marshal_cmd_RasterPos4iv *cmd, const uint64_t *last)
2426 const GLint * v = cmd->v;
2429 assert (cmd_size == cmd->cmd_base.cmd_size);
2437 struct marshal_cmd_RasterPos4iv *cmd;
2438 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4iv, cmd_size);
2439 memcpy(cmd->v, v, 4 * sizeof(GLint));
2453 _mesa_unmarshal_RasterPos4s(struct gl_context *ctx, const struct marshal_cmd_RasterPos4s *cmd, const uint64_t *last)
2455 GLshort x = cmd->x;
2456 GLshort y = cmd->y;
2457 GLshort z = cmd->z;
2458 GLshort w = cmd->w;
2461 assert (cmd_size == cmd->cmd_base.cmd_size);
2469 struct marshal_cmd_RasterPos4s *cmd;
2470 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4s, cmd_size);
2471 cmd->x = x;
2472 cmd->y = y;
2473 cmd->z = z;
2474 cmd->w = w;
2485 _mesa_unmarshal_RasterPos4sv(struct gl_context *ctx, const struct marshal_cmd_RasterPos4sv *cmd, const uint64_t *last)
2487 const GLshort * v = cmd->v;
2490 assert (cmd_size == cmd->cmd_base.cmd_size);
2498 struct marshal_cmd_RasterPos4sv *cmd;
2499 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RasterPos4sv, cmd_size);
2500 memcpy(cmd->v, v, 4 * sizeof(GLshort));
2514 _mesa_unmarshal_Rectd(struct gl_context *ctx, const struct marshal_cmd_Rectd *cmd, const uint64_t *last)
2516 GLdouble x1 = cmd->x1;
2517 GLdouble y1 = cmd->y1;
2518 GLdouble x2 = cmd->x2;
2519 GLdouble y2 = cmd->y2;
2522 assert (cmd_size == cmd->cmd_base.cmd_size);
2530 struct marshal_cmd_Rectd *cmd;
2531 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rectd, cmd_size);
2532 cmd->x1 = x1;
2533 cmd->y1 = y1;
2534 cmd->x2 = x2;
2535 cmd->y2 = y2;
2547 _mesa_unmarshal_Rectdv(struct gl_context *ctx, const struct marshal_cmd_Rectdv *cmd, const uint64_t *last)
2549 const GLdouble * v1 = cmd->v1;
2550 const GLdouble * v2 = cmd->v2;
2553 assert (cmd_size == cmd->cmd_base.cmd_size);
2561 struct marshal_cmd_Rectdv *cmd;
2562 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rectdv, cmd_size);
2563 memcpy(cmd->v1, v1, 2 * sizeof(GLdouble));
2564 memcpy(cmd->v2, v2, 2 * sizeof(GLdouble));
2578 _mesa_unmarshal_Rectf(struct gl_context *ctx, const struct marshal_cmd_Rectf *cmd, const uint64_t *last)
2580 GLfloat x1 = cmd->x1;
2581 GLfloat y1 = cmd->y1;
2582 GLfloat x2 = cmd->x2;
2583 GLfloat y2 = cmd->y2;
2586 assert (cmd_size == cmd->cmd_base.cmd_size);
2594 struct marshal_cmd_Rectf *cmd;
2595 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rectf, cmd_size);
2596 cmd->x1 = x1;
2597 cmd->y1 = y1;
2598 cmd->x2 = x2;
2599 cmd->y2 = y2;
2611 _mesa_unmarshal_Rectfv(struct gl_context *ctx, const struct marshal_cmd_Rectfv *cmd, const uint64_t *last)
2613 const GLfloat * v1 = cmd->v1;
2614 const GLfloat * v2 = cmd->v2;
2617 assert (cmd_size == cmd->cmd_base.cmd_size);
2625 struct marshal_cmd_Rectfv *cmd;
2626 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rectfv, cmd_size);
2627 memcpy(cmd->v1, v1, 2 * sizeof(GLfloat));
2628 memcpy(cmd->v2, v2, 2 * sizeof(GLfloat));
2642 _mesa_unmarshal_Recti(struct gl_context *ctx, const struct marshal_cmd_Recti *cmd, const uint64_t *last)
2644 GLint x1 = cmd->x1;
2645 GLint y1 = cmd->y1;
2646 GLint x2 = cmd->x2;
2647 GLint y2 = cmd->y2;
2650 assert (cmd_size == cmd->cmd_base.cmd_size);
2658 struct marshal_cmd_Recti *cmd;
2659 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Recti, cmd_size);
2660 cmd->x1 = x1;
2661 cmd->y1 = y1;
2662 cmd->x2 = x2;
2663 cmd->y2 = y2;
2675 _mesa_unmarshal_Rectiv(struct gl_context *ctx, const struct marshal_cmd_Rectiv *cmd, const uint64_t *last)
2677 const GLint * v1 = cmd->v1;
2678 const GLint * v2 = cmd->v2;
2681 assert (cmd_size == cmd->cmd_base.cmd_size);
2689 struct marshal_cmd_Rectiv *cmd;
2690 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rectiv, cmd_size);
2691 memcpy(cmd->v1, v1, 2 * sizeof(GLint));
2692 memcpy(cmd->v2, v2, 2 * sizeof(GLint));
2706 _mesa_unmarshal_Rects(struct gl_context *ctx, const struct marshal_cmd_Rects *cmd, const uint64_t *last)
2708 GLshort x1 = cmd->x1;
2709 GLshort y1 = cmd->y1;
2710 GLshort x2 = cmd->x2;
2711 GLshort y2 = cmd->y2;
2714 assert (cmd_size == cmd->cmd_base.cmd_size);
2722 struct marshal_cmd_Rects *cmd;
2723 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rects, cmd_size);
2724 cmd->x1 = x1;
2725 cmd->y1 = y1;
2726 cmd->x2 = x2;
2727 cmd->y2 = y2;
2739 _mesa_unmarshal_Rectsv(struct gl_context *ctx, const struct marshal_cmd_Rectsv *cmd, const uint64_t *last)
2741 const GLshort * v1 = cmd->v1;
2742 const GLshort * v2 = cmd->v2;
2745 assert (cmd_size == cmd->cmd_base.cmd_size);
2753 struct marshal_cmd_Rectsv *cmd;
2754 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rectsv, cmd_size);
2755 memcpy(cmd->v1, v1, 2 * sizeof(GLshort));
2756 memcpy(cmd->v2, v2, 2 * sizeof(GLshort));
2767 _mesa_unmarshal_TexCoord1d(struct gl_context *ctx, const struct marshal_cmd_TexCoord1d *cmd, const uint64_t *last)
2769 GLdouble s = cmd->s;
2772 assert (cmd_size == cmd->cmd_base.cmd_size);
2780 struct marshal_cmd_TexCoord1d *cmd;
2781 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1d, cmd_size);
2782 cmd->s = s;
2793 _mesa_unmarshal_TexCoord1dv(struct gl_context *ctx, const struct marshal_cmd_TexCoord1dv *cmd, const uint64_t *last)
2795 const GLdouble * v = cmd->v;
2798 assert (cmd_size == cmd->cmd_base.cmd_size);
2806 struct marshal_cmd_TexCoord1dv *cmd;
2807 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1dv, cmd_size);
2808 memcpy(cmd->v, v, 1 * sizeof(GLdouble));
2819 _mesa_unmarshal_TexCoord1f(struct gl_context *ctx, const struct marshal_cmd_TexCoord1f *cmd, const uint64_t *last)
2821 GLfloat s = cmd->s;
2824 assert (cmd_size == cmd->cmd_base.cmd_size);
2832 struct marshal_cmd_TexCoord1f *cmd;
2833 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1f, cmd_size);
2834 cmd->s = s;
2845 _mesa_unmarshal_TexCoord1fv(struct gl_context *ctx, const struct marshal_cmd_TexCoord1fv *cmd, const uint64_t *last)
2847 const GLfloat * v = cmd->v;
2850 assert (cmd_size == cmd->cmd_base.cmd_size);
2858 struct marshal_cmd_TexCoord1fv *cmd;
2859 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1fv, cmd_size);
2860 memcpy(cmd->v, v, 1 * sizeof(GLfloat));
2871 _mesa_unmarshal_TexCoord1i(struct gl_context *ctx, const struct marshal_cmd_TexCoord1i *cmd, const uint64_t *last)
2873 GLint s = cmd->s;
2876 assert (cmd_size == cmd->cmd_base.cmd_size);
2884 struct marshal_cmd_TexCoord1i *cmd;
2885 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1i, cmd_size);
2886 cmd->s = s;
2897 _mesa_unmarshal_TexCoord1iv(struct gl_context *ctx, const struct marshal_cmd_TexCoord1iv *cmd, const uint64_t *last)
2899 const GLint * v = cmd->v;
2902 assert (cmd_size == cmd->cmd_base.cmd_size);
2910 struct marshal_cmd_TexCoord1iv *cmd;
2911 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1iv, cmd_size);
2912 memcpy(cmd->v, v, 1 * sizeof(GLint));
2923 _mesa_unmarshal_TexCoord1s(struct gl_context *ctx, const struct marshal_cmd_TexCoord1s *cmd, const uint64_t *last)
2925 GLshort s = cmd->s;
2928 assert (cmd_size == cmd->cmd_base.cmd_size);
2936 struct marshal_cmd_TexCoord1s *cmd;
2937 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1s, cmd_size);
2938 cmd->s = s;
2949 _mesa_unmarshal_TexCoord1sv(struct gl_context *ctx, const struct marshal_cmd_TexCoord1sv *cmd, const uint64_t *last)
2951 const GLshort * v = cmd->v;
2954 assert (cmd_size == cmd->cmd_base.cmd_size);
2962 struct marshal_cmd_TexCoord1sv *cmd;
2963 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1sv, cmd_size);
2964 memcpy(cmd->v, v, 1 * sizeof(GLshort));
2976 _mesa_unmarshal_TexCoord2d(struct gl_context *ctx, const struct marshal_cmd_TexCoord2d *cmd, const uint64_t *last)
2978 GLdouble s = cmd->s;
2979 GLdouble t = cmd->t;
2982 assert (cmd_size == cmd->cmd_base.cmd_size);
2990 struct marshal_cmd_TexCoord2d *cmd;
2991 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2d, cmd_size);
2992 cmd->s = s;
2993 cmd->t = t;
3004 _mesa_unmarshal_TexCoord2dv(struct gl_context *ctx, const struct marshal_cmd_TexCoord2dv *cmd, const uint64_t *last)
3006 const GLdouble * v = cmd->v;
3009 assert (cmd_size == cmd->cmd_base.cmd_size);
3017 struct marshal_cmd_TexCoord2dv *cmd;
3018 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2dv, cmd_size);
3019 memcpy(cmd->v, v, 2 * sizeof(GLdouble));
3031 _mesa_unmarshal_TexCoord2f(struct gl_context *ctx, const struct marshal_cmd_TexCoord2f *cmd, const uint64_t *last)
3033 GLfloat s = cmd->s;
3034 GLfloat t = cmd->t;
3037 assert (cmd_size == cmd->cmd_base.cmd_size);
3045 struct marshal_cmd_TexCoord2f *cmd;
3046 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2f, cmd_size);
3047 cmd->s = s;
3048 cmd->t = t;
3059 _mesa_unmarshal_TexCoord2fv(struct gl_context *ctx, const struct marshal_cmd_TexCoord2fv *cmd, const uint64_t *last)
3061 const GLfloat * v = cmd->v;
3064 assert (cmd_size == cmd->cmd_base.cmd_size);
3072 struct marshal_cmd_TexCoord2fv *cmd;
3073 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2fv, cmd_size);
3074 memcpy(cmd->v, v, 2 * sizeof(GLfloat));
3086 _mesa_unmarshal_TexCoord2i(struct gl_context *ctx, const struct marshal_cmd_TexCoord2i *cmd, const uint64_t *last)
3088 GLint s = cmd->s;
3089 GLint t = cmd->t;
3092 assert (cmd_size == cmd->cmd_base.cmd_size);
3100 struct marshal_cmd_TexCoord2i *cmd;
3101 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2i, cmd_size);
3102 cmd->s = s;
3103 cmd->t = t;
3114 _mesa_unmarshal_TexCoord2iv(struct gl_context *ctx, const struct marshal_cmd_TexCoord2iv *cmd, const uint64_t *last)
3116 const GLint * v = cmd->v;
3119 assert (cmd_size == cmd->cmd_base.cmd_size);
3127 struct marshal_cmd_TexCoord2iv *cmd;
3128 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2iv, cmd_size);
3129 memcpy(cmd->v, v, 2 * sizeof(GLint));
3141 _mesa_unmarshal_TexCoord2s(struct gl_context *ctx, const struct marshal_cmd_TexCoord2s *cmd, const uint64_t *last)
3143 GLshort s = cmd->s;
3144 GLshort t = cmd->t;
3147 assert (cmd_size == cmd->cmd_base.cmd_size);
3155 struct marshal_cmd_TexCoord2s *cmd;
3156 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2s, cmd_size);
3157 cmd->s = s;
3158 cmd->t = t;
3169 _mesa_unmarshal_TexCoord2sv(struct gl_context *ctx, const struct marshal_cmd_TexCoord2sv *cmd, const uint64_t *last)
3171 const GLshort * v = cmd->v;
3174 assert (cmd_size == cmd->cmd_base.cmd_size);
3182 struct marshal_cmd_TexCoord2sv *cmd;
3183 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2sv, cmd_size);
3184 memcpy(cmd->v, v, 2 * sizeof(GLshort));
3197 _mesa_unmarshal_TexCoord3d(struct gl_context *ctx, const struct marshal_cmd_TexCoord3d *cmd, const uint64_t *last)
3199 GLdouble s = cmd->s;
3200 GLdouble t = cmd->t;
3201 GLdouble r = cmd->r;
3204 assert (cmd_size == cmd->cmd_base.cmd_size);
3212 struct marshal_cmd_TexCoord3d *cmd;
3213 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3d, cmd_size);
3214 cmd->s = s;
3215 cmd->t = t;
3216 cmd->r = r;
3227 _mesa_unmarshal_TexCoord3dv(struct gl_context *ctx, const struct marshal_cmd_TexCoord3dv *cmd, const uint64_t *last)
3229 const GLdouble * v = cmd->v;
3232 assert (cmd_size == cmd->cmd_base.cmd_size);
3240 struct marshal_cmd_TexCoord3dv *cmd;
3241 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3dv, cmd_size);
3242 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
3255 _mesa_unmarshal_TexCoord3f(struct gl_context *ctx, const struct marshal_cmd_TexCoord3f *cmd, const uint64_t *last)
3257 GLfloat s = cmd->s;
3258 GLfloat t = cmd->t;
3259 GLfloat r = cmd->r;
3262 assert (cmd_size == cmd->cmd_base.cmd_size);
3270 struct marshal_cmd_TexCoord3f *cmd;
3271 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3f, cmd_size);
3272 cmd->s = s;
3273 cmd->t = t;
3274 cmd->r = r;
3285 _mesa_unmarshal_TexCoord3fv(struct gl_context *ctx, const struct marshal_cmd_TexCoord3fv *cmd, const uint64_t *last)
3287 const GLfloat * v = cmd->v;
3290 assert (cmd_size == cmd->cmd_base.cmd_size);
3298 struct marshal_cmd_TexCoord3fv *cmd;
3299 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3fv, cmd_size);
3300 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
3313 _mesa_unmarshal_TexCoord3i(struct gl_context *ctx, const struct marshal_cmd_TexCoord3i *cmd, const uint64_t *last)
3315 GLint s = cmd->s;
3316 GLint t = cmd->t;
3317 GLint r = cmd->r;
3320 assert (cmd_size == cmd->cmd_base.cmd_size);
3328 struct marshal_cmd_TexCoord3i *cmd;
3329 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3i, cmd_size);
3330 cmd->s = s;
3331 cmd->t = t;
3332 cmd->r = r;
3343 _mesa_unmarshal_TexCoord3iv(struct gl_context *ctx, const struct marshal_cmd_TexCoord3iv *cmd, const uint64_t *last)
3345 const GLint * v = cmd->v;
3348 assert (cmd_size == cmd->cmd_base.cmd_size);
3356 struct marshal_cmd_TexCoord3iv *cmd;
3357 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3iv, cmd_size);
3358 memcpy(cmd->v, v, 3 * sizeof(GLint));
3371 _mesa_unmarshal_TexCoord3s(struct gl_context *ctx, const struct marshal_cmd_TexCoord3s *cmd, const uint64_t *last)
3373 GLshort s = cmd->s;
3374 GLshort t = cmd->t;
3375 GLshort r = cmd->r;
3378 assert (cmd_size == cmd->cmd_base.cmd_size);
3386 struct marshal_cmd_TexCoord3s *cmd;
3387 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3s, cmd_size);
3388 cmd->s = s;
3389 cmd->t = t;
3390 cmd->r = r;
3401 _mesa_unmarshal_TexCoord3sv(struct gl_context *ctx, const struct marshal_cmd_TexCoord3sv *cmd, const uint64_t *last)
3403 const GLshort * v = cmd->v;
3406 assert (cmd_size == cmd->cmd_base.cmd_size);
3414 struct marshal_cmd_TexCoord3sv *cmd;
3415 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3sv, cmd_size);
3416 memcpy(cmd->v, v, 3 * sizeof(GLshort));
3430 _mesa_unmarshal_TexCoord4d(struct gl_context *ctx, const struct marshal_cmd_TexCoord4d *cmd, const uint64_t *last)
3432 GLdouble s = cmd->s;
3433 GLdouble t = cmd->t;
3434 GLdouble r = cmd->r;
3435 GLdouble q = cmd->q;
3438 assert (cmd_size == cmd->cmd_base.cmd_size);
3446 struct marshal_cmd_TexCoord4d *cmd;
3447 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4d, cmd_size);
3448 cmd->s = s;
3449 cmd->t = t;
3450 cmd->r = r;
3451 cmd->q = q;
3462 _mesa_unmarshal_TexCoord4dv(struct gl_context *ctx, const struct marshal_cmd_TexCoord4dv *cmd, const uint64_t *last)
3464 const GLdouble * v = cmd->v;
3467 assert (cmd_size == cmd->cmd_base.cmd_size);
3475 struct marshal_cmd_TexCoord4dv *cmd;
3476 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4dv, cmd_size);
3477 memcpy(cmd->v, v, 4 * sizeof(GLdouble));
3491 _mesa_unmarshal_TexCoord4f(struct gl_context *ctx, const struct marshal_cmd_TexCoord4f *cmd, const uint64_t *last)
3493 GLfloat s = cmd->s;
3494 GLfloat t = cmd->t;
3495 GLfloat r = cmd->r;
3496 GLfloat q = cmd->q;
3499 assert (cmd_size == cmd->cmd_base.cmd_size);
3507 struct marshal_cmd_TexCoord4f *cmd;
3508 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4f, cmd_size);
3509 cmd->s = s;
3510 cmd->t = t;
3511 cmd->r = r;
3512 cmd->q = q;
3523 _mesa_unmarshal_TexCoord4fv(struct gl_context *ctx, const struct marshal_cmd_TexCoord4fv *cmd, const uint64_t *last)
3525 const GLfloat * v = cmd->v;
3528 assert (cmd_size == cmd->cmd_base.cmd_size);
3536 struct marshal_cmd_TexCoord4fv *cmd;
3537 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4fv, cmd_size);
3538 memcpy(cmd->v, v, 4 * sizeof(GLfloat));
3552 _mesa_unmarshal_TexCoord4i(struct gl_context *ctx, const struct marshal_cmd_TexCoord4i *cmd, const uint64_t *last)
3554 GLint s = cmd->s;
3555 GLint t = cmd->t;
3556 GLint r = cmd->r;
3557 GLint q = cmd->q;
3560 assert (cmd_size == cmd->cmd_base.cmd_size);
3568 struct marshal_cmd_TexCoord4i *cmd;
3569 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4i, cmd_size);
3570 cmd->s = s;
3571 cmd->t = t;
3572 cmd->r = r;
3573 cmd->q = q;
3584 _mesa_unmarshal_TexCoord4iv(struct gl_context *ctx, const struct marshal_cmd_TexCoord4iv *cmd, const uint64_t *last)
3586 const GLint * v = cmd->v;
3589 assert (cmd_size == cmd->cmd_base.cmd_size);
3597 struct marshal_cmd_TexCoord4iv *cmd;
3598 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4iv, cmd_size);
3599 memcpy(cmd->v, v, 4 * sizeof(GLint));
3613 _mesa_unmarshal_TexCoord4s(struct gl_context *ctx, const struct marshal_cmd_TexCoord4s *cmd, const uint64_t *last)
3615 GLshort s = cmd->s;
3616 GLshort t = cmd->t;
3617 GLshort r = cmd->r;
3618 GLshort q = cmd->q;
3621 assert (cmd_size == cmd->cmd_base.cmd_size);
3629 struct marshal_cmd_TexCoord4s *cmd;
3630 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4s, cmd_size);
3631 cmd->s = s;
3632 cmd->t = t;
3633 cmd->r = r;
3634 cmd->q = q;
3645 _mesa_unmarshal_TexCoord4sv(struct gl_context *ctx, const struct marshal_cmd_TexCoord4sv *cmd, const uint64_t *last)
3647 const GLshort * v = cmd->v;
3650 assert (cmd_size == cmd->cmd_base.cmd_size);
3658 struct marshal_cmd_TexCoord4sv *cmd;
3659 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4sv, cmd_size);
3660 memcpy(cmd->v, v, 4 * sizeof(GLshort));
3672 _mesa_unmarshal_Vertex2d(struct gl_context *ctx, const struct marshal_cmd_Vertex2d *cmd, const uint64_t *last)
3674 GLdouble x = cmd->x;
3675 GLdouble y = cmd->y;
3678 assert (cmd_size == cmd->cmd_base.cmd_size);
3686 struct marshal_cmd_Vertex2d *cmd;
3687 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2d, cmd_size);
3688 cmd->x = x;
3689 cmd->y = y;
3700 _mesa_unmarshal_Vertex2dv(struct gl_context *ctx, const struct marshal_cmd_Vertex2dv *cmd, const uint64_t *last)
3702 const GLdouble * v = cmd->v;
3705 assert (cmd_size == cmd->cmd_base.cmd_size);
3713 struct marshal_cmd_Vertex2dv *cmd;
3714 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2dv, cmd_size);
3715 memcpy(cmd->v, v, 2 * sizeof(GLdouble));
3727 _mesa_unmarshal_Vertex2f(struct gl_context *ctx, const struct marshal_cmd_Vertex2f *cmd, const uint64_t *last)
3729 GLfloat x = cmd->x;
3730 GLfloat y = cmd->y;
3733 assert (cmd_size == cmd->cmd_base.cmd_size);
3741 struct marshal_cmd_Vertex2f *cmd;
3742 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2f, cmd_size);
3743 cmd->x = x;
3744 cmd->y = y;
3755 _mesa_unmarshal_Vertex2fv(struct gl_context *ctx, const struct marshal_cmd_Vertex2fv *cmd, const uint64_t *last)
3757 const GLfloat * v = cmd->v;
3760 assert (cmd_size == cmd->cmd_base.cmd_size);
3768 struct marshal_cmd_Vertex2fv *cmd;
3769 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2fv, cmd_size);
3770 memcpy(cmd->v, v, 2 * sizeof(GLfloat));
3782 _mesa_unmarshal_Vertex2i(struct gl_context *ctx, const struct marshal_cmd_Vertex2i *cmd, const uint64_t *last)
3784 GLint x = cmd->x;
3785 GLint y = cmd->y;
3788 assert (cmd_size == cmd->cmd_base.cmd_size);
3796 struct marshal_cmd_Vertex2i *cmd;
3797 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2i, cmd_size);
3798 cmd->x = x;
3799 cmd->y = y;
3810 _mesa_unmarshal_Vertex2iv(struct gl_context *ctx, const struct marshal_cmd_Vertex2iv *cmd, const uint64_t *last)
3812 const GLint * v = cmd->v;
3815 assert (cmd_size == cmd->cmd_base.cmd_size);
3823 struct marshal_cmd_Vertex2iv *cmd;
3824 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2iv, cmd_size);
3825 memcpy(cmd->v, v, 2 * sizeof(GLint));
3837 _mesa_unmarshal_Vertex2s(struct gl_context *ctx, const struct marshal_cmd_Vertex2s *cmd, const uint64_t *last)
3839 GLshort x = cmd->x;
3840 GLshort y = cmd->y;
3843 assert (cmd_size == cmd->cmd_base.cmd_size);
3851 struct marshal_cmd_Vertex2s *cmd;
3852 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2s, cmd_size);
3853 cmd->x = x;
3854 cmd->y = y;
3865 _mesa_unmarshal_Vertex2sv(struct gl_context *ctx, const struct marshal_cmd_Vertex2sv *cmd, const uint64_t *last)
3867 const GLshort * v = cmd->v;
3870 assert (cmd_size == cmd->cmd_base.cmd_size);
3878 struct marshal_cmd_Vertex2sv *cmd;
3879 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2sv, cmd_size);
3880 memcpy(cmd->v, v, 2 * sizeof(GLshort));
3893 _mesa_unmarshal_Vertex3d(struct gl_context *ctx, const struct marshal_cmd_Vertex3d *cmd, const uint64_t *last)
3895 GLdouble x = cmd->x;
3896 GLdouble y = cmd->y;
3897 GLdouble z = cmd->z;
3900 assert (cmd_size == cmd->cmd_base.cmd_size);
3908 struct marshal_cmd_Vertex3d *cmd;
3909 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3d, cmd_size);
3910 cmd->x = x;
3911 cmd->y = y;
3912 cmd->z = z;
3923 _mesa_unmarshal_Vertex3dv(struct gl_context *ctx, const struct marshal_cmd_Vertex3dv *cmd, const uint64_t *last)
3925 const GLdouble * v = cmd->v;
3928 assert (cmd_size == cmd->cmd_base.cmd_size);
3936 struct marshal_cmd_Vertex3dv *cmd;
3937 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3dv, cmd_size);
3938 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
3951 _mesa_unmarshal_Vertex3f(struct gl_context *ctx, const struct marshal_cmd_Vertex3f *cmd, const uint64_t *last)
3953 GLfloat x = cmd->x;
3954 GLfloat y = cmd->y;
3955 GLfloat z = cmd->z;
3958 assert (cmd_size == cmd->cmd_base.cmd_size);
3966 struct marshal_cmd_Vertex3f *cmd;
3967 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3f, cmd_size);
3968 cmd->x = x;
3969 cmd->y = y;
3970 cmd->z = z;
3981 _mesa_unmarshal_Vertex3fv(struct gl_context *ctx, const struct marshal_cmd_Vertex3fv *cmd, const uint64_t *last)
3983 const GLfloat * v = cmd->v;
3986 assert (cmd_size == cmd->cmd_base.cmd_size);
3994 struct marshal_cmd_Vertex3fv *cmd;
3995 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3fv, cmd_size);
3996 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
4009 _mesa_unmarshal_Vertex3i(struct gl_context *ctx, const struct marshal_cmd_Vertex3i *cmd, const uint64_t *last)
4011 GLint x = cmd->x;
4012 GLint y = cmd->y;
4013 GLint z = cmd->z;
4016 assert (cmd_size == cmd->cmd_base.cmd_size);
4024 struct marshal_cmd_Vertex3i *cmd;
4025 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3i, cmd_size);
4026 cmd->x = x;
4027 cmd->y = y;
4028 cmd->z = z;
4039 _mesa_unmarshal_Vertex3iv(struct gl_context *ctx, const struct marshal_cmd_Vertex3iv *cmd, const uint64_t *last)
4041 const GLint * v = cmd->v;
4044 assert (cmd_size == cmd->cmd_base.cmd_size);
4052 struct marshal_cmd_Vertex3iv *cmd;
4053 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3iv, cmd_size);
4054 memcpy(cmd->v, v, 3 * sizeof(GLint));
4067 _mesa_unmarshal_Vertex3s(struct gl_context *ctx, const struct marshal_cmd_Vertex3s *cmd, const uint64_t *last)
4069 GLshort x = cmd->x;
4070 GLshort y = cmd->y;
4071 GLshort z = cmd->z;
4074 assert (cmd_size == cmd->cmd_base.cmd_size);
4082 struct marshal_cmd_Vertex3s *cmd;
4083 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3s, cmd_size);
4084 cmd->x = x;
4085 cmd->y = y;
4086 cmd->z = z;
4097 _mesa_unmarshal_Vertex3sv(struct gl_context *ctx, const struct marshal_cmd_Vertex3sv *cmd, const uint64_t *last)
4099 const GLshort * v = cmd->v;
4102 assert (cmd_size == cmd->cmd_base.cmd_size);
4110 struct marshal_cmd_Vertex3sv *cmd;
4111 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3sv, cmd_size);
4112 memcpy(cmd->v, v, 3 * sizeof(GLshort));
4126 _mesa_unmarshal_Vertex4d(struct gl_context *ctx, const struct marshal_cmd_Vertex4d *cmd, const uint64_t *last)
4128 GLdouble x = cmd->x;
4129 GLdouble y = cmd->y;
4130 GLdouble z = cmd->z;
4131 GLdouble w = cmd->w;
4134 assert (cmd_size == cmd->cmd_base.cmd_size);
4142 struct marshal_cmd_Vertex4d *cmd;
4143 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4d, cmd_size);
4144 cmd->x = x;
4145 cmd->y = y;
4146 cmd->z = z;
4147 cmd->w = w;
4158 _mesa_unmarshal_Vertex4dv(struct gl_context *ctx, const struct marshal_cmd_Vertex4dv *cmd, const uint64_t *last)
4160 const GLdouble * v = cmd->v;
4163 assert (cmd_size == cmd->cmd_base.cmd_size);
4171 struct marshal_cmd_Vertex4dv *cmd;
4172 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4dv, cmd_size);
4173 memcpy(cmd->v, v, 4 * sizeof(GLdouble));
4187 _mesa_unmarshal_Vertex4f(struct gl_context *ctx, const struct marshal_cmd_Vertex4f *cmd, const uint64_t *last)
4189 GLfloat x = cmd->x;
4190 GLfloat y = cmd->y;
4191 GLfloat z = cmd->z;
4192 GLfloat w = cmd->w;
4195 assert (cmd_size == cmd->cmd_base.cmd_size);
4203 struct marshal_cmd_Vertex4f *cmd;
4204 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4f, cmd_size);
4205 cmd->x = x;
4206 cmd->y = y;
4207 cmd->z = z;
4208 cmd->w = w;
4219 _mesa_unmarshal_Vertex4fv(struct gl_context *ctx, const struct marshal_cmd_Vertex4fv *cmd, const uint64_t *last)
4221 const GLfloat * v = cmd->v;
4224 assert (cmd_size == cmd->cmd_base.cmd_size);
4232 struct marshal_cmd_Vertex4fv *cmd;
4233 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4fv, cmd_size);
4234 memcpy(cmd->v, v, 4 * sizeof(GLfloat));
4248 _mesa_unmarshal_Vertex4i(struct gl_context *ctx, const struct marshal_cmd_Vertex4i *cmd, const uint64_t *last)
4250 GLint x = cmd->x;
4251 GLint y = cmd->y;
4252 GLint z = cmd->z;
4253 GLint w = cmd->w;
4256 assert (cmd_size == cmd->cmd_base.cmd_size);
4264 struct marshal_cmd_Vertex4i *cmd;
4265 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4i, cmd_size);
4266 cmd->x = x;
4267 cmd->y = y;
4268 cmd->z = z;
4269 cmd->w = w;
4280 _mesa_unmarshal_Vertex4iv(struct gl_context *ctx, const struct marshal_cmd_Vertex4iv *cmd, const uint64_t *last)
4282 const GLint * v = cmd->v;
4285 assert (cmd_size == cmd->cmd_base.cmd_size);
4293 struct marshal_cmd_Vertex4iv *cmd;
4294 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4iv, cmd_size);
4295 memcpy(cmd->v, v, 4 * sizeof(GLint));
4309 _mesa_unmarshal_Vertex4s(struct gl_context *ctx, const struct marshal_cmd_Vertex4s *cmd, const uint64_t *last)
4311 GLshort x = cmd->x;
4312 GLshort y = cmd->y;
4313 GLshort z = cmd->z;
4314 GLshort w = cmd->w;
4317 assert (cmd_size == cmd->cmd_base.cmd_size);
4325 struct marshal_cmd_Vertex4s *cmd;
4326 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4s, cmd_size);
4327 cmd->x = x;
4328 cmd->y = y;
4329 cmd->z = z;
4330 cmd->w = w;
4341 _mesa_unmarshal_Vertex4sv(struct gl_context *ctx, const struct marshal_cmd_Vertex4sv *cmd, const uint64_t *last)
4343 const GLshort * v = cmd->v;
4346 assert (cmd_size == cmd->cmd_base.cmd_size);
4354 struct marshal_cmd_Vertex4sv *cmd;
4355 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4sv, cmd_size);
4356 memcpy(cmd->v, v, 4 * sizeof(GLshort));
4368 _mesa_unmarshal_ClipPlane(struct gl_context *ctx, const struct marshal_cmd_ClipPlane *cmd, const uint64_t *last)
4370 GLenum plane = cmd->plane;
4371 const GLdouble * equation = cmd->equation;
4374 assert (cmd_size == cmd->cmd_base.cmd_size);
4382 struct marshal_cmd_ClipPlane *cmd;
4383 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClipPlane, cmd_size);
4384 cmd->plane = plane;
4385 memcpy(cmd->equation, equation, 4 * sizeof(GLdouble));
4397 _mesa_unmarshal_ColorMaterial(struct gl_context *ctx, const struct marshal_cmd_ColorMaterial *cmd, const uint64_t *last)
4399 GLenum face = cmd->face;
4400 GLenum mode = cmd->mode;
4403 assert (cmd_size == cmd->cmd_base.cmd_size);
4411 struct marshal_cmd_ColorMaterial *cmd;
4412 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ColorMaterial, cmd_size);
4413 cmd->face = face;
4414 cmd->mode = mode;
4425 _mesa_unmarshal_CullFace(struct gl_context *ctx, const struct marshal_cmd_CullFace *cmd, const uint64_t *last)
4427 GLenum mode = cmd->mode;
4430 assert (cmd_size == cmd->cmd_base.cmd_size);
4438 struct marshal_cmd_CullFace *cmd;
4439 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CullFace, cmd_size);
4440 cmd->mode = mode;
4452 _mesa_unmarshal_Fogf(struct gl_context *ctx, const struct marshal_cmd_Fogf *cmd, const uint64_t *last)
4454 GLenum pname = cmd->pname;
4455 GLfloat param = cmd->param;
4458 assert (cmd_size == cmd->cmd_base.cmd_size);
4466 struct marshal_cmd_Fogf *cmd;
4467 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Fogf, cmd_size);
4468 cmd->pname = pname;
4469 cmd->param = param;
4481 _mesa_unmarshal_Fogfv(struct gl_context *ctx, const struct marshal_cmd_Fogfv *cmd, const uint64_t *last)
4483 GLenum pname = cmd->pname;
4485 const char *variable_data = (const char *) (cmd + 1);
4488 return cmd->cmd_base.cmd_size;
4496 struct marshal_cmd_Fogfv *cmd;
4502 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Fogfv, cmd_size);
4503 cmd->pname = pname;
4504 char *variable_data = (char *) (cmd + 1);
4517 _mesa_unmarshal_Fogi(struct gl_context *ctx, const struct marshal_cmd_Fogi *cmd, const uint64_t *last)
4519 GLenum pname = cmd->pname;
4520 GLint param = cmd->param;
4523 assert (cmd_size == cmd->cmd_base.cmd_size);
4531 struct marshal_cmd_Fogi *cmd;
4532 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Fogi, cmd_size);
4533 cmd->pname = pname;
4534 cmd->param = param;
4546 _mesa_unmarshal_Fogiv(struct gl_context *ctx, const struct marshal_cmd_Fogiv *cmd, const uint64_t *last)
4548 GLenum pname = cmd->pname;
4550 const char *variable_data = (const char *) (cmd + 1);
4553 return cmd->cmd_base.cmd_size;
4561 struct marshal_cmd_Fogiv *cmd;
4567 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Fogiv, cmd_size);
4568 cmd->pname = pname;
4569 char *variable_data = (char *) (cmd + 1);
4581 _mesa_unmarshal_FrontFace(struct gl_context *ctx, const struct marshal_cmd_FrontFace *cmd, const uint64_t *last)
4583 GLenum mode = cmd->mode;
4586 assert (cmd_size == cmd->cmd_base.cmd_size);
4594 struct marshal_cmd_FrontFace *cmd;
4595 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FrontFace, cmd_size);
4596 cmd->mode = mode;
4608 _mesa_unmarshal_Hint(struct gl_context *ctx, const struct marshal_cmd_Hint *cmd, const uint64_t *last)
4610 GLenum target = cmd->target;
4611 GLenum mode = cmd->mode;
4614 assert (cmd_size == cmd->cmd_base.cmd_size);
4622 struct marshal_cmd_Hint *cmd;
4623 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Hint, cmd_size);
4624 cmd->target = target;
4625 cmd->mode = mode;
4638 _mesa_unmarshal_Lightf(struct gl_context *ctx, const struct marshal_cmd_Lightf *cmd, const uint64_t *last)
4640 GLenum light = cmd->light;
4641 GLenum pname = cmd->pname;
4642 GLfloat param = cmd->param;
4645 assert (cmd_size == cmd->cmd_base.cmd_size);
4653 struct marshal_cmd_Lightf *cmd;
4654 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Lightf, cmd_size);
4655 cmd->light = light;
4656 cmd->pname = pname;
4657 cmd->param = param;
4670 _mesa_unmarshal_Lightfv(struct gl_context *ctx, const struct marshal_cmd_Lightfv *cmd, const uint64_t *last)
4672 GLenum light = cmd->light;
4673 GLenum pname = cmd->pname;
4675 const char *variable_data = (const char *) (cmd + 1);
4678 return cmd->cmd_base.cmd_size;
4686 struct marshal_cmd_Lightfv *cmd;
4692 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Lightfv, cmd_size);
4693 cmd->light = light;
4694 cmd->pname = pname;
4695 char *variable_data = (char *) (cmd + 1);
4709 _mesa_unmarshal_Lighti(struct gl_context *ctx, const struct marshal_cmd_Lighti *cmd, const uint64_t *last)
4711 GLenum light = cmd->light;
4712 GLenum pname = cmd->pname;
4713 GLint param = cmd->param;
4716 assert (cmd_size == cmd->cmd_base.cmd_size);
4724 struct marshal_cmd_Lighti *cmd;
4725 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Lighti, cmd_size);
4726 cmd->light = light;
4727 cmd->pname = pname;
4728 cmd->param = param;
4741 _mesa_unmarshal_Lightiv(struct gl_context *ctx, const struct marshal_cmd_Lightiv *cmd, const uint64_t *last)
4743 GLenum light = cmd->light;
4744 GLenum pname = cmd->pname;
4746 const char *variable_data = (const char *) (cmd + 1);
4749 return cmd->cmd_base.cmd_size;
4757 struct marshal_cmd_Lightiv *cmd;
4763 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Lightiv, cmd_size);
4764 cmd->light = light;
4765 cmd->pname = pname;
4766 char *variable_data = (char *) (cmd + 1);
4779 _mesa_unmarshal_LightModelf(struct gl_context *ctx, const struct marshal_cmd_LightModelf *cmd, const uint64_t *last)
4781 GLenum pname = cmd->pname;
4782 GLfloat param = cmd->param;
4785 assert (cmd_size == cmd->cmd_base.cmd_size);
4793 struct marshal_cmd_LightModelf *cmd;
4794 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LightModelf, cmd_size);
4795 cmd->pname = pname;
4796 cmd->param = param;
4808 _mesa_unmarshal_LightModelfv(struct gl_context *ctx, const struct marshal_cmd_LightModelfv *cmd, const uint64_t *last)
4810 GLenum pname = cmd->pname;
4812 const char *variable_data = (const char *) (cmd + 1);
4815 return cmd->cmd_base.cmd_size;
4823 struct marshal_cmd_LightModelfv *cmd;
4829 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LightModelfv, cmd_size);
4830 cmd->pname = pname;
4831 char *variable_data = (char *) (cmd + 1);
4844 _mesa_unmarshal_LightModeli(struct gl_context *ctx, const struct marshal_cmd_LightModeli *cmd, const uint64_t *last)
4846 GLenum pname = cmd->pname;
4847 GLint param = cmd->param;
4850 assert (cmd_size == cmd->cmd_base.cmd_size);
4858 struct marshal_cmd_LightModeli *cmd;
4859 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LightModeli, cmd_size);
4860 cmd->pname = pname;
4861 cmd->param = param;
4873 _mesa_unmarshal_LightModeliv(struct gl_context *ctx, const struct marshal_cmd_LightModeliv *cmd, const uint64_t *last)
4875 GLenum pname = cmd->pname;
4877 const char *variable_data = (const char *) (cmd + 1);
4880 return cmd->cmd_base.cmd_size;
4888 struct marshal_cmd_LightModeliv *cmd;
4894 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LightModeliv, cmd_size);
4895 cmd->pname = pname;
4896 char *variable_data = (char *) (cmd + 1);
4909 _mesa_unmarshal_LineStipple(struct gl_context *ctx, const struct marshal_cmd_LineStipple *cmd, const uint64_t *last)
4911 GLint factor = cmd->factor;
4912 GLushort pattern = cmd->pattern;
4915 assert (cmd_size == cmd->cmd_base.cmd_size);
4923 struct marshal_cmd_LineStipple *cmd;
4924 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LineStipple, cmd_size);
4925 cmd->factor = factor;
4926 cmd->pattern = pattern;
4937 _mesa_unmarshal_LineWidth(struct gl_context *ctx, const struct marshal_cmd_LineWidth *cmd, const uint64_t *last)
4939 GLfloat width = cmd->width;
4942 assert (cmd_size == cmd->cmd_base.cmd_size);
4950 struct marshal_cmd_LineWidth *cmd;
4951 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LineWidth, cmd_size);
4952 cmd->width = width;
4965 _mesa_unmarshal_Materialf(struct gl_context *ctx, const struct marshal_cmd_Materialf *cmd, const uint64_t *last)
4967 GLenum face = cmd->face;
4968 GLenum pname = cmd->pname;
4969 GLfloat param = cmd->param;
4972 assert (cmd_size == cmd->cmd_base.cmd_size);
4980 struct marshal_cmd_Materialf *cmd;
4981 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Materialf, cmd_size);
4982 cmd->face = face;
4983 cmd->pname = pname;
4984 cmd->param = param;
4997 _mesa_unmarshal_Materialfv(struct gl_context *ctx, const struct marshal_cmd_Materialfv *cmd, const uint64_t *last)
4999 GLenum face = cmd->face;
5000 GLenum pname = cmd->pname;
5002 const char *variable_data = (const char *) (cmd + 1);
5005 return cmd->cmd_base.cmd_size;
5013 struct marshal_cmd_Materialfv *cmd;
5019 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Materialfv, cmd_size);
5020 cmd->face = face;
5021 cmd->pname = pname;
5022 char *variable_data = (char *) (cmd + 1);
5036 _mesa_unmarshal_Materiali(struct gl_context *ctx, const struct marshal_cmd_Materiali *cmd, const uint64_t *last)
5038 GLenum face = cmd->face;
5039 GLenum pname = cmd->pname;
5040 GLint param = cmd->param;
5043 assert (cmd_size == cmd->cmd_base.cmd_size);
5051 struct marshal_cmd_Materiali *cmd;
5052 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Materiali, cmd_size);
5053 cmd->face = face;
5054 cmd->pname = pname;
5055 cmd->param = param;
5068 _mesa_unmarshal_Materialiv(struct gl_context *ctx, const struct marshal_cmd_Materialiv *cmd, const uint64_t *last)
5070 GLenum face = cmd->face;
5071 GLenum pname = cmd->pname;
5073 const char *variable_data = (const char *) (cmd + 1);
5076 return cmd->cmd_base.cmd_size;
5084 struct marshal_cmd_Materialiv *cmd;
5090 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Materialiv, cmd_size);
5091 cmd->face = face;
5092 cmd->pname = pname;
5093 char *variable_data = (char *) (cmd + 1);
5105 _mesa_unmarshal_PointSize(struct gl_context *ctx, const struct marshal_cmd_PointSize *cmd, const uint64_t *last)
5107 GLfloat size = cmd->size;
5110 assert (cmd_size == cmd->cmd_base.cmd_size);
5118 struct marshal_cmd_PointSize *cmd;
5119 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointSize, cmd_size);
5120 cmd->size = size;
5132 _mesa_unmarshal_PolygonMode(struct gl_context *ctx, const struct marshal_cmd_PolygonMode *cmd, const uint64_t *last)
5134 GLenum face = cmd->face;
5135 GLenum mode = cmd->mode;
5138 assert (cmd_size == cmd->cmd_base.cmd_size);
5146 struct marshal_cmd_PolygonMode *cmd;
5147 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PolygonMode, cmd_size);
5148 cmd->face = face;
5149 cmd->mode = mode;
5160 _mesa_unmarshal_PolygonStipple(struct gl_context *ctx, const struct marshal_cmd_PolygonStipple *cmd, const uint64_t *last)
5162 const GLubyte * mask = cmd->mask;
5165 assert (cmd_size == cmd->cmd_base.cmd_size);
5173 struct marshal_cmd_PolygonStipple *cmd;
5179 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PolygonStipple, cmd_size);
5180 cmd->mask = mask;
5194 _mesa_unmarshal_Scissor(struct gl_context *ctx, const struct marshal_cmd_Scissor *cmd, const uint64_t *last)
5196 GLint x = cmd->x;
5197 GLint y = cmd->y;
5198 GLsizei width = cmd->width;
5199 GLsizei height = cmd->height;
5202 assert (cmd_size == cmd->cmd_base.cmd_size);
5210 struct marshal_cmd_Scissor *cmd;
5211 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Scissor, cmd_size);
5212 cmd->x = x;
5213 cmd->y = y;
5214 cmd->width = width;
5215 cmd->height = height;
5226 _mesa_unmarshal_ShadeModel(struct gl_context *ctx, const struct marshal_cmd_ShadeModel *cmd, const uint64_t *last)
5228 GLenum mode = cmd->mode;
5231 assert (cmd_size == cmd->cmd_base.cmd_size);
5239 struct marshal_cmd_ShadeModel *cmd;
5240 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ShadeModel, cmd_size);
5241 cmd->mode = mode;
5254 _mesa_unmarshal_TexParameterf(struct gl_context *ctx, const struct marshal_cmd_TexParameterf *cmd, const uint64_t *last)
5256 GLenum target = cmd->target;
5257 GLenum pname = cmd->pname;
5258 GLfloat param = cmd->param;
5261 assert (cmd_size == cmd->cmd_base.cmd_size);
5269 struct marshal_cmd_TexParameterf *cmd;
5270 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameterf, cmd_size);
5271 cmd->target = target;
5272 cmd->pname = pname;
5273 cmd->param = param;
5286 _mesa_unmarshal_TexParameterfv(struct gl_context *ctx, const struct marshal_cmd_TexParameterfv *cmd, const uint64_t *last)
5288 GLenum target = cmd->target;
5289 GLenum pname = cmd->pname;
5291 const char *variable_data = (const char *) (cmd + 1);
5294 return cmd->cmd_base.cmd_size;
5302 struct marshal_cmd_TexParameterfv *cmd;
5308 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameterfv, cmd_size);
5309 cmd->target = target;
5310 cmd->pname = pname;
5311 char *variable_data = (char *) (cmd + 1);
5325 _mesa_unmarshal_TexParameteri(struct gl_context *ctx, const struct marshal_cmd_TexParameteri *cmd, const uint64_t *last)
5327 GLenum target = cmd->target;
5328 GLenum pname = cmd->pname;
5329 GLint param = cmd->param;
5332 assert (cmd_size == cmd->cmd_base.cmd_size);
5340 struct marshal_cmd_TexParameteri *cmd;
5341 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameteri, cmd_size);
5342 cmd->target = target;
5343 cmd->pname = pname;
5344 cmd->param = param;
5357 _mesa_unmarshal_TexParameteriv(struct gl_context *ctx, const struct marshal_cmd_TexParameteriv *cmd, const uint64_t *last)
5359 GLenum target = cmd->target;
5360 GLenum pname = cmd->pname;
5362 const char *variable_data = (const char *) (cmd + 1);
5365 return cmd->cmd_base.cmd_size;
5373 struct marshal_cmd_TexParameteriv *cmd;
5379 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameteriv, cmd_size);
5380 cmd->target = target;
5381 cmd->pname = pname;
5382 char *variable_data = (char *) (cmd + 1);
5401 _mesa_unmarshal_TexImage1D(struct gl_context *ctx, const struct marshal_cmd_TexImage1D *cmd, const uint64_t *last)
5403 GLenum target = cmd->target;
5404 GLint level = cmd->level;
5405 GLint internalformat = cmd->internalformat;
5406 GLsizei width = cmd->width;
5407 GLint border = cmd->border;
5408 GLenum format = cmd->format;
5409 GLenum type = cmd->type;
5410 const GLvoid * pixels = cmd->pixels;
5413 assert (cmd_size == cmd->cmd_base.cmd_size);
5421 struct marshal_cmd_TexImage1D *cmd;
5427 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexImage1D, cmd_size);
5428 cmd->target = target;
5429 cmd->level = level;
5430 cmd->internalformat = internalformat;
5431 cmd->width = width;
5432 cmd->border = border;
5433 cmd->format = format;
5434 cmd->type = type;
5435 cmd->pixels = pixels;
5454 _mesa_unmarshal_TexImage2D(struct gl_context *ctx, const struct marshal_cmd_TexImage2D *cmd, const uint64_t *last)
5456 GLenum target = cmd->target;
5457 GLint level = cmd->level;
5458 GLint internalformat = cmd->internalformat;
5459 GLsizei width = cmd->width;
5460 GLsizei height = cmd->height;
5461 GLint border = cmd->border;
5462 GLenum format = cmd->format;
5463 GLenum type = cmd->type;
5464 const GLvoid * pixels = cmd->pixels;
5467 assert (cmd_size == cmd->cmd_base.cmd_size);
5475 struct marshal_cmd_TexImage2D *cmd;
5481 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexImage2D, cmd_size);
5482 cmd->target = target;
5483 cmd->level = level;
5484 cmd->internalformat = internalformat;
5485 cmd->width = width;
5486 cmd->height = height;
5487 cmd->border = border;
5488 cmd->format = format;
5489 cmd->type = type;
5490 cmd->pixels = pixels;
5503 _mesa_unmarshal_TexEnvf(struct gl_context *ctx, const struct marshal_cmd_TexEnvf *cmd, const uint64_t *last)
5505 GLenum target = cmd->target;
5506 GLenum pname = cmd->pname;
5507 GLfloat param = cmd->param;
5510 assert (cmd_size == cmd->cmd_base.cmd_size);
5518 struct marshal_cmd_TexEnvf *cmd;
5519 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexEnvf, cmd_size);
5520 cmd->target = target;
5521 cmd->pname = pname;
5522 cmd->param = param;
5535 _mesa_unmarshal_TexEnvfv(struct gl_context *ctx, const struct marshal_cmd_TexEnvfv *cmd, const uint64_t *last)
5537 GLenum target = cmd->target;
5538 GLenum pname = cmd->pname;
5540 const char *variable_data = (const char *) (cmd + 1);
5543 return cmd->cmd_base.cmd_size;
5551 struct marshal_cmd_TexEnvfv *cmd;
5557 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexEnvfv, cmd_size);
5558 cmd->target = target;
5559 cmd->pname = pname;
5560 char *variable_data = (char *) (cmd + 1);
5574 _mesa_unmarshal_TexEnvi(struct gl_context *ctx, const struct marshal_cmd_TexEnvi *cmd, const uint64_t *last)
5576 GLenum target = cmd->target;
5577 GLenum pname = cmd->pname;
5578 GLint param = cmd->param;
5581 assert (cmd_size == cmd->cmd_base.cmd_size);
5589 struct marshal_cmd_TexEnvi *cmd;
5590 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexEnvi, cmd_size);
5591 cmd->target = target;
5592 cmd->pname = pname;
5593 cmd->param = param;
5606 _mesa_unmarshal_TexEnviv(struct gl_context *ctx, const struct marshal_cmd_TexEnviv *cmd, const uint64_t *last)
5608 GLenum target = cmd->target;
5609 GLenum pname = cmd->pname;
5611 const char *variable_data = (const char *) (cmd + 1);
5614 return cmd->cmd_base.cmd_size;
5622 struct marshal_cmd_TexEnviv *cmd;
5628 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexEnviv, cmd_size);
5629 cmd->target = target;
5630 cmd->pname = pname;
5631 char *variable_data = (char *) (cmd + 1);
5645 _mesa_unmarshal_TexGend(struct gl_context *ctx, const struct marshal_cmd_TexGend *cmd, const uint64_t *last)
5647 GLenum coord = cmd->coord;
5648 GLenum pname = cmd->pname;
5649 GLdouble param = cmd->param;
5652 assert (cmd_size == cmd->cmd_base.cmd_size);
5660 struct marshal_cmd_TexGend *cmd;
5661 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGend, cmd_size);
5662 cmd->coord = coord;
5663 cmd->pname = pname;
5664 cmd->param = param;
5677 _mesa_unmarshal_TexGendv(struct gl_context *ctx, const struct marshal_cmd_TexGendv *cmd, const uint64_t *last)
5679 GLenum coord = cmd->coord;
5680 GLenum pname = cmd->pname;
5682 const char *variable_data = (const char *) (cmd + 1);
5685 return cmd->cmd_base.cmd_size;
5693 struct marshal_cmd_TexGendv *cmd;
5699 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGendv, cmd_size);
5700 cmd->coord = coord;
5701 cmd->pname = pname;
5702 char *variable_data = (char *) (cmd + 1);
5716 _mesa_unmarshal_TexGenf(struct gl_context *ctx, const struct marshal_cmd_TexGenf *cmd, const uint64_t *last)
5718 GLenum coord = cmd->coord;
5719 GLenum pname = cmd->pname;
5720 GLfloat param = cmd->param;
5723 assert (cmd_size == cmd->cmd_base.cmd_size);
5731 struct marshal_cmd_TexGenf *cmd;
5732 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGenf, cmd_size);
5733 cmd->coord = coord;
5734 cmd->pname = pname;
5735 cmd->param = param;
5748 _mesa_unmarshal_TexGenfv(struct gl_context *ctx, const struct marshal_cmd_TexGenfv *cmd, const uint64_t *last)
5750 GLenum coord = cmd->coord;
5751 GLenum pname = cmd->pname;
5753 const char *variable_data = (const char *) (cmd + 1);
5756 return cmd->cmd_base.cmd_size;
5764 struct marshal_cmd_TexGenfv *cmd;
5770 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGenfv, cmd_size);
5771 cmd->coord = coord;
5772 cmd->pname = pname;
5773 char *variable_data = (char *) (cmd + 1);
5787 _mesa_unmarshal_TexGeni(struct gl_context *ctx, const struct marshal_cmd_TexGeni *cmd, const uint64_t *last)
5789 GLenum coord = cmd->coord;
5790 GLenum pname = cmd->pname;
5791 GLint param = cmd->param;
5794 assert (cmd_size == cmd->cmd_base.cmd_size);
5802 struct marshal_cmd_TexGeni *cmd;
5803 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGeni, cmd_size);
5804 cmd->coord = coord;
5805 cmd->pname = pname;
5806 cmd->param = param;
5819 _mesa_unmarshal_TexGeniv(struct gl_context *ctx, const struct marshal_cmd_TexGeniv *cmd, const uint64_t *last)
5821 GLenum coord = cmd->coord;
5822 GLenum pname = cmd->pname;
5824 const char *variable_data = (const char *) (cmd + 1);
5827 return cmd->cmd_base.cmd_size;
5835 struct marshal_cmd_TexGeniv *cmd;
5841 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGeniv, cmd_size);
5842 cmd->coord = coord;
5843 cmd->pname = pname;
5844 char *variable_data = (char *) (cmd + 1);
5885 _mesa_unmarshal_InitNames(struct gl_context *ctx, const struct marshal_cmd_InitNames *cmd, const uint64_t *last)
5889 assert (cmd_size == cmd->cmd_base.cmd_size);
5897 struct marshal_cmd_InitNames *cmd;
5898 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InitNames, cmd_size);
5899 (void) cmd;
5910 _mesa_unmarshal_LoadName(struct gl_context *ctx, const struct marshal_cmd_LoadName *cmd, const uint64_t *last)
5912 GLuint name = cmd->name;
5915 assert (cmd_size == cmd->cmd_base.cmd_size);
5923 struct marshal_cmd_LoadName *cmd;
5924 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LoadName, cmd_size);
5925 cmd->name = name;
5936 _mesa_unmarshal_PassThrough(struct gl_context *ctx, const struct marshal_cmd_PassThrough *cmd, const uint64_t *last)
5938 GLfloat token = cmd->token;
5941 assert (cmd_size == cmd->cmd_base.cmd_size);
5949 struct marshal_cmd_PassThrough *cmd;
5950 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PassThrough, cmd_size);
5951 cmd->token = token;
5961 _mesa_unmarshal_PopName(struct gl_context *ctx, const struct marshal_cmd_PopName *cmd, const uint64_t *last)
5965 assert (cmd_size == cmd->cmd_base.cmd_size);
5973 struct marshal_cmd_PopName *cmd;
5974 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PopName, cmd_size);
5975 (void) cmd;
5986 _mesa_unmarshal_PushName(struct gl_context *ctx, const struct marshal_cmd_PushName *cmd, const uint64_t *last)
5988 GLuint name = cmd->name;
5991 assert (cmd_size == cmd->cmd_base.cmd_size);
5999 struct marshal_cmd_PushName *cmd;
6000 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PushName, cmd_size);
6001 cmd->name = name;
6012 _mesa_unmarshal_DrawBuffer(struct gl_context *ctx, const struct marshal_cmd_DrawBuffer *cmd, const uint64_t *last)
6014 GLenum mode = cmd->mode;
6017 assert (cmd_size == cmd->cmd_base.cmd_size);
6025 struct marshal_cmd_DrawBuffer *cmd;
6026 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawBuffer, cmd_size);
6027 cmd->mode = mode;
6038 _mesa_unmarshal_Clear(struct gl_context *ctx, const struct marshal_cmd_Clear *cmd, const uint64_t *last)
6040 GLbitfield mask = cmd->mask;
6043 assert (cmd_size == cmd->cmd_base.cmd_size);
6051 struct marshal_cmd_Clear *cmd;
6052 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Clear, cmd_size);
6053 cmd->mask = mask;
6067 _mesa_unmarshal_ClearAccum(struct gl_context *ctx, const struct marshal_cmd_ClearAccum *cmd, const uint64_t *last)
6069 GLfloat red = cmd->red;
6070 GLfloat green = cmd->green;
6071 GLfloat blue = cmd->blue;
6072 GLfloat alpha = cmd->alpha;
6075 assert (cmd_size == cmd->cmd_base.cmd_size);
6083 struct marshal_cmd_ClearAccum *cmd;
6084 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearAccum, cmd_size);
6085 cmd->red = red;
6086 cmd->green = green;
6087 cmd->blue = blue;
6088 cmd->alpha = alpha;
6099 _mesa_unmarshal_ClearIndex(struct gl_context *ctx, const struct marshal_cmd_ClearIndex *cmd, const uint64_t *last)
6101 GLfloat c = cmd->c;
6104 assert (cmd_size == cmd->cmd_base.cmd_size);
6112 struct marshal_cmd_ClearIndex *cmd;
6113 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearIndex, cmd_size);
6114 cmd->c = c;
6128 _mesa_unmarshal_ClearColor(struct gl_context *ctx, const struct marshal_cmd_ClearColor *cmd, const uint64_t *last)
6130 GLclampf red = cmd->red;
6131 GLclampf green = cmd->green;
6132 GLclampf blue = cmd->blue;
6133 GLclampf alpha = cmd->alpha;
6136 assert (cmd_size == cmd->cmd_base.cmd_size);
6144 struct marshal_cmd_ClearColor *cmd;
6145 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearColor, cmd_size);
6146 cmd->red = red;
6147 cmd->green = green;
6148 cmd->blue = blue;
6149 cmd->alpha = alpha;
6160 _mesa_unmarshal_ClearStencil(struct gl_context *ctx, const struct marshal_cmd_ClearStencil *cmd, const uint64_t *last)
6162 GLint s = cmd->s;
6165 assert (cmd_size == cmd->cmd_base.cmd_size);
6173 struct marshal_cmd_ClearStencil *cmd;
6174 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearStencil, cmd_size);
6175 cmd->s = s;
6186 _mesa_unmarshal_ClearDepth(struct gl_context *ctx, const struct marshal_cmd_ClearDepth *cmd, const uint64_t *last)
6188 GLclampd depth = cmd->depth;
6191 assert (cmd_size == cmd->cmd_base.cmd_size);
6199 struct marshal_cmd_ClearDepth *cmd;
6200 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearDepth, cmd_size);
6201 cmd->depth = depth;
6212 _mesa_unmarshal_StencilMask(struct gl_context *ctx, const struct marshal_cmd_StencilMask *cmd, const uint64_t *last)
6214 GLuint mask = cmd->mask;
6217 assert (cmd_size == cmd->cmd_base.cmd_size);
6225 struct marshal_cmd_StencilMask *cmd;
6226 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_StencilMask, cmd_size);
6227 cmd->mask = mask;
6241 _mesa_unmarshal_ColorMask(struct gl_context *ctx, const struct marshal_cmd_ColorMask *cmd, const uint64_t *last)
6243 GLboolean red = cmd->red;
6244 GLboolean green = cmd->green;
6245 GLboolean blue = cmd->blue;
6246 GLboolean alpha = cmd->alpha;
6249 assert (cmd_size == cmd->cmd_base.cmd_size);
6257 struct marshal_cmd_ColorMask *cmd;
6258 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ColorMask, cmd_size);
6259 cmd->red = red;
6260 cmd->green = green;
6261 cmd->blue = blue;
6262 cmd->alpha = alpha;
6273 _mesa_unmarshal_DepthMask(struct gl_context *ctx, const struct marshal_cmd_DepthMask *cmd, const uint64_t *last)
6275 GLboolean flag = cmd->flag;
6278 assert (cmd_size == cmd->cmd_base.cmd_size);
6286 struct marshal_cmd_DepthMask *cmd;
6287 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DepthMask, cmd_size);
6288 cmd->flag = flag;
6299 _mesa_unmarshal_IndexMask(struct gl_context *ctx, const struct marshal_cmd_IndexMask *cmd, const uint64_t *last)
6301 GLuint mask = cmd->mask;
6304 assert (cmd_size == cmd->cmd_base.cmd_size);
6312 struct marshal_cmd_IndexMask *cmd;
6313 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_IndexMask, cmd_size);
6314 cmd->mask = mask;
6326 _mesa_unmarshal_Accum(struct gl_context *ctx, const struct marshal_cmd_Accum *cmd, const uint64_t *last)
6328 GLenum op = cmd->op;
6329 GLfloat value = cmd->value;
6332 assert (cmd_size == cmd->cmd_base.cmd_size);
6340 struct marshal_cmd_Accum *cmd;
6341 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Accum, cmd_size);
6342 cmd->op = op;
6343 cmd->value = value;
6354 _mesa_unmarshal_Disable(struct gl_context *ctx, const struct marshal_cmd_Disable *cmd, const uint64_t *last)
6356 GLenum cap = cmd->cap;
6359 assert (cmd_size == cmd->cmd_base.cmd_size);
6367 struct marshal_cmd_Disable *cmd;
6368 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Disable, cmd_size);
6369 cmd->cap = cap;
6381 _mesa_unmarshal_Enable(struct gl_context *ctx, const struct marshal_cmd_Enable *cmd, const uint64_t *last)
6383 GLenum cap = cmd->cap;
6386 assert (cmd_size == cmd->cmd_base.cmd_size);
6394 struct marshal_cmd_Enable *cmd;
6395 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Enable, cmd_size);
6396 cmd->cap = cap;
6417 _mesa_unmarshal_Flush(struct gl_context *ctx, const struct marshal_cmd_Flush *cmd, const uint64_t *last)
6421 assert (cmd_size == cmd->cmd_base.cmd_size);
6429 struct marshal_cmd_Flush *cmd;
6430 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Flush, cmd_size);
6431 (void) cmd;
6442 _mesa_unmarshal_PopAttrib(struct gl_context *ctx, const struct marshal_cmd_PopAttrib *cmd, const uint64_t *last)
6446 assert (cmd_size == cmd->cmd_base.cmd_size);
6454 struct marshal_cmd_PopAttrib *cmd;
6455 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PopAttrib, cmd_size);
6456 (void) cmd;
6468 _mesa_unmarshal_PushAttrib(struct gl_context *ctx, const struct marshal_cmd_PushAttrib *cmd, const uint64_t *last)
6470 GLbitfield mask = cmd->mask;
6473 assert (cmd_size == cmd->cmd_base.cmd_size);
6481 struct marshal_cmd_PushAttrib *cmd;
6482 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PushAttrib, cmd_size);
6483 cmd->mask = mask;
6537 _mesa_unmarshal_MapGrid1d(struct gl_context *ctx, const struct marshal_cmd_MapGrid1d *cmd, const uint64_t *last)
6539 GLint un = cmd->un;
6540 GLdouble u1 = cmd->u1;
6541 GLdouble u2 = cmd->u2;
6544 assert (cmd_size == cmd->cmd_base.cmd_size);
6552 struct marshal_cmd_MapGrid1d *cmd;
6553 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MapGrid1d, cmd_size);
6554 cmd->un = un;
6555 cmd->u1 = u1;
6556 cmd->u2 = u2;
6569 _mesa_unmarshal_MapGrid1f(struct gl_context *ctx, const struct marshal_cmd_MapGrid1f *cmd, const uint64_t *last)
6571 GLint un = cmd->un;
6572 GLfloat u1 = cmd->u1;
6573 GLfloat u2 = cmd->u2;
6576 assert (cmd_size == cmd->cmd_base.cmd_size);
6584 struct marshal_cmd_MapGrid1f *cmd;
6585 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MapGrid1f, cmd_size);
6586 cmd->un = un;
6587 cmd->u1 = u1;
6588 cmd->u2 = u2;
6604 _mesa_unmarshal_MapGrid2d(struct gl_context *ctx, const struct marshal_cmd_MapGrid2d *cmd, const uint64_t *last)
6606 GLint un = cmd->un;
6607 GLdouble u1 = cmd->u1;
6608 GLdouble u2 = cmd->u2;
6609 GLint vn = cmd->vn;
6610 GLdouble v1 = cmd->v1;
6611 GLdouble v2 = cmd->v2;
6614 assert (cmd_size == cmd->cmd_base.cmd_size);
6622 struct marshal_cmd_MapGrid2d *cmd;
6623 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MapGrid2d, cmd_size);
6624 cmd->un = un;
6625 cmd->u1 = u1;
6626 cmd->u2 = u2;
6627 cmd->vn = vn;
6628 cmd->v1 = v1;
6629 cmd->v2 = v2;
6645 _mesa_unmarshal_MapGrid2f(struct gl_context *ctx, const struct marshal_cmd_MapGrid2f *cmd, const uint64_t *last)
6647 GLint un = cmd->un;
6648 GLfloat u1 = cmd->u1;
6649 GLfloat u2 = cmd->u2;
6650 GLint vn = cmd->vn;
6651 GLfloat v1 = cmd->v1;
6652 GLfloat v2 = cmd->v2;
6655 assert (cmd_size == cmd->cmd_base.cmd_size);
6663 struct marshal_cmd_MapGrid2f *cmd;
6664 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MapGrid2f, cmd_size);
6665 cmd->un = un;
6666 cmd->u1 = u1;
6667 cmd->u2 = u2;
6668 cmd->vn = vn;
6669 cmd->v1 = v1;
6670 cmd->v2 = v2;
6681 _mesa_unmarshal_EvalCoord1d(struct gl_context *ctx, const struct marshal_cmd_EvalCoord1d *cmd, const uint64_t *last)
6683 GLdouble u = cmd->u;
6686 assert (cmd_size == cmd->cmd_base.cmd_size);
6694 struct marshal_cmd_EvalCoord1d *cmd;
6695 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord1d, cmd_size);
6696 cmd->u = u;
6707 _mesa_unmarshal_EvalCoord1dv(struct gl_context *ctx, const struct marshal_cmd_EvalCoord1dv *cmd, const uint64_t *last)
6709 const GLdouble * u = cmd->u;
6712 assert (cmd_size == cmd->cmd_base.cmd_size);
6720 struct marshal_cmd_EvalCoord1dv *cmd;
6721 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord1dv, cmd_size);
6722 memcpy(cmd->u, u, 1 * sizeof(GLdouble));
6733 _mesa_unmarshal_EvalCoord1f(struct gl_context *ctx, const struct marshal_cmd_EvalCoord1f *cmd, const uint64_t *last)
6735 GLfloat u = cmd->u;
6738 assert (cmd_size == cmd->cmd_base.cmd_size);
6746 struct marshal_cmd_EvalCoord1f *cmd;
6747 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord1f, cmd_size);
6748 cmd->u = u;
6759 _mesa_unmarshal_EvalCoord1fv(struct gl_context *ctx, const struct marshal_cmd_EvalCoord1fv *cmd, const uint64_t *last)
6761 const GLfloat * u = cmd->u;
6764 assert (cmd_size == cmd->cmd_base.cmd_size);
6772 struct marshal_cmd_EvalCoord1fv *cmd;
6773 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord1fv, cmd_size);
6774 memcpy(cmd->u, u, 1 * sizeof(GLfloat));
6786 _mesa_unmarshal_EvalCoord2d(struct gl_context *ctx, const struct marshal_cmd_EvalCoord2d *cmd, const uint64_t *last)
6788 GLdouble u = cmd->u;
6789 GLdouble v = cmd->v;
6792 assert (cmd_size == cmd->cmd_base.cmd_size);
6800 struct marshal_cmd_EvalCoord2d *cmd;
6801 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord2d, cmd_size);
6802 cmd->u = u;
6803 cmd->v = v;
6814 _mesa_unmarshal_EvalCoord2dv(struct gl_context *ctx, const struct marshal_cmd_EvalCoord2dv *cmd, const uint64_t *last)
6816 const GLdouble * u = cmd->u;
6819 assert (cmd_size == cmd->cmd_base.cmd_size);
6827 struct marshal_cmd_EvalCoord2dv *cmd;
6828 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord2dv, cmd_size);
6829 memcpy(cmd->u, u, 2 * sizeof(GLdouble));
6841 _mesa_unmarshal_EvalCoord2f(struct gl_context *ctx, const struct marshal_cmd_EvalCoord2f *cmd, const uint64_t *last)
6843 GLfloat u = cmd->u;
6844 GLfloat v = cmd->v;
6847 assert (cmd_size == cmd->cmd_base.cmd_size);
6855 struct marshal_cmd_EvalCoord2f *cmd;
6856 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord2f, cmd_size);
6857 cmd->u = u;
6858 cmd->v = v;
6869 _mesa_unmarshal_EvalCoord2fv(struct gl_context *ctx, const struct marshal_cmd_EvalCoord2fv *cmd, const uint64_t *last)
6871 const GLfloat * u = cmd->u;
6874 assert (cmd_size == cmd->cmd_base.cmd_size);
6882 struct marshal_cmd_EvalCoord2fv *cmd;
6883 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalCoord2fv, cmd_size);
6884 memcpy(cmd->u, u, 2 * sizeof(GLfloat));
6897 _mesa_unmarshal_EvalMesh1(struct gl_context *ctx, const struct marshal_cmd_EvalMesh1 *cmd, const uint64_t *last)
6899 GLenum mode = cmd->mode;
6900 GLint i1 = cmd->i1;
6901 GLint i2 = cmd->i2;
6904 assert (cmd_size == cmd->cmd_base.cmd_size);
6912 struct marshal_cmd_EvalMesh1 *cmd;
6913 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalMesh1, cmd_size);
6914 cmd->mode = mode;
6915 cmd->i1 = i1;
6916 cmd->i2 = i2;
6927 _mesa_unmarshal_EvalPoint1(struct gl_context *ctx, const struct marshal_cmd_EvalPoint1 *cmd, const uint64_t *last)
6929 GLint i = cmd->i;
6932 assert (cmd_size == cmd->cmd_base.cmd_size);
6940 struct marshal_cmd_EvalPoint1 *cmd;
6941 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalPoint1, cmd_size);
6942 cmd->i = i;
6957 _mesa_unmarshal_EvalMesh2(struct gl_context *ctx, const struct marshal_cmd_EvalMesh2 *cmd, const uint64_t *last)
6959 GLenum mode = cmd->mode;
6960 GLint i1 = cmd->i1;
6961 GLint i2 = cmd->i2;
6962 GLint j1 = cmd->j1;
6963 GLint j2 = cmd->j2;
6966 assert (cmd_size == cmd->cmd_base.cmd_size);
6974 struct marshal_cmd_EvalMesh2 *cmd;
6975 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalMesh2, cmd_size);
6976 cmd->mode = mode;
6977 cmd->i1 = i1;
6978 cmd->i2 = i2;
6979 cmd->j1 = j1;
6980 cmd->j2 = j2;
6992 _mesa_unmarshal_EvalPoint2(struct gl_context *ctx, const struct marshal_cmd_EvalPoint2 *cmd, const uint64_t *last)
6994 GLint i = cmd->i;
6995 GLint j = cmd->j;
6998 assert (cmd_size == cmd->cmd_base.cmd_size);
7006 struct marshal_cmd_EvalPoint2 *cmd;
7007 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EvalPoint2, cmd_size);
7008 cmd->i = i;
7009 cmd->j = j;
7021 _mesa_unmarshal_AlphaFunc(struct gl_context *ctx, const struct marshal_cmd_AlphaFunc *cmd, const uint64_t *last)
7023 GLenum func = cmd->func;
7024 GLclampf ref = cmd->ref;
7027 assert (cmd_size == cmd->cmd_base.cmd_size);
7035 struct marshal_cmd_AlphaFunc *cmd;
7036 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_AlphaFunc, cmd_size);
7037 cmd->func = func;
7038 cmd->ref = ref;
7050 _mesa_unmarshal_BlendFunc(struct gl_context *ctx, const struct marshal_cmd_BlendFunc *cmd, const uint64_t *last)
7052 GLenum sfactor = cmd->sfactor;
7053 GLenum dfactor = cmd->dfactor;
7056 assert (cmd_size == cmd->cmd_base.cmd_size);
7064 struct marshal_cmd_BlendFunc *cmd;
7065 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendFunc, cmd_size);
7066 cmd->sfactor = sfactor;
7067 cmd->dfactor = dfactor;
7078 _mesa_unmarshal_LogicOp(struct gl_context *ctx, const struct marshal_cmd_LogicOp *cmd, const uint64_t *last)
7080 GLenum opcode = cmd->opcode;
7083 assert (cmd_size == cmd->cmd_base.cmd_size);
7091 struct marshal_cmd_LogicOp *cmd;
7092 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LogicOp, cmd_size);
7093 cmd->opcode = opcode;
7106 _mesa_unmarshal_StencilFunc(struct gl_context *ctx, const struct marshal_cmd_StencilFunc *cmd, const uint64_t *last)
7108 GLenum func = cmd->func;
7109 GLint ref = cmd->ref;
7110 GLuint mask = cmd->mask;
7113 assert (cmd_size == cmd->cmd_base.cmd_size);
7121 struct marshal_cmd_StencilFunc *cmd;
7122 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_StencilFunc, cmd_size);
7123 cmd->func = func;
7124 cmd->ref = ref;
7125 cmd->mask = mask;
7138 _mesa_unmarshal_StencilOp(struct gl_context *ctx, const struct marshal_cmd_StencilOp *cmd, const uint64_t *last)
7140 GLenum fail = cmd->fail;
7141 GLenum zfail = cmd->zfail;
7142 GLenum zpass = cmd->zpass;
7145 assert (cmd_size == cmd->cmd_base.cmd_size);
7153 struct marshal_cmd_StencilOp *cmd;
7154 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_StencilOp, cmd_size);
7155 cmd->fail = fail;
7156 cmd->zfail = zfail;
7157 cmd->zpass = zpass;
7168 _mesa_unmarshal_DepthFunc(struct gl_context *ctx, const struct marshal_cmd_DepthFunc *cmd, const uint64_t *last)
7170 GLenum func = cmd->func;
7173 assert (cmd_size == cmd->cmd_base.cmd_size);
7181 struct marshal_cmd_DepthFunc *cmd;
7182 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DepthFunc, cmd_size);
7183 cmd->func = func;
7195 _mesa_unmarshal_PixelZoom(struct gl_context *ctx, const struct marshal_cmd_PixelZoom *cmd, const uint64_t *last)
7197 GLfloat xfactor = cmd->xfactor;
7198 GLfloat yfactor = cmd->yfactor;
7201 assert (cmd_size == cmd->cmd_base.cmd_size);
7209 struct marshal_cmd_PixelZoom *cmd;
7210 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelZoom, cmd_size);
7211 cmd->xfactor = xfactor;
7212 cmd->yfactor = yfactor;
7224 _mesa_unmarshal_PixelTransferf(struct gl_context *ctx, const struct marshal_cmd_PixelTransferf *cmd, const uint64_t *last)
7226 GLenum pname = cmd->pname;
7227 GLfloat param = cmd->param;
7230 assert (cmd_size == cmd->cmd_base.cmd_size);
7238 struct marshal_cmd_PixelTransferf *cmd;
7239 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelTransferf, cmd_size);
7240 cmd->pname = pname;
7241 cmd->param = param;
7253 _mesa_unmarshal_PixelTransferi(struct gl_context *ctx, const struct marshal_cmd_PixelTransferi *cmd, const uint64_t *last)
7255 GLenum pname = cmd->pname;
7256 GLint param = cmd->param;
7259 assert (cmd_size == cmd->cmd_base.cmd_size);
7267 struct marshal_cmd_PixelTransferi *cmd;
7268 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelTransferi, cmd_size);
7269 cmd->pname = pname;
7270 cmd->param = param;
7282 _mesa_unmarshal_PixelStoref(struct gl_context *ctx, const struct marshal_cmd_PixelStoref *cmd, const uint64_t *last)
7284 GLenum pname = cmd->pname;
7285 GLfloat param = cmd->param;
7288 assert (cmd_size == cmd->cmd_base.cmd_size);
7296 struct marshal_cmd_PixelStoref *cmd;
7297 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelStoref, cmd_size);
7298 cmd->pname = pname;
7299 cmd->param = param;
7311 _mesa_unmarshal_PixelStorei(struct gl_context *ctx, const struct marshal_cmd_PixelStorei *cmd, const uint64_t *last)
7313 GLenum pname = cmd->pname;
7314 GLint param = cmd->param;
7317 assert (cmd_size == cmd->cmd_base.cmd_size);
7325 struct marshal_cmd_PixelStorei *cmd;
7326 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelStorei, cmd_size);
7327 cmd->pname = pname;
7328 cmd->param = param;
7341 _mesa_unmarshal_PixelMapfv(struct gl_context *ctx, const struct marshal_cmd_PixelMapfv *cmd, const uint64_t *last)
7343 GLenum map = cmd->map;
7344 GLsizei mapsize = cmd->mapsize;
7345 const GLfloat * values = cmd->values;
7348 assert (cmd_size == cmd->cmd_base.cmd_size);
7356 struct marshal_cmd_PixelMapfv *cmd;
7362 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelMapfv, cmd_size);
7363 cmd->map = map;
7364 cmd->mapsize = mapsize;
7365 cmd->values = values;
7378 _mesa_unmarshal_PixelMapuiv(struct gl_context *ctx, const struct marshal_cmd_PixelMapuiv *cmd, const uint64_t *last)
7380 GLenum map = cmd->map;
7381 GLsizei mapsize = cmd->mapsize;
7382 const GLuint * values = cmd->values;
7385 assert (cmd_size == cmd->cmd_base.cmd_size);
7393 struct marshal_cmd_PixelMapuiv *cmd;
7399 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelMapuiv, cmd_size);
7400 cmd->map = map;
7401 cmd->mapsize = mapsize;
7402 cmd->values = values;
7415 _mesa_unmarshal_PixelMapusv(struct gl_context *ctx, const struct marshal_cmd_PixelMapusv *cmd, const uint64_t *last)
7417 GLenum map = cmd->map;
7418 GLsizei mapsize = cmd->mapsize;
7419 const GLushort * values = cmd->values;
7422 assert (cmd_size == cmd->cmd_base.cmd_size);
7430 struct marshal_cmd_PixelMapusv *cmd;
7436 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PixelMapusv, cmd_size);
7437 cmd->map = map;
7438 cmd->mapsize = mapsize;
7439 cmd->values = values;
7450 _mesa_unmarshal_ReadBuffer(struct gl_context *ctx, const struct marshal_cmd_ReadBuffer *cmd, const uint64_t *last)
7452 GLenum mode = cmd->mode;
7455 assert (cmd_size == cmd->cmd_base.cmd_size);
7463 struct marshal_cmd_ReadBuffer *cmd;
7464 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ReadBuffer, cmd_size);
7465 cmd->mode = mode;
7480 _mesa_unmarshal_CopyPixels(struct gl_context *ctx, const struct marshal_cmd_CopyPixels *cmd, const uint64_t *last)
7482 GLint x = cmd->x;
7483 GLint y = cmd->y;
7484 GLsizei width = cmd->width;
7485 GLsizei height = cmd->height;
7486 GLenum type = cmd->type;
7489 assert (cmd_size == cmd->cmd_base.cmd_size);
7497 struct marshal_cmd_CopyPixels *cmd;
7498 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyPixels, cmd_size);
7499 cmd->x = x;
7500 cmd->y = y;
7501 cmd->width = width;
7502 cmd->height = height;
7503 cmd->type = type;
7520 _mesa_unmarshal_ReadPixels(struct gl_context *ctx, const struct marshal_cmd_ReadPixels *cmd, const uint64_t *last)
7522 GLint x = cmd->x;
7523 GLint y = cmd->y;
7524 GLsizei width = cmd->width;
7525 GLsizei height = cmd->height;
7526 GLenum format = cmd->format;
7527 GLenum type = cmd->type;
7528 GLvoid * pixels = cmd->pixels;
7531 assert (cmd_size == cmd->cmd_base.cmd_size);
7539 struct marshal_cmd_ReadPixels *cmd;
7545 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ReadPixels, cmd_size);
7546 cmd->x = x;
7547 cmd->y = y;
7548 cmd->width = width;
7549 cmd->height = height;
7550 cmd->format = format;
7551 cmd->type = type;
7552 cmd->pixels = pixels;
7567 _mesa_unmarshal_DrawPixels(struct gl_context *ctx, const struct marshal_cmd_DrawPixels *cmd, const uint64_t *last)
7569 GLsizei width = cmd->width;
7570 GLsizei height = cmd->height;
7571 GLenum format = cmd->format;
7572 GLenum type = cmd->type;
7573 const GLvoid * pixels = cmd->pixels;
7576 assert (cmd_size == cmd->cmd_base.cmd_size);
7584 struct marshal_cmd_DrawPixels *cmd;
7590 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawPixels, cmd_size);
7591 cmd->width = width;
7592 cmd->height = height;
7593 cmd->format = format;
7594 cmd->type = type;
7595 cmd->pixels = pixels;