Lines Matching refs:cmd
52 _mesa_unmarshal_GetPixelMapfv(struct gl_context *ctx, const struct marshal_cmd_GetPixelMapfv *cmd, const uint64_t *last)
54 GLenum map = cmd->map;
55 GLfloat * values = cmd->values;
58 assert (cmd_size == cmd->cmd_base.cmd_size);
66 struct marshal_cmd_GetPixelMapfv *cmd;
72 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetPixelMapfv, cmd_size);
73 cmd->map = map;
74 cmd->values = values;
86 _mesa_unmarshal_GetPixelMapuiv(struct gl_context *ctx, const struct marshal_cmd_GetPixelMapuiv *cmd, const uint64_t *last)
88 GLenum map = cmd->map;
89 GLuint * values = cmd->values;
92 assert (cmd_size == cmd->cmd_base.cmd_size);
100 struct marshal_cmd_GetPixelMapuiv *cmd;
106 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetPixelMapuiv, cmd_size);
107 cmd->map = map;
108 cmd->values = values;
120 _mesa_unmarshal_GetPixelMapusv(struct gl_context *ctx, const struct marshal_cmd_GetPixelMapusv *cmd, const uint64_t *last)
122 GLenum map = cmd->map;
123 GLushort * values = cmd->values;
126 assert (cmd_size == cmd->cmd_base.cmd_size);
134 struct marshal_cmd_GetPixelMapusv *cmd;
140 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetPixelMapusv, cmd_size);
141 cmd->map = map;
142 cmd->values = values;
153 _mesa_unmarshal_GetPolygonStipple(struct gl_context *ctx, const struct marshal_cmd_GetPolygonStipple *cmd, const uint64_t *last)
155 GLubyte * mask = cmd->mask;
158 assert (cmd_size == cmd->cmd_base.cmd_size);
166 struct marshal_cmd_GetPolygonStipple *cmd;
172 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetPolygonStipple, cmd_size);
173 cmd->mask = mask;
248 _mesa_unmarshal_GetTexImage(struct gl_context *ctx, const struct marshal_cmd_GetTexImage *cmd, const uint64_t *last)
250 GLenum target = cmd->target;
251 GLint level = cmd->level;
252 GLenum format = cmd->format;
253 GLenum type = cmd->type;
254 GLvoid * pixels = cmd->pixels;
257 assert (cmd_size == cmd->cmd_base.cmd_size);
265 struct marshal_cmd_GetTexImage *cmd;
271 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetTexImage, cmd_size);
272 cmd->target = target;
273 cmd->level = level;
274 cmd->format = format;
275 cmd->type = type;
276 cmd->pixels = pixels;
348 _mesa_unmarshal_DepthRange(struct gl_context *ctx, const struct marshal_cmd_DepthRange *cmd, const uint64_t *last)
350 GLclampd zNear = cmd->zNear;
351 GLclampd zFar = cmd->zFar;
354 assert (cmd_size == cmd->cmd_base.cmd_size);
362 struct marshal_cmd_DepthRange *cmd;
363 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DepthRange, cmd_size);
364 cmd->zNear = zNear;
365 cmd->zFar = zFar;
381 _mesa_unmarshal_Frustum(struct gl_context *ctx, const struct marshal_cmd_Frustum *cmd, const uint64_t *last)
383 GLdouble left = cmd->left;
384 GLdouble right = cmd->right;
385 GLdouble bottom = cmd->bottom;
386 GLdouble top = cmd->top;
387 GLdouble zNear = cmd->zNear;
388 GLdouble zFar = cmd->zFar;
391 assert (cmd_size == cmd->cmd_base.cmd_size);
399 struct marshal_cmd_Frustum *cmd;
400 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Frustum, cmd_size);
401 cmd->left = left;
402 cmd->right = right;
403 cmd->bottom = bottom;
404 cmd->top = top;
405 cmd->zNear = zNear;
406 cmd->zFar = zFar;
416 _mesa_unmarshal_LoadIdentity(struct gl_context *ctx, const struct marshal_cmd_LoadIdentity *cmd, const uint64_t *last)
420 assert (cmd_size == cmd->cmd_base.cmd_size);
428 struct marshal_cmd_LoadIdentity *cmd;
429 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LoadIdentity, cmd_size);
430 (void) cmd;
441 _mesa_unmarshal_LoadMatrixf(struct gl_context *ctx, const struct marshal_cmd_LoadMatrixf *cmd, const uint64_t *last)
443 const GLfloat * m = cmd->m;
446 assert (cmd_size == cmd->cmd_base.cmd_size);
454 struct marshal_cmd_LoadMatrixf *cmd;
455 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LoadMatrixf, cmd_size);
456 memcpy(cmd->m, m, 16 * sizeof(GLfloat));
467 _mesa_unmarshal_LoadMatrixd(struct gl_context *ctx, const struct marshal_cmd_LoadMatrixd *cmd, const uint64_t *last)
469 const GLdouble * m = cmd->m;
472 assert (cmd_size == cmd->cmd_base.cmd_size);
480 struct marshal_cmd_LoadMatrixd *cmd;
481 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LoadMatrixd, cmd_size);
482 memcpy(cmd->m, m, 16 * sizeof(GLdouble));
493 _mesa_unmarshal_MatrixMode(struct gl_context *ctx, const struct marshal_cmd_MatrixMode *cmd, const uint64_t *last)
495 GLenum mode = cmd->mode;
498 assert (cmd_size == cmd->cmd_base.cmd_size);
506 struct marshal_cmd_MatrixMode *cmd;
507 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MatrixMode, cmd_size);
508 cmd->mode = mode;
520 _mesa_unmarshal_MultMatrixf(struct gl_context *ctx, const struct marshal_cmd_MultMatrixf *cmd, const uint64_t *last)
522 const GLfloat * m = cmd->m;
525 assert (cmd_size == cmd->cmd_base.cmd_size);
533 struct marshal_cmd_MultMatrixf *cmd;
534 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultMatrixf, cmd_size);
535 memcpy(cmd->m, m, 16 * sizeof(GLfloat));
546 _mesa_unmarshal_MultMatrixd(struct gl_context *ctx, const struct marshal_cmd_MultMatrixd *cmd, const uint64_t *last)
548 const GLdouble * m = cmd->m;
551 assert (cmd_size == cmd->cmd_base.cmd_size);
559 struct marshal_cmd_MultMatrixd *cmd;
560 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultMatrixd, cmd_size);
561 memcpy(cmd->m, m, 16 * sizeof(GLdouble));
577 _mesa_unmarshal_Ortho(struct gl_context *ctx, const struct marshal_cmd_Ortho *cmd, const uint64_t *last)
579 GLdouble left = cmd->left;
580 GLdouble right = cmd->right;
581 GLdouble bottom = cmd->bottom;
582 GLdouble top = cmd->top;
583 GLdouble zNear = cmd->zNear;
584 GLdouble zFar = cmd->zFar;
587 assert (cmd_size == cmd->cmd_base.cmd_size);
595 struct marshal_cmd_Ortho *cmd;
596 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Ortho, cmd_size);
597 cmd->left = left;
598 cmd->right = right;
599 cmd->bottom = bottom;
600 cmd->top = top;
601 cmd->zNear = zNear;
602 cmd->zFar = zFar;
612 _mesa_unmarshal_PopMatrix(struct gl_context *ctx, const struct marshal_cmd_PopMatrix *cmd, const uint64_t *last)
616 assert (cmd_size == cmd->cmd_base.cmd_size);
624 struct marshal_cmd_PopMatrix *cmd;
625 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PopMatrix, cmd_size);
626 (void) cmd;
637 _mesa_unmarshal_PushMatrix(struct gl_context *ctx, const struct marshal_cmd_PushMatrix *cmd, const uint64_t *last)
641 assert (cmd_size == cmd->cmd_base.cmd_size);
649 struct marshal_cmd_PushMatrix *cmd;
650 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PushMatrix, cmd_size);
651 (void) cmd;
666 _mesa_unmarshal_Rotated(struct gl_context *ctx, const struct marshal_cmd_Rotated *cmd, const uint64_t *last)
668 GLdouble angle = cmd->angle;
669 GLdouble x = cmd->x;
670 GLdouble y = cmd->y;
671 GLdouble z = cmd->z;
674 assert (cmd_size == cmd->cmd_base.cmd_size);
682 struct marshal_cmd_Rotated *cmd;
683 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rotated, cmd_size);
684 cmd->angle = angle;
685 cmd->x = x;
686 cmd->y = y;
687 cmd->z = z;
701 _mesa_unmarshal_Rotatef(struct gl_context *ctx, const struct marshal_cmd_Rotatef *cmd, const uint64_t *last)
703 GLfloat angle = cmd->angle;
704 GLfloat x = cmd->x;
705 GLfloat y = cmd->y;
706 GLfloat z = cmd->z;
709 assert (cmd_size == cmd->cmd_base.cmd_size);
717 struct marshal_cmd_Rotatef *cmd;
718 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rotatef, cmd_size);
719 cmd->angle = angle;
720 cmd->x = x;
721 cmd->y = y;
722 cmd->z = z;
735 _mesa_unmarshal_Scaled(struct gl_context *ctx, const struct marshal_cmd_Scaled *cmd, const uint64_t *last)
737 GLdouble x = cmd->x;
738 GLdouble y = cmd->y;
739 GLdouble z = cmd->z;
742 assert (cmd_size == cmd->cmd_base.cmd_size);
750 struct marshal_cmd_Scaled *cmd;
751 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Scaled, cmd_size);
752 cmd->x = x;
753 cmd->y = y;
754 cmd->z = z;
767 _mesa_unmarshal_Scalef(struct gl_context *ctx, const struct marshal_cmd_Scalef *cmd, const uint64_t *last)
769 GLfloat x = cmd->x;
770 GLfloat y = cmd->y;
771 GLfloat z = cmd->z;
774 assert (cmd_size == cmd->cmd_base.cmd_size);
782 struct marshal_cmd_Scalef *cmd;
783 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Scalef, cmd_size);
784 cmd->x = x;
785 cmd->y = y;
786 cmd->z = z;
799 _mesa_unmarshal_Translated(struct gl_context *ctx, const struct marshal_cmd_Translated *cmd, const uint64_t *last)
801 GLdouble x = cmd->x;
802 GLdouble y = cmd->y;
803 GLdouble z = cmd->z;
806 assert (cmd_size == cmd->cmd_base.cmd_size);
814 struct marshal_cmd_Translated *cmd;
815 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Translated, cmd_size);
816 cmd->x = x;
817 cmd->y = y;
818 cmd->z = z;
831 _mesa_unmarshal_Translatef(struct gl_context *ctx, const struct marshal_cmd_Translatef *cmd, const uint64_t *last)
833 GLfloat x = cmd->x;
834 GLfloat y = cmd->y;
835 GLfloat z = cmd->z;
838 assert (cmd_size == cmd->cmd_base.cmd_size);
846 struct marshal_cmd_Translatef *cmd;
847 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Translatef, cmd_size);
848 cmd->x = x;
849 cmd->y = y;
850 cmd->z = z;
864 _mesa_unmarshal_Viewport(struct gl_context *ctx, const struct marshal_cmd_Viewport *cmd, const uint64_t *last)
866 GLint x = cmd->x;
867 GLint y = cmd->y;
868 GLsizei width = cmd->width;
869 GLsizei height = cmd->height;
872 assert (cmd_size == cmd->cmd_base.cmd_size);
880 struct marshal_cmd_Viewport *cmd;
881 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Viewport, cmd_size);
882 cmd->x = x;
883 cmd->y = y;
884 cmd->width = width;
885 cmd->height = height;
896 _mesa_unmarshal_ArrayElement(struct gl_context *ctx, const struct marshal_cmd_ArrayElement *cmd, const uint64_t *last)
898 GLint i = cmd->i;
901 assert (cmd_size == cmd->cmd_base.cmd_size);
909 struct marshal_cmd_ArrayElement *cmd;
910 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ArrayElement, cmd_size);
911 cmd->i = i;
925 _mesa_unmarshal_ColorPointer(struct gl_context *ctx, const struct marshal_cmd_ColorPointer *cmd, const uint64_t *last)
927 GLint size = cmd->size;
928 GLenum type = cmd->type;
929 GLsizei stride = cmd->stride;
930 const GLvoid * pointer = cmd->pointer;
933 assert (cmd_size == cmd->cmd_base.cmd_size);
941 struct marshal_cmd_ColorPointer *cmd;
942 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ColorPointer, cmd_size);
943 cmd->size = size;
944 cmd->type = type;
945 cmd->stride = stride;
946 cmd->pointer = pointer;
958 _mesa_unmarshal_DisableClientState(struct gl_context *ctx, const struct marshal_cmd_DisableClientState *cmd, const uint64_t *last)
960 GLenum array = cmd->array;
963 assert (cmd_size == cmd->cmd_base.cmd_size);
971 struct marshal_cmd_DisableClientState *cmd;
972 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DisableClientState, cmd_size);
973 cmd->array = array;
986 _mesa_unmarshal_EdgeFlagPointer(struct gl_context *ctx, const struct marshal_cmd_EdgeFlagPointer *cmd, const uint64_t *last)
988 GLsizei stride = cmd->stride;
989 const GLvoid * pointer = cmd->pointer;
992 assert (cmd_size == cmd->cmd_base.cmd_size);
1000 struct marshal_cmd_EdgeFlagPointer *cmd;
1001 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EdgeFlagPointer, cmd_size);
1002 cmd->stride = stride;
1003 cmd->pointer = pointer;
1015 _mesa_unmarshal_EnableClientState(struct gl_context *ctx, const struct marshal_cmd_EnableClientState *cmd, const uint64_t *last)
1017 GLenum array = cmd->array;
1020 assert (cmd_size == cmd->cmd_base.cmd_size);
1028 struct marshal_cmd_EnableClientState *cmd;
1029 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EnableClientState, cmd_size);
1030 cmd->array = array;
1054 _mesa_unmarshal_IndexPointer(struct gl_context *ctx, const struct marshal_cmd_IndexPointer *cmd, const uint64_t *last)
1056 GLenum type = cmd->type;
1057 GLsizei stride = cmd->stride;
1058 const GLvoid * pointer = cmd->pointer;
1061 assert (cmd_size == cmd->cmd_base.cmd_size);
1069 struct marshal_cmd_IndexPointer *cmd;
1070 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_IndexPointer, cmd_size);
1071 cmd->type = type;
1072 cmd->stride = stride;
1073 cmd->pointer = pointer;
1087 _mesa_unmarshal_InterleavedArrays(struct gl_context *ctx, const struct marshal_cmd_InterleavedArrays *cmd, const uint64_t *last)
1089 GLenum format = cmd->format;
1090 GLsizei stride = cmd->stride;
1091 const GLvoid * pointer = cmd->pointer;
1094 assert (cmd_size == cmd->cmd_base.cmd_size);
1102 struct marshal_cmd_InterleavedArrays *cmd;
1103 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InterleavedArrays, cmd_size);
1104 cmd->format = format;
1105 cmd->stride = stride;
1106 cmd->pointer = pointer;
1120 _mesa_unmarshal_NormalPointer(struct gl_context *ctx, const struct marshal_cmd_NormalPointer *cmd, const uint64_t *last)
1122 GLenum type = cmd->type;
1123 GLsizei stride = cmd->stride;
1124 const GLvoid * pointer = cmd->pointer;
1127 assert (cmd_size == cmd->cmd_base.cmd_size);
1135 struct marshal_cmd_NormalPointer *cmd;
1136 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NormalPointer, cmd_size);
1137 cmd->type = type;
1138 cmd->stride = stride;
1139 cmd->pointer = pointer;
1154 _mesa_unmarshal_TexCoordPointer(struct gl_context *ctx, const struct marshal_cmd_TexCoordPointer *cmd, const uint64_t *last)
1156 GLint size = cmd->size;
1157 GLenum type = cmd->type;
1158 GLsizei stride = cmd->stride;
1159 const GLvoid * pointer = cmd->pointer;
1162 assert (cmd_size == cmd->cmd_base.cmd_size);
1170 struct marshal_cmd_TexCoordPointer *cmd;
1171 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordPointer, cmd_size);
1172 cmd->size = size;
1173 cmd->type = type;
1174 cmd->stride = stride;
1175 cmd->pointer = pointer;
1190 _mesa_unmarshal_VertexPointer(struct gl_context *ctx, const struct marshal_cmd_VertexPointer *cmd, const uint64_t *last)
1192 GLint size = cmd->size;
1193 GLenum type = cmd->type;
1194 GLsizei stride = cmd->stride;
1195 const GLvoid * pointer = cmd->pointer;
1198 assert (cmd_size == cmd->cmd_base.cmd_size);
1206 struct marshal_cmd_VertexPointer *cmd;
1207 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexPointer, cmd_size);
1208 cmd->size = size;
1209 cmd->type = type;
1210 cmd->stride = stride;
1211 cmd->pointer = pointer;
1224 _mesa_unmarshal_PolygonOffset(struct gl_context *ctx, const struct marshal_cmd_PolygonOffset *cmd, const uint64_t *last)
1226 GLfloat factor = cmd->factor;
1227 GLfloat units = cmd->units;
1230 assert (cmd_size == cmd->cmd_base.cmd_size);
1238 struct marshal_cmd_PolygonOffset *cmd;
1239 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PolygonOffset, cmd_size);
1240 cmd->factor = factor;
1241 cmd->units = units;
1258 _mesa_unmarshal_CopyTexImage1D(struct gl_context *ctx, const struct marshal_cmd_CopyTexImage1D *cmd, const uint64_t *last)
1260 GLenum target = cmd->target;
1261 GLint level = cmd->level;
1262 GLenum internalformat = cmd->internalformat;
1263 GLint x = cmd->x;
1264 GLint y = cmd->y;
1265 GLsizei width = cmd->width;
1266 GLint border = cmd->border;
1269 assert (cmd_size == cmd->cmd_base.cmd_size);
1277 struct marshal_cmd_CopyTexImage1D *cmd;
1278 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTexImage1D, cmd_size);
1279 cmd->target = target;
1280 cmd->level = level;
1281 cmd->internalformat = internalformat;
1282 cmd->x = x;
1283 cmd->y = y;
1284 cmd->width = width;
1285 cmd->border = border;
1303 _mesa_unmarshal_CopyTexImage2D(struct gl_context *ctx, const struct marshal_cmd_CopyTexImage2D *cmd, const uint64_t *last)
1305 GLenum target = cmd->target;
1306 GLint level = cmd->level;
1307 GLenum internalformat = cmd->internalformat;
1308 GLint x = cmd->x;
1309 GLint y = cmd->y;
1310 GLsizei width = cmd->width;
1311 GLsizei height = cmd->height;
1312 GLint border = cmd->border;
1315 assert (cmd_size == cmd->cmd_base.cmd_size);
1323 struct marshal_cmd_CopyTexImage2D *cmd;
1324 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTexImage2D, cmd_size);
1325 cmd->target = target;
1326 cmd->level = level;
1327 cmd->internalformat = internalformat;
1328 cmd->x = x;
1329 cmd->y = y;
1330 cmd->width = width;
1331 cmd->height = height;
1332 cmd->border = border;
1348 _mesa_unmarshal_CopyTexSubImage1D(struct gl_context *ctx, const struct marshal_cmd_CopyTexSubImage1D *cmd, const uint64_t *last)
1350 GLenum target = cmd->target;
1351 GLint level = cmd->level;
1352 GLint xoffset = cmd->xoffset;
1353 GLint x = cmd->x;
1354 GLint y = cmd->y;
1355 GLsizei width = cmd->width;
1358 assert (cmd_size == cmd->cmd_base.cmd_size);
1366 struct marshal_cmd_CopyTexSubImage1D *cmd;
1367 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTexSubImage1D, cmd_size);
1368 cmd->target = target;
1369 cmd->level = level;
1370 cmd->xoffset = xoffset;
1371 cmd->x = x;
1372 cmd->y = y;
1373 cmd->width = width;
1391 _mesa_unmarshal_CopyTexSubImage2D(struct gl_context *ctx, const struct marshal_cmd_CopyTexSubImage2D *cmd, const uint64_t *last)
1393 GLenum target = cmd->target;
1394 GLint level = cmd->level;
1395 GLint xoffset = cmd->xoffset;
1396 GLint yoffset = cmd->yoffset;
1397 GLint x = cmd->x;
1398 GLint y = cmd->y;
1399 GLsizei width = cmd->width;
1400 GLsizei height = cmd->height;
1403 assert (cmd_size == cmd->cmd_base.cmd_size);
1411 struct marshal_cmd_CopyTexSubImage2D *cmd;
1412 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTexSubImage2D, cmd_size);
1413 cmd->target = target;
1414 cmd->level = level;
1415 cmd->xoffset = xoffset;
1416 cmd->yoffset = yoffset;
1417 cmd->x = x;
1418 cmd->y = y;
1419 cmd->width = width;
1420 cmd->height = height;
1437 _mesa_unmarshal_TexSubImage1D(struct gl_context *ctx, const struct marshal_cmd_TexSubImage1D *cmd, const uint64_t *last)
1439 GLenum target = cmd->target;
1440 GLint level = cmd->level;
1441 GLint xoffset = cmd->xoffset;
1442 GLsizei width = cmd->width;
1443 GLenum format = cmd->format;
1444 GLenum type = cmd->type;
1445 const GLvoid * pixels = cmd->pixels;
1448 assert (cmd_size == cmd->cmd_base.cmd_size);
1456 struct marshal_cmd_TexSubImage1D *cmd;
1462 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexSubImage1D, cmd_size);
1463 cmd->target = target;
1464 cmd->level = level;
1465 cmd->xoffset = xoffset;
1466 cmd->width = width;
1467 cmd->format = format;
1468 cmd->type = type;
1469 cmd->pixels = pixels;
1488 _mesa_unmarshal_TexSubImage2D(struct gl_context *ctx, const struct marshal_cmd_TexSubImage2D *cmd, const uint64_t *last)
1490 GLenum target = cmd->target;
1491 GLint level = cmd->level;
1492 GLint xoffset = cmd->xoffset;
1493 GLint yoffset = cmd->yoffset;
1494 GLsizei width = cmd->width;
1495 GLsizei height = cmd->height;
1496 GLenum format = cmd->format;
1497 GLenum type = cmd->type;
1498 const GLvoid * pixels = cmd->pixels;
1501 assert (cmd_size == cmd->cmd_base.cmd_size);
1509 struct marshal_cmd_TexSubImage2D *cmd;
1515 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexSubImage2D, cmd_size);
1516 cmd->target = target;
1517 cmd->level = level;
1518 cmd->xoffset = xoffset;
1519 cmd->yoffset = yoffset;
1520 cmd->width = width;
1521 cmd->height = height;
1522 cmd->format = format;
1523 cmd->type = type;
1524 cmd->pixels = pixels;
1546 _mesa_unmarshal_BindTexture(struct gl_context *ctx, const struct marshal_cmd_BindTexture *cmd, const uint64_t *last)
1548 GLenum target = cmd->target;
1549 GLuint texture = cmd->texture;
1552 assert (cmd_size == cmd->cmd_base.cmd_size);
1560 struct marshal_cmd_BindTexture *cmd;
1561 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindTexture, cmd_size);
1562 cmd->target = target;
1563 cmd->texture = texture;
1575 _mesa_unmarshal_DeleteTextures(struct gl_context *ctx, const struct marshal_cmd_DeleteTextures *cmd, const uint64_t *last)
1577 GLsizei n = cmd->n;
1579 const char *variable_data = (const char *) (cmd + 1);
1582 return cmd->cmd_base.cmd_size;
1590 struct marshal_cmd_DeleteTextures *cmd;
1596 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteTextures, cmd_size);
1597 cmd->n = n;
1598 char *variable_data = (char *) (cmd + 1);
1632 _mesa_unmarshal_PrioritizeTextures(struct gl_context *ctx, const struct marshal_cmd_PrioritizeTextures *cmd, const uint64_t *last)
1634 GLsizei n = cmd->n;
1637 const char *variable_data = (const char *) (cmd + 1);
1642 return cmd->cmd_base.cmd_size;
1651 struct marshal_cmd_PrioritizeTextures *cmd;
1657 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PrioritizeTextures, cmd_size);
1658 cmd->n = n;
1659 char *variable_data = (char *) (cmd + 1);
1673 _mesa_unmarshal_Indexub(struct gl_context *ctx, const struct marshal_cmd_Indexub *cmd, const uint64_t *last)
1675 GLubyte c = cmd->c;
1678 assert (cmd_size == cmd->cmd_base.cmd_size);
1686 struct marshal_cmd_Indexub *cmd;
1687 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexub, cmd_size);
1688 cmd->c = c;
1699 _mesa_unmarshal_Indexubv(struct gl_context *ctx, const struct marshal_cmd_Indexubv *cmd, const uint64_t *last)
1701 const GLubyte * c = cmd->c;
1704 assert (cmd_size == cmd->cmd_base.cmd_size);
1712 struct marshal_cmd_Indexubv *cmd;
1713 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Indexubv, cmd_size);
1714 memcpy(cmd->c, c, 1 * sizeof(GLubyte));
1724 _mesa_unmarshal_PopClientAttrib(struct gl_context *ctx, const struct marshal_cmd_PopClientAttrib *cmd, const uint64_t *last)
1728 assert (cmd_size == cmd->cmd_base.cmd_size);
1736 struct marshal_cmd_PopClientAttrib *cmd;
1737 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PopClientAttrib, cmd_size);
1738 (void) cmd;
1750 _mesa_unmarshal_PushClientAttrib(struct gl_context *ctx, const struct marshal_cmd_PushClientAttrib *cmd, const uint64_t *last)
1752 GLbitfield mask = cmd->mask;
1755 assert (cmd_size == cmd->cmd_base.cmd_size);
1763 struct marshal_cmd_PushClientAttrib *cmd;
1764 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PushClientAttrib, cmd_size);
1765 cmd->mask = mask;
1780 _mesa_unmarshal_BlendColor(struct gl_context *ctx, const struct marshal_cmd_BlendColor *cmd, const uint64_t *last)
1782 GLclampf red = cmd->red;
1783 GLclampf green = cmd->green;
1784 GLclampf blue = cmd->blue;
1785 GLclampf alpha = cmd->alpha;
1788 assert (cmd_size == cmd->cmd_base.cmd_size);
1796 struct marshal_cmd_BlendColor *cmd;
1797 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendColor, cmd_size);
1798 cmd->red = red;
1799 cmd->green = green;
1800 cmd->blue = blue;
1801 cmd->alpha = alpha;
1812 _mesa_unmarshal_BlendEquation(struct gl_context *ctx, const struct marshal_cmd_BlendEquation *cmd, const uint64_t *last)
1814 GLenum mode = cmd->mode;
1817 assert (cmd_size == cmd->cmd_base.cmd_size);
1825 struct marshal_cmd_BlendEquation *cmd;
1826 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendEquation, cmd_size);
1827 cmd->mode = mode;
1872 _mesa_unmarshal_CopyColorTable(struct gl_context *ctx, const struct marshal_cmd_CopyColorTable *cmd, const uint64_t *last)
1874 GLenum target = cmd->target;
1875 GLenum internalformat = cmd->internalformat;
1876 GLint x = cmd->x;
1877 GLint y = cmd->y;
1878 GLsizei width = cmd->width;
1881 assert (cmd_size == cmd->cmd_base.cmd_size);
1889 struct marshal_cmd_CopyColorTable *cmd;
1890 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyColorTable, cmd_size);
1891 cmd->target = target;
1892 cmd->internalformat = internalformat;
1893 cmd->x = x;
1894 cmd->y = y;
1895 cmd->width = width;
1950 _mesa_unmarshal_CopyColorSubTable(struct gl_context *ctx, const struct marshal_cmd_CopyColorSubTable *cmd, const uint64_t *last)
1952 GLenum target = cmd->target;
1953 GLsizei start = cmd->start;
1954 GLint x = cmd->x;
1955 GLint y = cmd->y;
1956 GLsizei width = cmd->width;
1959 assert (cmd_size == cmd->cmd_base.cmd_size);
1967 struct marshal_cmd_CopyColorSubTable *cmd;
1968 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyColorSubTable, cmd_size);
1969 cmd->target = target;
1970 cmd->start = start;
1971 cmd->x = x;
1972 cmd->y = y;
1973 cmd->width = width;
2006 _mesa_unmarshal_ConvolutionParameterf(struct gl_context *ctx, const struct marshal_cmd_ConvolutionParameterf *cmd, const uint64_t *last)
2008 GLenum target = cmd->target;
2009 GLenum pname = cmd->pname;
2010 GLfloat params = cmd->params;
2013 assert (cmd_size == cmd->cmd_base.cmd_size);
2021 struct marshal_cmd_ConvolutionParameterf *cmd;
2022 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ConvolutionParameterf, cmd_size);
2023 cmd->target = target;
2024 cmd->pname = pname;
2025 cmd->params = params;
2048 _mesa_unmarshal_ConvolutionParameteri(struct gl_context *ctx, const struct marshal_cmd_ConvolutionParameteri *cmd, const uint64_t *last)
2050 GLenum target = cmd->target;
2051 GLenum pname = cmd->pname;
2052 GLint params = cmd->params;
2055 assert (cmd_size == cmd->cmd_base.cmd_size);
2063 struct marshal_cmd_ConvolutionParameteri *cmd;
2064 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ConvolutionParameteri, cmd_size);
2065 cmd->target = target;
2066 cmd->pname = pname;
2067 cmd->params = params;
2092 _mesa_unmarshal_CopyConvolutionFilter1D(struct gl_context *ctx, const struct marshal_cmd_CopyConvolutionFilter1D *cmd, const uint64_t *last)
2094 GLenum target = cmd->target;
2095 GLenum internalformat = cmd->internalformat;
2096 GLint x = cmd->x;
2097 GLint y = cmd->y;
2098 GLsizei width = cmd->width;
2101 assert (cmd_size == cmd->cmd_base.cmd_size);
2109 struct marshal_cmd_CopyConvolutionFilter1D *cmd;
2110 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyConvolutionFilter1D, cmd_size);
2111 cmd->target = target;
2112 cmd->internalformat = internalformat;
2113 cmd->x = x;
2114 cmd->y = y;
2115 cmd->width = width;
2131 _mesa_unmarshal_CopyConvolutionFilter2D(struct gl_context *ctx, const struct marshal_cmd_CopyConvolutionFilter2D *cmd, const uint64_t *last)
2133 GLenum target = cmd->target;
2134 GLenum internalformat = cmd->internalformat;
2135 GLint x = cmd->x;
2136 GLint y = cmd->y;
2137 GLsizei width = cmd->width;
2138 GLsizei height = cmd->height;
2141 assert (cmd_size == cmd->cmd_base.cmd_size);
2149 struct marshal_cmd_CopyConvolutionFilter2D *cmd;
2150 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyConvolutionFilter2D, cmd_size);
2151 cmd->target = target;
2152 cmd->internalformat = internalformat;
2153 cmd->x = x;
2154 cmd->y = y;
2155 cmd->width = width;
2156 cmd->height = height;
2280 _mesa_unmarshal_Histogram(struct gl_context *ctx, const struct marshal_cmd_Histogram *cmd, const uint64_t *last)
2282 GLenum target = cmd->target;
2283 GLsizei width = cmd->width;
2284 GLenum internalformat = cmd->internalformat;
2285 GLboolean sink = cmd->sink;
2288 assert (cmd_size == cmd->cmd_base.cmd_size);
2296 struct marshal_cmd_Histogram *cmd;
2297 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Histogram, cmd_size);
2298 cmd->target = target;
2299 cmd->width = width;
2300 cmd->internalformat = internalformat;
2301 cmd->sink = sink;
2314 _mesa_unmarshal_Minmax(struct gl_context *ctx, const struct marshal_cmd_Minmax *cmd, const uint64_t *last)
2316 GLenum target = cmd->target;
2317 GLenum internalformat = cmd->internalformat;
2318 GLboolean sink = cmd->sink;
2321 assert (cmd_size == cmd->cmd_base.cmd_size);
2329 struct marshal_cmd_Minmax *cmd;
2330 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Minmax, cmd_size);
2331 cmd->target = target;
2332 cmd->internalformat = internalformat;
2333 cmd->sink = sink;
2344 _mesa_unmarshal_ResetHistogram(struct gl_context *ctx, const struct marshal_cmd_ResetHistogram *cmd, const uint64_t *last)
2346 GLenum target = cmd->target;
2349 assert (cmd_size == cmd->cmd_base.cmd_size);
2357 struct marshal_cmd_ResetHistogram *cmd;
2358 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ResetHistogram, cmd_size);
2359 cmd->target = target;
2370 _mesa_unmarshal_ResetMinmax(struct gl_context *ctx, const struct marshal_cmd_ResetMinmax *cmd, const uint64_t *last)
2372 GLenum target = cmd->target;
2375 assert (cmd_size == cmd->cmd_base.cmd_size);
2383 struct marshal_cmd_ResetMinmax *cmd;
2384 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ResetMinmax, cmd_size);
2385 cmd->target = target;
2405 _mesa_unmarshal_TexImage3D(struct gl_context *ctx, const struct marshal_cmd_TexImage3D *cmd, const uint64_t *last)
2407 GLenum target = cmd->target;
2408 GLint level = cmd->level;
2409 GLint internalformat = cmd->internalformat;
2410 GLsizei width = cmd->width;
2411 GLsizei height = cmd->height;
2412 GLsizei depth = cmd->depth;
2413 GLint border = cmd->border;
2414 GLenum format = cmd->format;
2415 GLenum type = cmd->type;
2416 const GLvoid * pixels = cmd->pixels;
2419 assert (cmd_size == cmd->cmd_base.cmd_size);
2427 struct marshal_cmd_TexImage3D *cmd;
2433 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexImage3D, cmd_size);
2434 cmd->target = target;
2435 cmd->level = level;
2436 cmd->internalformat = internalformat;
2437 cmd->width = width;
2438 cmd->height = height;
2439 cmd->depth = depth;
2440 cmd->border = border;
2441 cmd->format = format;
2442 cmd->type = type;
2443 cmd->pixels = pixels;
2464 _mesa_unmarshal_TexSubImage3D(struct gl_context *ctx, const struct marshal_cmd_TexSubImage3D *cmd, const uint64_t *last)
2466 GLenum target = cmd->target;
2467 GLint level = cmd->level;
2468 GLint xoffset = cmd->xoffset;
2469 GLint yoffset = cmd->yoffset;
2470 GLint zoffset = cmd->zoffset;
2471 GLsizei width = cmd->width;
2472 GLsizei height = cmd->height;
2473 GLsizei depth = cmd->depth;
2474 GLenum format = cmd->format;
2475 GLenum type = cmd->type;
2476 const GLvoid * pixels = cmd->pixels;
2479 assert (cmd_size == cmd->cmd_base.cmd_size);
2487 struct marshal_cmd_TexSubImage3D *cmd;
2493 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexSubImage3D, cmd_size);
2494 cmd->target = target;
2495 cmd->level = level;
2496 cmd->xoffset = xoffset;
2497 cmd->yoffset = yoffset;
2498 cmd->zoffset = zoffset;
2499 cmd->width = width;
2500 cmd->height = height;
2501 cmd->depth = depth;
2502 cmd->format = format;
2503 cmd->type = type;
2504 cmd->pixels = pixels;
2523 _mesa_unmarshal_CopyTexSubImage3D(struct gl_context *ctx, const struct marshal_cmd_CopyTexSubImage3D *cmd, const uint64_t *last)
2525 GLenum target = cmd->target;
2526 GLint level = cmd->level;
2527 GLint xoffset = cmd->xoffset;
2528 GLint yoffset = cmd->yoffset;
2529 GLint zoffset = cmd->zoffset;
2530 GLint x = cmd->x;
2531 GLint y = cmd->y;
2532 GLsizei width = cmd->width;
2533 GLsizei height = cmd->height;
2536 assert (cmd_size == cmd->cmd_base.cmd_size);
2544 struct marshal_cmd_CopyTexSubImage3D *cmd;
2545 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTexSubImage3D, cmd_size);
2546 cmd->target = target;
2547 cmd->level = level;
2548 cmd->xoffset = xoffset;
2549 cmd->yoffset = yoffset;
2550 cmd->zoffset = zoffset;
2551 cmd->x = x;
2552 cmd->y = y;
2553 cmd->width = width;
2554 cmd->height = height;
2565 _mesa_unmarshal_ActiveTexture(struct gl_context *ctx, const struct marshal_cmd_ActiveTexture *cmd, const uint64_t *last)
2567 GLenum texture = cmd->texture;
2570 assert (cmd_size == cmd->cmd_base.cmd_size);
2578 struct marshal_cmd_ActiveTexture *cmd;
2579 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ActiveTexture, cmd_size);
2580 cmd->texture = texture;
2592 _mesa_unmarshal_ClientActiveTexture(struct gl_context *ctx, const struct marshal_cmd_ClientActiveTexture *cmd, const uint64_t *last)
2594 GLenum texture = cmd->texture;
2597 assert (cmd_size == cmd->cmd_base.cmd_size);
2605 struct marshal_cmd_ClientActiveTexture *cmd;
2606 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClientActiveTexture, cmd_size);
2607 cmd->texture = texture;
2620 _mesa_unmarshal_MultiTexCoord1d(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1d *cmd, const uint64_t *last)
2622 GLenum target = cmd->target;
2623 GLdouble s = cmd->s;
2626 assert (cmd_size == cmd->cmd_base.cmd_size);
2634 struct marshal_cmd_MultiTexCoord1d *cmd;
2635 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1d, cmd_size);
2636 cmd->target = target;
2637 cmd->s = s;
2649 _mesa_unmarshal_MultiTexCoord1dv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1dv *cmd, const uint64_t *last)
2651 GLenum target = cmd->target;
2652 const GLdouble * v = cmd->v;
2655 assert (cmd_size == cmd->cmd_base.cmd_size);
2663 struct marshal_cmd_MultiTexCoord1dv *cmd;
2664 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1dv, cmd_size);
2665 cmd->target = target;
2666 memcpy(cmd->v, v, 1 * sizeof(GLdouble));
2678 _mesa_unmarshal_MultiTexCoord1fARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1fARB *cmd, const uint64_t *last)
2680 GLenum target = cmd->target;
2681 GLfloat s = cmd->s;
2684 assert (cmd_size == cmd->cmd_base.cmd_size);
2692 struct marshal_cmd_MultiTexCoord1fARB *cmd;
2693 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1fARB, cmd_size);
2694 cmd->target = target;
2695 cmd->s = s;
2707 _mesa_unmarshal_MultiTexCoord1fvARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1fvARB *cmd, const uint64_t *last)
2709 GLenum target = cmd->target;
2710 const GLfloat * v = cmd->v;
2713 assert (cmd_size == cmd->cmd_base.cmd_size);
2721 struct marshal_cmd_MultiTexCoord1fvARB *cmd;
2722 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1fvARB, cmd_size);
2723 cmd->target = target;
2724 memcpy(cmd->v, v, 1 * sizeof(GLfloat));
2736 _mesa_unmarshal_MultiTexCoord1i(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1i *cmd, const uint64_t *last)
2738 GLenum target = cmd->target;
2739 GLint s = cmd->s;
2742 assert (cmd_size == cmd->cmd_base.cmd_size);
2750 struct marshal_cmd_MultiTexCoord1i *cmd;
2751 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1i, cmd_size);
2752 cmd->target = target;
2753 cmd->s = s;
2765 _mesa_unmarshal_MultiTexCoord1iv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1iv *cmd, const uint64_t *last)
2767 GLenum target = cmd->target;
2768 const GLint * v = cmd->v;
2771 assert (cmd_size == cmd->cmd_base.cmd_size);
2779 struct marshal_cmd_MultiTexCoord1iv *cmd;
2780 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1iv, cmd_size);
2781 cmd->target = target;
2782 memcpy(cmd->v, v, 1 * sizeof(GLint));
2794 _mesa_unmarshal_MultiTexCoord1s(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1s *cmd, const uint64_t *last)
2796 GLenum target = cmd->target;
2797 GLshort s = cmd->s;
2800 assert (cmd_size == cmd->cmd_base.cmd_size);
2808 struct marshal_cmd_MultiTexCoord1s *cmd;
2809 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1s, cmd_size);
2810 cmd->target = target;
2811 cmd->s = s;
2823 _mesa_unmarshal_MultiTexCoord1sv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1sv *cmd, const uint64_t *last)
2825 GLenum target = cmd->target;
2826 const GLshort * v = cmd->v;
2829 assert (cmd_size == cmd->cmd_base.cmd_size);
2837 struct marshal_cmd_MultiTexCoord1sv *cmd;
2838 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1sv, cmd_size);
2839 cmd->target = target;
2840 memcpy(cmd->v, v, 1 * sizeof(GLshort));
2853 _mesa_unmarshal_MultiTexCoord2d(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2d *cmd, const uint64_t *last)
2855 GLenum target = cmd->target;
2856 GLdouble s = cmd->s;
2857 GLdouble t = cmd->t;
2860 assert (cmd_size == cmd->cmd_base.cmd_size);
2868 struct marshal_cmd_MultiTexCoord2d *cmd;
2869 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2d, cmd_size);
2870 cmd->target = target;
2871 cmd->s = s;
2872 cmd->t = t;
2884 _mesa_unmarshal_MultiTexCoord2dv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2dv *cmd, const uint64_t *last)
2886 GLenum target = cmd->target;
2887 const GLdouble * v = cmd->v;
2890 assert (cmd_size == cmd->cmd_base.cmd_size);
2898 struct marshal_cmd_MultiTexCoord2dv *cmd;
2899 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2dv, cmd_size);
2900 cmd->target = target;
2901 memcpy(cmd->v, v, 2 * sizeof(GLdouble));
2914 _mesa_unmarshal_MultiTexCoord2fARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2fARB *cmd, const uint64_t *last)
2916 GLenum target = cmd->target;
2917 GLfloat s = cmd->s;
2918 GLfloat t = cmd->t;
2921 assert (cmd_size == cmd->cmd_base.cmd_size);
2929 struct marshal_cmd_MultiTexCoord2fARB *cmd;
2930 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2fARB, cmd_size);
2931 cmd->target = target;
2932 cmd->s = s;
2933 cmd->t = t;
2945 _mesa_unmarshal_MultiTexCoord2fvARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2fvARB *cmd, const uint64_t *last)
2947 GLenum target = cmd->target;
2948 const GLfloat * v = cmd->v;
2951 assert (cmd_size == cmd->cmd_base.cmd_size);
2959 struct marshal_cmd_MultiTexCoord2fvARB *cmd;
2960 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2fvARB, cmd_size);
2961 cmd->target = target;
2962 memcpy(cmd->v, v, 2 * sizeof(GLfloat));
2975 _mesa_unmarshal_MultiTexCoord2i(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2i *cmd, const uint64_t *last)
2977 GLenum target = cmd->target;
2978 GLint s = cmd->s;
2979 GLint t = cmd->t;
2982 assert (cmd_size == cmd->cmd_base.cmd_size);
2990 struct marshal_cmd_MultiTexCoord2i *cmd;
2991 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2i, cmd_size);
2992 cmd->target = target;
2993 cmd->s = s;
2994 cmd->t = t;
3006 _mesa_unmarshal_MultiTexCoord2iv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2iv *cmd, const uint64_t *last)
3008 GLenum target = cmd->target;
3009 const GLint * v = cmd->v;
3012 assert (cmd_size == cmd->cmd_base.cmd_size);
3020 struct marshal_cmd_MultiTexCoord2iv *cmd;
3021 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2iv, cmd_size);
3022 cmd->target = target;
3023 memcpy(cmd->v, v, 2 * sizeof(GLint));
3036 _mesa_unmarshal_MultiTexCoord2s(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2s *cmd, const uint64_t *last)
3038 GLenum target = cmd->target;
3039 GLshort s = cmd->s;
3040 GLshort t = cmd->t;
3043 assert (cmd_size == cmd->cmd_base.cmd_size);
3051 struct marshal_cmd_MultiTexCoord2s *cmd;
3052 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2s, cmd_size);
3053 cmd->target = target;
3054 cmd->s = s;
3055 cmd->t = t;
3067 _mesa_unmarshal_MultiTexCoord2sv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2sv *cmd, const uint64_t *last)
3069 GLenum target = cmd->target;
3070 const GLshort * v = cmd->v;
3073 assert (cmd_size == cmd->cmd_base.cmd_size);
3081 struct marshal_cmd_MultiTexCoord2sv *cmd;
3082 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2sv, cmd_size);
3083 cmd->target = target;
3084 memcpy(cmd->v, v, 2 * sizeof(GLshort));
3098 _mesa_unmarshal_MultiTexCoord3d(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3d *cmd, const uint64_t *last)
3100 GLenum target = cmd->target;
3101 GLdouble s = cmd->s;
3102 GLdouble t = cmd->t;
3103 GLdouble r = cmd->r;
3106 assert (cmd_size == cmd->cmd_base.cmd_size);
3114 struct marshal_cmd_MultiTexCoord3d *cmd;
3115 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3d, cmd_size);
3116 cmd->target = target;
3117 cmd->s = s;
3118 cmd->t = t;
3119 cmd->r = r;
3131 _mesa_unmarshal_MultiTexCoord3dv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3dv *cmd, const uint64_t *last)
3133 GLenum target = cmd->target;
3134 const GLdouble * v = cmd->v;
3137 assert (cmd_size == cmd->cmd_base.cmd_size);
3145 struct marshal_cmd_MultiTexCoord3dv *cmd;
3146 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3dv, cmd_size);
3147 cmd->target = target;
3148 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
3162 _mesa_unmarshal_MultiTexCoord3fARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3fARB *cmd, const uint64_t *last)
3164 GLenum target = cmd->target;
3165 GLfloat s = cmd->s;
3166 GLfloat t = cmd->t;
3167 GLfloat r = cmd->r;
3170 assert (cmd_size == cmd->cmd_base.cmd_size);
3178 struct marshal_cmd_MultiTexCoord3fARB *cmd;
3179 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3fARB, cmd_size);
3180 cmd->target = target;
3181 cmd->s = s;
3182 cmd->t = t;
3183 cmd->r = r;
3195 _mesa_unmarshal_MultiTexCoord3fvARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3fvARB *cmd, const uint64_t *last)
3197 GLenum target = cmd->target;
3198 const GLfloat * v = cmd->v;
3201 assert (cmd_size == cmd->cmd_base.cmd_size);
3209 struct marshal_cmd_MultiTexCoord3fvARB *cmd;
3210 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3fvARB, cmd_size);
3211 cmd->target = target;
3212 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
3226 _mesa_unmarshal_MultiTexCoord3i(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3i *cmd, const uint64_t *last)
3228 GLenum target = cmd->target;
3229 GLint s = cmd->s;
3230 GLint t = cmd->t;
3231 GLint r = cmd->r;
3234 assert (cmd_size == cmd->cmd_base.cmd_size);
3242 struct marshal_cmd_MultiTexCoord3i *cmd;
3243 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3i, cmd_size);
3244 cmd->target = target;
3245 cmd->s = s;
3246 cmd->t = t;
3247 cmd->r = r;
3259 _mesa_unmarshal_MultiTexCoord3iv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3iv *cmd, const uint64_t *last)
3261 GLenum target = cmd->target;
3262 const GLint * v = cmd->v;
3265 assert (cmd_size == cmd->cmd_base.cmd_size);
3273 struct marshal_cmd_MultiTexCoord3iv *cmd;
3274 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3iv, cmd_size);
3275 cmd->target = target;
3276 memcpy(cmd->v, v, 3 * sizeof(GLint));
3290 _mesa_unmarshal_MultiTexCoord3s(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3s *cmd, const uint64_t *last)
3292 GLenum target = cmd->target;
3293 GLshort s = cmd->s;
3294 GLshort t = cmd->t;
3295 GLshort r = cmd->r;
3298 assert (cmd_size == cmd->cmd_base.cmd_size);
3306 struct marshal_cmd_MultiTexCoord3s *cmd;
3307 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3s, cmd_size);
3308 cmd->target = target;
3309 cmd->s = s;
3310 cmd->t = t;
3311 cmd->r = r;
3323 _mesa_unmarshal_MultiTexCoord3sv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3sv *cmd, const uint64_t *last)
3325 GLenum target = cmd->target;
3326 const GLshort * v = cmd->v;
3329 assert (cmd_size == cmd->cmd_base.cmd_size);
3337 struct marshal_cmd_MultiTexCoord3sv *cmd;
3338 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3sv, cmd_size);
3339 cmd->target = target;
3340 memcpy(cmd->v, v, 3 * sizeof(GLshort));
3355 _mesa_unmarshal_MultiTexCoord4d(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4d *cmd, const uint64_t *last)
3357 GLenum target = cmd->target;
3358 GLdouble s = cmd->s;
3359 GLdouble t = cmd->t;
3360 GLdouble r = cmd->r;
3361 GLdouble q = cmd->q;
3364 assert (cmd_size == cmd->cmd_base.cmd_size);
3372 struct marshal_cmd_MultiTexCoord4d *cmd;
3373 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4d, cmd_size);
3374 cmd->target = target;
3375 cmd->s = s;
3376 cmd->t = t;
3377 cmd->r = r;
3378 cmd->q = q;
3390 _mesa_unmarshal_MultiTexCoord4dv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4dv *cmd, const uint64_t *last)
3392 GLenum target = cmd->target;
3393 const GLdouble * v = cmd->v;
3396 assert (cmd_size == cmd->cmd_base.cmd_size);
3404 struct marshal_cmd_MultiTexCoord4dv *cmd;
3405 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4dv, cmd_size);
3406 cmd->target = target;
3407 memcpy(cmd->v, v, 4 * sizeof(GLdouble));
3422 _mesa_unmarshal_MultiTexCoord4fARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4fARB *cmd, const uint64_t *last)
3424 GLenum target = cmd->target;
3425 GLfloat s = cmd->s;
3426 GLfloat t = cmd->t;
3427 GLfloat r = cmd->r;
3428 GLfloat q = cmd->q;
3431 assert (cmd_size == cmd->cmd_base.cmd_size);
3439 struct marshal_cmd_MultiTexCoord4fARB *cmd;
3440 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4fARB, cmd_size);
3441 cmd->target = target;
3442 cmd->s = s;
3443 cmd->t = t;
3444 cmd->r = r;
3445 cmd->q = q;
3457 _mesa_unmarshal_MultiTexCoord4fvARB(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4fvARB *cmd, const uint64_t *last)
3459 GLenum target = cmd->target;
3460 const GLfloat * v = cmd->v;
3463 assert (cmd_size == cmd->cmd_base.cmd_size);
3471 struct marshal_cmd_MultiTexCoord4fvARB *cmd;
3472 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4fvARB, cmd_size);
3473 cmd->target = target;
3474 memcpy(cmd->v, v, 4 * sizeof(GLfloat));
3489 _mesa_unmarshal_MultiTexCoord4i(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4i *cmd, const uint64_t *last)
3491 GLenum target = cmd->target;
3492 GLint s = cmd->s;
3493 GLint t = cmd->t;
3494 GLint r = cmd->r;
3495 GLint q = cmd->q;
3498 assert (cmd_size == cmd->cmd_base.cmd_size);
3506 struct marshal_cmd_MultiTexCoord4i *cmd;
3507 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4i, cmd_size);
3508 cmd->target = target;
3509 cmd->s = s;
3510 cmd->t = t;
3511 cmd->r = r;
3512 cmd->q = q;
3524 _mesa_unmarshal_MultiTexCoord4iv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4iv *cmd, const uint64_t *last)
3526 GLenum target = cmd->target;
3527 const GLint * v = cmd->v;
3530 assert (cmd_size == cmd->cmd_base.cmd_size);
3538 struct marshal_cmd_MultiTexCoord4iv *cmd;
3539 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4iv, cmd_size);
3540 cmd->target = target;
3541 memcpy(cmd->v, v, 4 * sizeof(GLint));
3556 _mesa_unmarshal_MultiTexCoord4s(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4s *cmd, const uint64_t *last)
3558 GLenum target = cmd->target;
3559 GLshort s = cmd->s;
3560 GLshort t = cmd->t;
3561 GLshort r = cmd->r;
3562 GLshort q = cmd->q;
3565 assert (cmd_size == cmd->cmd_base.cmd_size);
3573 struct marshal_cmd_MultiTexCoord4s *cmd;
3574 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4s, cmd_size);
3575 cmd->target = target;
3576 cmd->s = s;
3577 cmd->t = t;
3578 cmd->r = r;
3579 cmd->q = q;
3591 _mesa_unmarshal_MultiTexCoord4sv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4sv *cmd, const uint64_t *last)
3593 GLenum target = cmd->target;
3594 const GLshort * v = cmd->v;
3597 assert (cmd_size == cmd->cmd_base.cmd_size);
3605 struct marshal_cmd_MultiTexCoord4sv *cmd;
3606 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4sv, cmd_size);
3607 cmd->target = target;
3608 memcpy(cmd->v, v, 4 * sizeof(GLshort));
3619 _mesa_unmarshal_LoadTransposeMatrixf(struct gl_context *ctx, const struct marshal_cmd_LoadTransposeMatrixf *cmd, const uint64_t *last)
3621 const GLfloat * m = cmd->m;
3624 assert (cmd_size == cmd->cmd_base.cmd_size);
3632 struct marshal_cmd_LoadTransposeMatrixf *cmd;
3633 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LoadTransposeMatrixf, cmd_size);
3634 memcpy(cmd->m, m, 16 * sizeof(GLfloat));
3645 _mesa_unmarshal_LoadTransposeMatrixd(struct gl_context *ctx, const struct marshal_cmd_LoadTransposeMatrixd *cmd, const uint64_t *last)
3647 const GLdouble * m = cmd->m;
3650 assert (cmd_size == cmd->cmd_base.cmd_size);
3658 struct marshal_cmd_LoadTransposeMatrixd *cmd;
3659 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LoadTransposeMatrixd, cmd_size);
3660 memcpy(cmd->m, m, 16 * sizeof(GLdouble));
3671 _mesa_unmarshal_MultTransposeMatrixf(struct gl_context *ctx, const struct marshal_cmd_MultTransposeMatrixf *cmd, const uint64_t *last)
3673 const GLfloat * m = cmd->m;
3676 assert (cmd_size == cmd->cmd_base.cmd_size);
3684 struct marshal_cmd_MultTransposeMatrixf *cmd;
3685 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultTransposeMatrixf, cmd_size);
3686 memcpy(cmd->m, m, 16 * sizeof(GLfloat));
3697 _mesa_unmarshal_MultTransposeMatrixd(struct gl_context *ctx, const struct marshal_cmd_MultTransposeMatrixd *cmd, const uint64_t *last)
3699 const GLdouble * m = cmd->m;
3702 assert (cmd_size == cmd->cmd_base.cmd_size);
3710 struct marshal_cmd_MultTransposeMatrixd *cmd;
3711 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultTransposeMatrixd, cmd_size);
3712 memcpy(cmd->m, m, 16 * sizeof(GLdouble));
3724 _mesa_unmarshal_SampleCoverage(struct gl_context *ctx, const struct marshal_cmd_SampleCoverage *cmd, const uint64_t *last)
3726 GLclampf value = cmd->value;
3727 GLboolean invert = cmd->invert;
3730 assert (cmd_size == cmd->cmd_base.cmd_size);
3738 struct marshal_cmd_SampleCoverage *cmd;
3739 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SampleCoverage, cmd_size);
3740 cmd->value = value;
3741 cmd->invert = invert;
3760 _mesa_unmarshal_CompressedTexImage3D(struct gl_context *ctx, const struct marshal_cmd_CompressedTexImage3D *cmd, const uint64_t *last)
3762 GLenum target = cmd->target;
3763 GLint level = cmd->level;
3764 GLenum internalformat = cmd->internalformat;
3765 GLsizei width = cmd->width;
3766 GLsizei height = cmd->height;
3767 GLsizei depth = cmd->depth;
3768 GLint border = cmd->border;
3769 GLsizei imageSize = cmd->imageSize;
3770 const GLvoid * data = cmd->data;
3773 assert (cmd_size == cmd->cmd_base.cmd_size);
3781 struct marshal_cmd_CompressedTexImage3D *cmd;
3787 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTexImage3D, cmd_size);
3788 cmd->target = target;
3789 cmd->level = level;
3790 cmd->internalformat = internalformat;
3791 cmd->width = width;
3792 cmd->height = height;
3793 cmd->depth = depth;
3794 cmd->border = border;
3795 cmd->imageSize = imageSize;
3796 cmd->data = data;
3814 _mesa_unmarshal_CompressedTexImage2D(struct gl_context *ctx, const struct marshal_cmd_CompressedTexImage2D *cmd, const uint64_t *last)
3816 GLenum target = cmd->target;
3817 GLint level = cmd->level;
3818 GLenum internalformat = cmd->internalformat;
3819 GLsizei width = cmd->width;
3820 GLsizei height = cmd->height;
3821 GLint border = cmd->border;
3822 GLsizei imageSize = cmd->imageSize;
3823 const GLvoid * data = cmd->data;
3826 assert (cmd_size == cmd->cmd_base.cmd_size);
3834 struct marshal_cmd_CompressedTexImage2D *cmd;
3840 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTexImage2D, cmd_size);
3841 cmd->target = target;
3842 cmd->level = level;
3843 cmd->internalformat = internalformat;
3844 cmd->width = width;
3845 cmd->height = height;
3846 cmd->border = border;
3847 cmd->imageSize = imageSize;
3848 cmd->data = data;
3865 _mesa_unmarshal_CompressedTexImage1D(struct gl_context *ctx, const struct marshal_cmd_CompressedTexImage1D *cmd, const uint64_t *last)
3867 GLenum target = cmd->target;
3868 GLint level = cmd->level;
3869 GLenum internalformat = cmd->internalformat;
3870 GLsizei width = cmd->width;
3871 GLint border = cmd->border;
3872 GLsizei imageSize = cmd->imageSize;
3873 const GLvoid * data = cmd->data;
3876 assert (cmd_size == cmd->cmd_base.cmd_size);
3884 struct marshal_cmd_CompressedTexImage1D *cmd;
3890 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTexImage1D, cmd_size);
3891 cmd->target = target;
3892 cmd->level = level;
3893 cmd->internalformat = internalformat;
3894 cmd->width = width;
3895 cmd->border = border;
3896 cmd->imageSize = imageSize;
3897 cmd->data = data;
3918 _mesa_unmarshal_CompressedTexSubImage3D(struct gl_context *ctx, const struct marshal_cmd_CompressedTexSubImage3D *cmd, const uint64_t *last)
3920 GLenum target = cmd->target;
3921 GLint level = cmd->level;
3922 GLint xoffset = cmd->xoffset;
3923 GLint yoffset = cmd->yoffset;
3924 GLint zoffset = cmd->zoffset;
3925 GLsizei width = cmd->width;
3926 GLsizei height = cmd->height;
3927 GLsizei depth = cmd->depth;
3928 GLenum format = cmd->format;
3929 GLsizei imageSize = cmd->imageSize;
3930 const GLvoid * data = cmd->data;
3933 assert (cmd_size == cmd->cmd_base.cmd_size);
3941 struct marshal_cmd_CompressedTexSubImage3D *cmd;
3947 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTexSubImage3D, cmd_size);
3948 cmd->target = target;
3949 cmd->level = level;
3950 cmd->xoffset = xoffset;
3951 cmd->yoffset = yoffset;
3952 cmd->zoffset = zoffset;
3953 cmd->width = width;
3954 cmd->height = height;
3955 cmd->depth = depth;
3956 cmd->format = format;
3957 cmd->imageSize = imageSize;
3958 cmd->data = data;
3977 _mesa_unmarshal_CompressedTexSubImage2D(struct gl_context *ctx, const struct marshal_cmd_CompressedTexSubImage2D *cmd, const uint64_t *last)
3979 GLenum target = cmd->target;
3980 GLint level = cmd->level;
3981 GLint xoffset = cmd->xoffset;
3982 GLint yoffset = cmd->yoffset;
3983 GLsizei width = cmd->width;
3984 GLsizei height = cmd->height;
3985 GLenum format = cmd->format;
3986 GLsizei imageSize = cmd->imageSize;
3987 const GLvoid * data = cmd->data;
3990 assert (cmd_size == cmd->cmd_base.cmd_size);
3998 struct marshal_cmd_CompressedTexSubImage2D *cmd;
4004 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTexSubImage2D, cmd_size);
4005 cmd->target = target;
4006 cmd->level = level;
4007 cmd->xoffset = xoffset;
4008 cmd->yoffset = yoffset;
4009 cmd->width = width;
4010 cmd->height = height;
4011 cmd->format = format;
4012 cmd->imageSize = imageSize;
4013 cmd->data = data;
4030 _mesa_unmarshal_CompressedTexSubImage1D(struct gl_context *ctx, const struct marshal_cmd_CompressedTexSubImage1D *cmd, const uint64_t *last)
4032 GLenum target = cmd->target;
4033 GLint level = cmd->level;
4034 GLint xoffset = cmd->xoffset;
4035 GLsizei width = cmd->width;
4036 GLenum format = cmd->format;
4037 GLsizei imageSize = cmd->imageSize;
4038 const GLvoid * data = cmd->data;
4041 assert (cmd_size == cmd->cmd_base.cmd_size);
4049 struct marshal_cmd_CompressedTexSubImage1D *cmd;
4055 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTexSubImage1D, cmd_size);
4056 cmd->target = target;
4057 cmd->level = level;
4058 cmd->xoffset = xoffset;
4059 cmd->width = width;
4060 cmd->format = format;
4061 cmd->imageSize = imageSize;
4062 cmd->data = data;
4075 _mesa_unmarshal_GetCompressedTexImage(struct gl_context *ctx, const struct marshal_cmd_GetCompressedTexImage *cmd, const uint64_t *last)
4077 GLenum target = cmd->target;
4078 GLint level = cmd->level;
4079 GLvoid * img = cmd->img;
4082 assert (cmd_size == cmd->cmd_base.cmd_size);
4090 struct marshal_cmd_GetCompressedTexImage *cmd;
4096 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetCompressedTexImage, cmd_size);
4097 cmd->target = target;
4098 cmd->level = level;
4099 cmd->img = img;
4113 _mesa_unmarshal_BlendFuncSeparate(struct gl_context *ctx, const struct marshal_cmd_BlendFuncSeparate *cmd, const uint64_t *last)
4115 GLenum sfactorRGB = cmd->sfactorRGB;
4116 GLenum dfactorRGB = cmd->dfactorRGB;
4117 GLenum sfactorAlpha = cmd->sfactorAlpha;
4118 GLenum dfactorAlpha = cmd->dfactorAlpha;
4121 assert (cmd_size == cmd->cmd_base.cmd_size);
4129 struct marshal_cmd_BlendFuncSeparate *cmd;
4130 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendFuncSeparate, cmd_size);
4131 cmd->sfactorRGB = sfactorRGB;
4132 cmd->dfactorRGB = dfactorRGB;
4133 cmd->sfactorAlpha = sfactorAlpha;
4134 cmd->dfactorAlpha = dfactorAlpha;
4145 _mesa_unmarshal_FogCoordfEXT(struct gl_context *ctx, const struct marshal_cmd_FogCoordfEXT *cmd, const uint64_t *last)
4147 GLfloat coord = cmd->coord;
4150 assert (cmd_size == cmd->cmd_base.cmd_size);
4158 struct marshal_cmd_FogCoordfEXT *cmd;
4159 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FogCoordfEXT, cmd_size);
4160 cmd->coord = coord;
4171 _mesa_unmarshal_FogCoordfvEXT(struct gl_context *ctx, const struct marshal_cmd_FogCoordfvEXT *cmd, const uint64_t *last)
4173 const GLfloat * coord = cmd->coord;
4176 assert (cmd_size == cmd->cmd_base.cmd_size);
4184 struct marshal_cmd_FogCoordfvEXT *cmd;
4185 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FogCoordfvEXT, cmd_size);
4186 memcpy(cmd->coord, coord, 1 * sizeof(GLfloat));
4197 _mesa_unmarshal_FogCoordd(struct gl_context *ctx, const struct marshal_cmd_FogCoordd *cmd, const uint64_t *last)
4199 GLdouble coord = cmd->coord;
4202 assert (cmd_size == cmd->cmd_base.cmd_size);
4210 struct marshal_cmd_FogCoordd *cmd;
4211 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FogCoordd, cmd_size);
4212 cmd->coord = coord;
4223 _mesa_unmarshal_FogCoorddv(struct gl_context *ctx, const struct marshal_cmd_FogCoorddv *cmd, const uint64_t *last)
4225 const GLdouble * coord = cmd->coord;
4228 assert (cmd_size == cmd->cmd_base.cmd_size);
4236 struct marshal_cmd_FogCoorddv *cmd;
4237 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FogCoorddv, cmd_size);
4238 memcpy(cmd->coord, coord, 1 * sizeof(GLdouble));
4251 _mesa_unmarshal_FogCoordPointer(struct gl_context *ctx, const struct marshal_cmd_FogCoordPointer *cmd, const uint64_t *last)
4253 GLenum type = cmd->type;
4254 GLsizei stride = cmd->stride;
4255 const GLvoid * pointer = cmd->pointer;
4258 assert (cmd_size == cmd->cmd_base.cmd_size);
4266 struct marshal_cmd_FogCoordPointer *cmd;
4267 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FogCoordPointer, cmd_size);
4268 cmd->type = type;
4269 cmd->stride = stride;
4270 cmd->pointer = pointer;
4283 _mesa_unmarshal_PointParameterf(struct gl_context *ctx, const struct marshal_cmd_PointParameterf *cmd, const uint64_t *last)
4285 GLenum pname = cmd->pname;
4286 GLfloat param = cmd->param;
4289 assert (cmd_size == cmd->cmd_base.cmd_size);
4297 struct marshal_cmd_PointParameterf *cmd;
4298 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointParameterf, cmd_size);
4299 cmd->pname = pname;
4300 cmd->param = param;
4312 _mesa_unmarshal_PointParameterfv(struct gl_context *ctx, const struct marshal_cmd_PointParameterfv *cmd, const uint64_t *last)
4314 GLenum pname = cmd->pname;
4316 const char *variable_data = (const char *) (cmd + 1);
4319 return cmd->cmd_base.cmd_size;
4327 struct marshal_cmd_PointParameterfv *cmd;
4333 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointParameterfv, cmd_size);
4334 cmd->pname = pname;
4335 char *variable_data = (char *) (cmd + 1);
4348 _mesa_unmarshal_PointParameteri(struct gl_context *ctx, const struct marshal_cmd_PointParameteri *cmd, const uint64_t *last)
4350 GLenum pname = cmd->pname;
4351 GLint param = cmd->param;
4354 assert (cmd_size == cmd->cmd_base.cmd_size);
4362 struct marshal_cmd_PointParameteri *cmd;
4363 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointParameteri, cmd_size);
4364 cmd->pname = pname;
4365 cmd->param = param;
4377 _mesa_unmarshal_PointParameteriv(struct gl_context *ctx, const struct marshal_cmd_PointParameteriv *cmd, const uint64_t *last)
4379 GLenum pname = cmd->pname;
4381 const char *variable_data = (const char *) (cmd + 1);
4384 return cmd->cmd_base.cmd_size;
4392 struct marshal_cmd_PointParameteriv *cmd;
4398 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointParameteriv, cmd_size);
4399 cmd->pname = pname;
4400 char *variable_data = (char *) (cmd + 1);
4414 _mesa_unmarshal_SecondaryColor3b(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3b *cmd, const uint64_t *last)
4416 GLbyte red = cmd->red;
4417 GLbyte green = cmd->green;
4418 GLbyte blue = cmd->blue;
4421 assert (cmd_size == cmd->cmd_base.cmd_size);
4429 struct marshal_cmd_SecondaryColor3b *cmd;
4430 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3b, cmd_size);
4431 cmd->red = red;
4432 cmd->green = green;
4433 cmd->blue = blue;
4444 _mesa_unmarshal_SecondaryColor3bv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3bv *cmd, const uint64_t *last)
4446 const GLbyte * v = cmd->v;
4449 assert (cmd_size == cmd->cmd_base.cmd_size);
4457 struct marshal_cmd_SecondaryColor3bv *cmd;
4458 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3bv, cmd_size);
4459 memcpy(cmd->v, v, 3 * sizeof(GLbyte));
4472 _mesa_unmarshal_SecondaryColor3d(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3d *cmd, const uint64_t *last)
4474 GLdouble red = cmd->red;
4475 GLdouble green = cmd->green;
4476 GLdouble blue = cmd->blue;
4479 assert (cmd_size == cmd->cmd_base.cmd_size);
4487 struct marshal_cmd_SecondaryColor3d *cmd;
4488 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3d, cmd_size);
4489 cmd->red = red;
4490 cmd->green = green;
4491 cmd->blue = blue;
4502 _mesa_unmarshal_SecondaryColor3dv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3dv *cmd, const uint64_t *last)
4504 const GLdouble * v = cmd->v;
4507 assert (cmd_size == cmd->cmd_base.cmd_size);
4515 struct marshal_cmd_SecondaryColor3dv *cmd;
4516 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3dv, cmd_size);
4517 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
4530 _mesa_unmarshal_SecondaryColor3fEXT(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3fEXT *cmd, const uint64_t *last)
4532 GLfloat red = cmd->red;
4533 GLfloat green = cmd->green;
4534 GLfloat blue = cmd->blue;
4537 assert (cmd_size == cmd->cmd_base.cmd_size);
4545 struct marshal_cmd_SecondaryColor3fEXT *cmd;
4546 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3fEXT, cmd_size);
4547 cmd->red = red;
4548 cmd->green = green;
4549 cmd->blue = blue;
4560 _mesa_unmarshal_SecondaryColor3fvEXT(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3fvEXT *cmd, const uint64_t *last)
4562 const GLfloat * v = cmd->v;
4565 assert (cmd_size == cmd->cmd_base.cmd_size);
4573 struct marshal_cmd_SecondaryColor3fvEXT *cmd;
4574 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3fvEXT, cmd_size);
4575 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
4588 _mesa_unmarshal_SecondaryColor3i(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3i *cmd, const uint64_t *last)
4590 GLint red = cmd->red;
4591 GLint green = cmd->green;
4592 GLint blue = cmd->blue;
4595 assert (cmd_size == cmd->cmd_base.cmd_size);
4603 struct marshal_cmd_SecondaryColor3i *cmd;
4604 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3i, cmd_size);
4605 cmd->red = red;
4606 cmd->green = green;
4607 cmd->blue = blue;
4618 _mesa_unmarshal_SecondaryColor3iv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3iv *cmd, const uint64_t *last)
4620 const GLint * v = cmd->v;
4623 assert (cmd_size == cmd->cmd_base.cmd_size);
4631 struct marshal_cmd_SecondaryColor3iv *cmd;
4632 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3iv, cmd_size);
4633 memcpy(cmd->v, v, 3 * sizeof(GLint));
4646 _mesa_unmarshal_SecondaryColor3s(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3s *cmd, const uint64_t *last)
4648 GLshort red = cmd->red;
4649 GLshort green = cmd->green;
4650 GLshort blue = cmd->blue;
4653 assert (cmd_size == cmd->cmd_base.cmd_size);
4661 struct marshal_cmd_SecondaryColor3s *cmd;
4662 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3s, cmd_size);
4663 cmd->red = red;
4664 cmd->green = green;
4665 cmd->blue = blue;
4676 _mesa_unmarshal_SecondaryColor3sv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3sv *cmd, const uint64_t *last)
4678 const GLshort * v = cmd->v;
4681 assert (cmd_size == cmd->cmd_base.cmd_size);
4689 struct marshal_cmd_SecondaryColor3sv *cmd;
4690 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3sv, cmd_size);
4691 memcpy(cmd->v, v, 3 * sizeof(GLshort));
4704 _mesa_unmarshal_SecondaryColor3ub(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3ub *cmd, const uint64_t *last)
4706 GLubyte red = cmd->red;
4707 GLubyte green = cmd->green;
4708 GLubyte blue = cmd->blue;
4711 assert (cmd_size == cmd->cmd_base.cmd_size);
4719 struct marshal_cmd_SecondaryColor3ub *cmd;
4720 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3ub, cmd_size);
4721 cmd->red = red;
4722 cmd->green = green;
4723 cmd->blue = blue;
4734 _mesa_unmarshal_SecondaryColor3ubv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3ubv *cmd, const uint64_t *last)
4736 const GLubyte * v = cmd->v;
4739 assert (cmd_size == cmd->cmd_base.cmd_size);
4747 struct marshal_cmd_SecondaryColor3ubv *cmd;
4748 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3ubv, cmd_size);
4749 memcpy(cmd->v, v, 3 * sizeof(GLubyte));
4762 _mesa_unmarshal_SecondaryColor3ui(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3ui *cmd, const uint64_t *last)
4764 GLuint red = cmd->red;
4765 GLuint green = cmd->green;
4766 GLuint blue = cmd->blue;
4769 assert (cmd_size == cmd->cmd_base.cmd_size);
4777 struct marshal_cmd_SecondaryColor3ui *cmd;
4778 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3ui, cmd_size);
4779 cmd->red = red;
4780 cmd->green = green;
4781 cmd->blue = blue;
4792 _mesa_unmarshal_SecondaryColor3uiv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3uiv *cmd, const uint64_t *last)
4794 const GLuint * v = cmd->v;
4797 assert (cmd_size == cmd->cmd_base.cmd_size);
4805 struct marshal_cmd_SecondaryColor3uiv *cmd;
4806 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3uiv, cmd_size);
4807 memcpy(cmd->v, v, 3 * sizeof(GLuint));
4820 _mesa_unmarshal_SecondaryColor3us(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3us *cmd, const uint64_t *last)
4822 GLushort red = cmd->red;
4823 GLushort green = cmd->green;
4824 GLushort blue = cmd->blue;
4827 assert (cmd_size == cmd->cmd_base.cmd_size);
4835 struct marshal_cmd_SecondaryColor3us *cmd;
4836 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3us, cmd_size);
4837 cmd->red = red;
4838 cmd->green = green;
4839 cmd->blue = blue;
4850 _mesa_unmarshal_SecondaryColor3usv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3usv *cmd, const uint64_t *last)
4852 const GLushort * v = cmd->v;
4855 assert (cmd_size == cmd->cmd_base.cmd_size);
4863 struct marshal_cmd_SecondaryColor3usv *cmd;
4864 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3usv, cmd_size);
4865 memcpy(cmd->v, v, 3 * sizeof(GLushort));
4879 _mesa_unmarshal_SecondaryColorPointer(struct gl_context *ctx, const struct marshal_cmd_SecondaryColorPointer *cmd, const uint64_t *last)
4881 GLint size = cmd->size;
4882 GLenum type = cmd->type;
4883 GLsizei stride = cmd->stride;
4884 const GLvoid * pointer = cmd->pointer;
4887 assert (cmd_size == cmd->cmd_base.cmd_size);
4895 struct marshal_cmd_SecondaryColorPointer *cmd;
4896 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColorPointer, cmd_size);
4897 cmd->size = size;
4898 cmd->type = type;
4899 cmd->stride = stride;
4900 cmd->pointer = pointer;
4913 _mesa_unmarshal_WindowPos2d(struct gl_context *ctx, const struct marshal_cmd_WindowPos2d *cmd, const uint64_t *last)
4915 GLdouble x = cmd->x;
4916 GLdouble y = cmd->y;
4919 assert (cmd_size == cmd->cmd_base.cmd_size);
4927 struct marshal_cmd_WindowPos2d *cmd;
4928 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2d, cmd_size);
4929 cmd->x = x;
4930 cmd->y = y;
4941 _mesa_unmarshal_WindowPos2dv(struct gl_context *ctx, const struct marshal_cmd_WindowPos2dv *cmd, const uint64_t *last)
4943 const GLdouble * v = cmd->v;
4946 assert (cmd_size == cmd->cmd_base.cmd_size);
4954 struct marshal_cmd_WindowPos2dv *cmd;
4955 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2dv, cmd_size);
4956 memcpy(cmd->v, v, 2 * sizeof(GLdouble));
4968 _mesa_unmarshal_WindowPos2f(struct gl_context *ctx, const struct marshal_cmd_WindowPos2f *cmd, const uint64_t *last)
4970 GLfloat x = cmd->x;
4971 GLfloat y = cmd->y;
4974 assert (cmd_size == cmd->cmd_base.cmd_size);
4982 struct marshal_cmd_WindowPos2f *cmd;
4983 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2f, cmd_size);
4984 cmd->x = x;
4985 cmd->y = y;
4996 _mesa_unmarshal_WindowPos2fv(struct gl_context *ctx, const struct marshal_cmd_WindowPos2fv *cmd, const uint64_t *last)
4998 const GLfloat * v = cmd->v;
5001 assert (cmd_size == cmd->cmd_base.cmd_size);
5009 struct marshal_cmd_WindowPos2fv *cmd;
5010 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2fv, cmd_size);
5011 memcpy(cmd->v, v, 2 * sizeof(GLfloat));
5023 _mesa_unmarshal_WindowPos2i(struct gl_context *ctx, const struct marshal_cmd_WindowPos2i *cmd, const uint64_t *last)
5025 GLint x = cmd->x;
5026 GLint y = cmd->y;
5029 assert (cmd_size == cmd->cmd_base.cmd_size);
5037 struct marshal_cmd_WindowPos2i *cmd;
5038 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2i, cmd_size);
5039 cmd->x = x;
5040 cmd->y = y;
5051 _mesa_unmarshal_WindowPos2iv(struct gl_context *ctx, const struct marshal_cmd_WindowPos2iv *cmd, const uint64_t *last)
5053 const GLint * v = cmd->v;
5056 assert (cmd_size == cmd->cmd_base.cmd_size);
5064 struct marshal_cmd_WindowPos2iv *cmd;
5065 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2iv, cmd_size);
5066 memcpy(cmd->v, v, 2 * sizeof(GLint));
5078 _mesa_unmarshal_WindowPos2s(struct gl_context *ctx, const struct marshal_cmd_WindowPos2s *cmd, const uint64_t *last)
5080 GLshort x = cmd->x;
5081 GLshort y = cmd->y;
5084 assert (cmd_size == cmd->cmd_base.cmd_size);
5092 struct marshal_cmd_WindowPos2s *cmd;
5093 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2s, cmd_size);
5094 cmd->x = x;
5095 cmd->y = y;
5106 _mesa_unmarshal_WindowPos2sv(struct gl_context *ctx, const struct marshal_cmd_WindowPos2sv *cmd, const uint64_t *last)
5108 const GLshort * v = cmd->v;
5111 assert (cmd_size == cmd->cmd_base.cmd_size);
5119 struct marshal_cmd_WindowPos2sv *cmd;
5120 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos2sv, cmd_size);
5121 memcpy(cmd->v, v, 2 * sizeof(GLshort));
5134 _mesa_unmarshal_WindowPos3d(struct gl_context *ctx, const struct marshal_cmd_WindowPos3d *cmd, const uint64_t *last)
5136 GLdouble x = cmd->x;
5137 GLdouble y = cmd->y;
5138 GLdouble z = cmd->z;
5141 assert (cmd_size == cmd->cmd_base.cmd_size);
5149 struct marshal_cmd_WindowPos3d *cmd;
5150 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3d, cmd_size);
5151 cmd->x = x;
5152 cmd->y = y;
5153 cmd->z = z;
5164 _mesa_unmarshal_WindowPos3dv(struct gl_context *ctx, const struct marshal_cmd_WindowPos3dv *cmd, const uint64_t *last)
5166 const GLdouble * v = cmd->v;
5169 assert (cmd_size == cmd->cmd_base.cmd_size);
5177 struct marshal_cmd_WindowPos3dv *cmd;
5178 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3dv, cmd_size);
5179 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
5192 _mesa_unmarshal_WindowPos3f(struct gl_context *ctx, const struct marshal_cmd_WindowPos3f *cmd, const uint64_t *last)
5194 GLfloat x = cmd->x;
5195 GLfloat y = cmd->y;
5196 GLfloat z = cmd->z;
5199 assert (cmd_size == cmd->cmd_base.cmd_size);
5207 struct marshal_cmd_WindowPos3f *cmd;
5208 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3f, cmd_size);
5209 cmd->x = x;
5210 cmd->y = y;
5211 cmd->z = z;
5222 _mesa_unmarshal_WindowPos3fv(struct gl_context *ctx, const struct marshal_cmd_WindowPos3fv *cmd, const uint64_t *last)
5224 const GLfloat * v = cmd->v;
5227 assert (cmd_size == cmd->cmd_base.cmd_size);
5235 struct marshal_cmd_WindowPos3fv *cmd;
5236 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3fv, cmd_size);
5237 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
5250 _mesa_unmarshal_WindowPos3i(struct gl_context *ctx, const struct marshal_cmd_WindowPos3i *cmd, const uint64_t *last)
5252 GLint x = cmd->x;
5253 GLint y = cmd->y;
5254 GLint z = cmd->z;
5257 assert (cmd_size == cmd->cmd_base.cmd_size);
5265 struct marshal_cmd_WindowPos3i *cmd;
5266 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3i, cmd_size);
5267 cmd->x = x;
5268 cmd->y = y;
5269 cmd->z = z;
5280 _mesa_unmarshal_WindowPos3iv(struct gl_context *ctx, const struct marshal_cmd_WindowPos3iv *cmd, const uint64_t *last)
5282 const GLint * v = cmd->v;
5285 assert (cmd_size == cmd->cmd_base.cmd_size);
5293 struct marshal_cmd_WindowPos3iv *cmd;
5294 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3iv, cmd_size);
5295 memcpy(cmd->v, v, 3 * sizeof(GLint));
5308 _mesa_unmarshal_WindowPos3s(struct gl_context *ctx, const struct marshal_cmd_WindowPos3s *cmd, const uint64_t *last)
5310 GLshort x = cmd->x;
5311 GLshort y = cmd->y;
5312 GLshort z = cmd->z;
5315 assert (cmd_size == cmd->cmd_base.cmd_size);
5323 struct marshal_cmd_WindowPos3s *cmd;
5324 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3s, cmd_size);
5325 cmd->x = x;
5326 cmd->y = y;
5327 cmd->z = z;
5338 _mesa_unmarshal_WindowPos3sv(struct gl_context *ctx, const struct marshal_cmd_WindowPos3sv *cmd, const uint64_t *last)
5340 const GLshort * v = cmd->v;
5343 assert (cmd_size == cmd->cmd_base.cmd_size);
5351 struct marshal_cmd_WindowPos3sv *cmd;
5352 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowPos3sv, cmd_size);
5353 memcpy(cmd->v, v, 3 * sizeof(GLshort));
5365 _mesa_unmarshal_BindBuffer(struct gl_context *ctx, const struct marshal_cmd_BindBuffer *cmd, const uint64_t *last)
5367 GLenum target = cmd->target;
5368 GLuint buffer = cmd->buffer;
5371 assert (cmd_size == cmd->cmd_base.cmd_size);
5379 struct marshal_cmd_BindBuffer *cmd;
5380 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindBuffer, cmd_size);
5381 cmd->target = target;
5382 cmd->buffer = buffer;
5395 _mesa_unmarshal_DeleteBuffers(struct gl_context *ctx, const struct marshal_cmd_DeleteBuffers *cmd, const uint64_t *last)
5397 GLsizei n = cmd->n;
5399 const char *variable_data = (const char *) (cmd + 1);
5402 return cmd->cmd_base.cmd_size;
5410 struct marshal_cmd_DeleteBuffers *cmd;
5417 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteBuffers, cmd_size);
5418 cmd->n = n;
5419 char *variable_data = (char *) (cmd + 1);
5492 _mesa_unmarshal_UnmapBuffer(struct gl_context *ctx, const struct marshal_cmd_UnmapBuffer *cmd, const uint64_t *last)
5494 GLenum target = cmd->target;
5497 assert (cmd_size == cmd->cmd_base.cmd_size);
5505 struct marshal_cmd_UnmapBuffer *cmd;
5506 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UnmapBuffer, cmd_size);
5507 cmd->target = target;
5530 _mesa_unmarshal_DeleteQueries(struct gl_context *ctx, const struct marshal_cmd_DeleteQueries *cmd, const uint64_t *last)
5532 GLsizei n = cmd->n;
5534 const char *variable_data = (const char *) (cmd + 1);
5537 return cmd->cmd_base.cmd_size;
5545 struct marshal_cmd_DeleteQueries *cmd;
5551 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteQueries, cmd_size);
5552 cmd->n = n;
5553 char *variable_data = (char *) (cmd + 1);
5576 _mesa_unmarshal_BeginQuery(struct gl_context *ctx, const struct marshal_cmd_BeginQuery *cmd, const uint64_t *last)
5578 GLenum target = cmd->target;
5579 GLuint id = cmd->id;
5582 assert (cmd_size == cmd->cmd_base.cmd_size);
5590 struct marshal_cmd_BeginQuery *cmd;
5591 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BeginQuery, cmd_size);
5592 cmd->target = target;
5593 cmd->id = id;
5604 _mesa_unmarshal_EndQuery(struct gl_context *ctx, const struct marshal_cmd_EndQuery *cmd, const uint64_t *last)
5606 GLenum target = cmd->target;
5609 assert (cmd_size == cmd->cmd_base.cmd_size);
5617 struct marshal_cmd_EndQuery *cmd;
5618 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EndQuery, cmd_size);
5619 cmd->target = target;
5661 _mesa_unmarshal_BlendEquationSeparate(struct gl_context *ctx, const struct marshal_cmd_BlendEquationSeparate *cmd, const uint64_t *last)
5663 GLenum modeRGB = cmd->modeRGB;
5664 GLenum modeA = cmd->modeA;
5667 assert (cmd_size == cmd->cmd_base.cmd_size);
5675 struct marshal_cmd_BlendEquationSeparate *cmd;
5676 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendEquationSeparate, cmd_size);
5677 cmd->modeRGB = modeRGB;
5678 cmd->modeA = modeA;
5690 _mesa_unmarshal_DrawBuffers(struct gl_context *ctx, const struct marshal_cmd_DrawBuffers *cmd, const uint64_t *last)
5692 GLsizei n = cmd->n;
5694 const char *variable_data = (const char *) (cmd + 1);
5697 return cmd->cmd_base.cmd_size;
5705 struct marshal_cmd_DrawBuffers *cmd;
5711 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawBuffers, cmd_size);
5712 cmd->n = n;
5713 char *variable_data = (char *) (cmd + 1);
5728 _mesa_unmarshal_StencilFuncSeparate(struct gl_context *ctx, const struct marshal_cmd_StencilFuncSeparate *cmd, const uint64_t *last)
5730 GLenum face = cmd->face;
5731 GLenum func = cmd->func;
5732 GLint ref = cmd->ref;
5733 GLuint mask = cmd->mask;
5736 assert (cmd_size == cmd->cmd_base.cmd_size);
5744 struct marshal_cmd_StencilFuncSeparate *cmd;
5745 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_StencilFuncSeparate, cmd_size);
5746 cmd->face = face;
5747 cmd->func = func;
5748 cmd->ref = ref;
5749 cmd->mask = mask;
5763 _mesa_unmarshal_StencilOpSeparate(struct gl_context *ctx, const struct marshal_cmd_StencilOpSeparate *cmd, const uint64_t *last)
5765 GLenum face = cmd->face;
5766 GLenum sfail = cmd->sfail;
5767 GLenum zfail = cmd->zfail;
5768 GLenum zpass = cmd->zpass;
5771 assert (cmd_size == cmd->cmd_base.cmd_size);
5779 struct marshal_cmd_StencilOpSeparate *cmd;
5780 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_StencilOpSeparate, cmd_size);
5781 cmd->face = face;
5782 cmd->sfail = sfail;
5783 cmd->zfail = zfail;
5784 cmd->zpass = zpass;
5796 _mesa_unmarshal_StencilMaskSeparate(struct gl_context *ctx, const struct marshal_cmd_StencilMaskSeparate *cmd, const uint64_t *last)
5798 GLenum face = cmd->face;
5799 GLuint mask = cmd->mask;
5802 assert (cmd_size == cmd->cmd_base.cmd_size);
5810 struct marshal_cmd_StencilMaskSeparate *cmd;
5811 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_StencilMaskSeparate, cmd_size);
5812 cmd->face = face;
5813 cmd->mask = mask;
5825 _mesa_unmarshal_AttachShader(struct gl_context *ctx, const struct marshal_cmd_AttachShader *cmd, const uint64_t *last)
5827 GLuint program = cmd->program;
5828 GLuint shader = cmd->shader;
5831 assert (cmd_size == cmd->cmd_base.cmd_size);
5839 struct marshal_cmd_AttachShader *cmd;
5840 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_AttachShader, cmd_size);
5841 cmd->program = program;
5842 cmd->shader = shader;
5855 _mesa_unmarshal_BindAttribLocation(struct gl_context *ctx, const struct marshal_cmd_BindAttribLocation *cmd, const uint64_t *last)
5857 GLuint program = cmd->program;
5858 GLuint index = cmd->index;
5860 const char *variable_data = (const char *) (cmd + 1);
5863 return cmd->cmd_base.cmd_size;
5871 struct marshal_cmd_BindAttribLocation *cmd;
5877 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindAttribLocation, cmd_size);
5878 cmd->program = program;
5879 cmd->index = index;
5880 char *variable_data = (char *) (cmd + 1);
5892 _mesa_unmarshal_CompileShader(struct gl_context *ctx, const struct marshal_cmd_CompileShader *cmd, const uint64_t *last)
5894 GLuint shader = cmd->shader;
5897 assert (cmd_size == cmd->cmd_base.cmd_size);
5905 struct marshal_cmd_CompileShader *cmd;
5906 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompileShader, cmd_size);
5907 cmd->shader = shader;
5938 _mesa_unmarshal_DeleteProgram(struct gl_context *ctx, const struct marshal_cmd_DeleteProgram *cmd, const uint64_t *last)
5940 GLuint program = cmd->program;
5943 assert (cmd_size == cmd->cmd_base.cmd_size);
5951 struct marshal_cmd_DeleteProgram *cmd;
5952 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteProgram, cmd_size);
5953 cmd->program = program;
5965 _mesa_unmarshal_DeleteShader(struct gl_context *ctx, const struct marshal_cmd_DeleteShader *cmd, const uint64_t *last)
5967 GLuint program = cmd->program;
5970 assert (cmd_size == cmd->cmd_base.cmd_size);
5978 struct marshal_cmd_DeleteShader *cmd;
5979 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteShader, cmd_size);
5980 cmd->program = program;
5992 _mesa_unmarshal_DetachShader(struct gl_context *ctx, const struct marshal_cmd_DetachShader *cmd, const uint64_t *last)
5994 GLuint program = cmd->program;
5995 GLuint shader = cmd->shader;
5998 assert (cmd_size == cmd->cmd_base.cmd_size);
6006 struct marshal_cmd_DetachShader *cmd;
6007 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DetachShader, cmd_size);
6008 cmd->program = program;
6009 cmd->shader = shader;
6020 _mesa_unmarshal_DisableVertexAttribArray(struct gl_context *ctx, const struct marshal_cmd_DisableVertexAttribArray *cmd, const uint64_t *last)
6022 GLuint index = cmd->index;
6025 assert (cmd_size == cmd->cmd_base.cmd_size);
6033 struct marshal_cmd_DisableVertexAttribArray *cmd;
6034 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DisableVertexAttribArray, cmd_size);
6035 cmd->index = index;
6047 _mesa_unmarshal_EnableVertexAttribArray(struct gl_context *ctx, const struct marshal_cmd_EnableVertexAttribArray *cmd, const uint64_t *last)
6049 GLuint index = cmd->index;
6052 assert (cmd_size == cmd->cmd_base.cmd_size);
6060 struct marshal_cmd_EnableVertexAttribArray *cmd;
6061 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EnableVertexAttribArray, cmd_size);
6062 cmd->index = index;
6234 _mesa_unmarshal_LinkProgram(struct gl_context *ctx, const struct marshal_cmd_LinkProgram *cmd, const uint64_t *last)
6236 GLuint program = cmd->program;
6239 assert (cmd_size == cmd->cmd_base.cmd_size);
6247 struct marshal_cmd_LinkProgram *cmd;
6248 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LinkProgram, cmd_size);
6249 cmd->program = program;
6261 _mesa_unmarshal_UseProgram(struct gl_context *ctx, const struct marshal_cmd_UseProgram *cmd, const uint64_t *last)
6263 GLuint program = cmd->program;
6266 assert (cmd_size == cmd->cmd_base.cmd_size);
6274 struct marshal_cmd_UseProgram *cmd;
6275 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UseProgram, cmd_size);
6276 cmd->program = program;
6288 _mesa_unmarshal_Uniform1f(struct gl_context *ctx, const struct marshal_cmd_Uniform1f *cmd, const uint64_t *last)
6290 GLint location = cmd->location;
6291 GLfloat v0 = cmd->v0;
6294 assert (cmd_size == cmd->cmd_base.cmd_size);
6302 struct marshal_cmd_Uniform1f *cmd;
6303 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1f, cmd_size);
6304 cmd->location = location;
6305 cmd->v0 = v0;
6318 _mesa_unmarshal_Uniform2f(struct gl_context *ctx, const struct marshal_cmd_Uniform2f *cmd, const uint64_t *last)
6320 GLint location = cmd->location;
6321 GLfloat v0 = cmd->v0;
6322 GLfloat v1 = cmd->v1;
6325 assert (cmd_size == cmd->cmd_base.cmd_size);
6333 struct marshal_cmd_Uniform2f *cmd;
6334 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2f, cmd_size);
6335 cmd->location = location;
6336 cmd->v0 = v0;
6337 cmd->v1 = v1;
6351 _mesa_unmarshal_Uniform3f(struct gl_context *ctx, const struct marshal_cmd_Uniform3f *cmd, const uint64_t *last)
6353 GLint location = cmd->location;
6354 GLfloat v0 = cmd->v0;
6355 GLfloat v1 = cmd->v1;
6356 GLfloat v2 = cmd->v2;
6359 assert (cmd_size == cmd->cmd_base.cmd_size);
6367 struct marshal_cmd_Uniform3f *cmd;
6368 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3f, cmd_size);
6369 cmd->location = location;
6370 cmd->v0 = v0;
6371 cmd->v1 = v1;
6372 cmd->v2 = v2;
6387 _mesa_unmarshal_Uniform4f(struct gl_context *ctx, const struct marshal_cmd_Uniform4f *cmd, const uint64_t *last)
6389 GLint location = cmd->location;
6390 GLfloat v0 = cmd->v0;
6391 GLfloat v1 = cmd->v1;
6392 GLfloat v2 = cmd->v2;
6393 GLfloat v3 = cmd->v3;
6396 assert (cmd_size == cmd->cmd_base.cmd_size);
6404 struct marshal_cmd_Uniform4f *cmd;
6405 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4f, cmd_size);
6406 cmd->location = location;
6407 cmd->v0 = v0;
6408 cmd->v1 = v1;
6409 cmd->v2 = v2;
6410 cmd->v3 = v3;
6422 _mesa_unmarshal_Uniform1i(struct gl_context *ctx, const struct marshal_cmd_Uniform1i *cmd, const uint64_t *last)
6424 GLint location = cmd->location;
6425 GLint v0 = cmd->v0;
6428 assert (cmd_size == cmd->cmd_base.cmd_size);
6436 struct marshal_cmd_Uniform1i *cmd;
6437 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1i, cmd_size);
6438 cmd->location = location;
6439 cmd->v0 = v0;
6452 _mesa_unmarshal_Uniform2i(struct gl_context *ctx, const struct marshal_cmd_Uniform2i *cmd, const uint64_t *last)
6454 GLint location = cmd->location;
6455 GLint v0 = cmd->v0;
6456 GLint v1 = cmd->v1;
6459 assert (cmd_size == cmd->cmd_base.cmd_size);
6467 struct marshal_cmd_Uniform2i *cmd;
6468 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2i, cmd_size);
6469 cmd->location = location;
6470 cmd->v0 = v0;
6471 cmd->v1 = v1;
6485 _mesa_unmarshal_Uniform3i(struct gl_context *ctx, const struct marshal_cmd_Uniform3i *cmd, const uint64_t *last)
6487 GLint location = cmd->location;
6488 GLint v0 = cmd->v0;
6489 GLint v1 = cmd->v1;
6490 GLint v2 = cmd->v2;
6493 assert (cmd_size == cmd->cmd_base.cmd_size);
6501 struct marshal_cmd_Uniform3i *cmd;
6502 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3i, cmd_size);
6503 cmd->location = location;
6504 cmd->v0 = v0;
6505 cmd->v1 = v1;
6506 cmd->v2 = v2;
6521 _mesa_unmarshal_Uniform4i(struct gl_context *ctx, const struct marshal_cmd_Uniform4i *cmd, const uint64_t *last)
6523 GLint location = cmd->location;
6524 GLint v0 = cmd->v0;
6525 GLint v1 = cmd->v1;
6526 GLint v2 = cmd->v2;
6527 GLint v3 = cmd->v3;
6530 assert (cmd_size == cmd->cmd_base.cmd_size);
6538 struct marshal_cmd_Uniform4i *cmd;
6539 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4i, cmd_size);
6540 cmd->location = location;
6541 cmd->v0 = v0;
6542 cmd->v1 = v1;
6543 cmd->v2 = v2;
6544 cmd->v3 = v3;
6557 _mesa_unmarshal_Uniform1fv(struct gl_context *ctx, const struct marshal_cmd_Uniform1fv *cmd, const uint64_t *last)
6559 GLint location = cmd->location;
6560 GLsizei count = cmd->count;
6562 const char *variable_data = (const char *) (cmd + 1);
6565 return cmd->cmd_base.cmd_size;
6573 struct marshal_cmd_Uniform1fv *cmd;
6579 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1fv, cmd_size);
6580 cmd->location = location;
6581 cmd->count = count;
6582 char *variable_data = (char *) (cmd + 1);
6596 _mesa_unmarshal_Uniform2fv(struct gl_context *ctx, const struct marshal_cmd_Uniform2fv *cmd, const uint64_t *last)
6598 GLint location = cmd->location;
6599 GLsizei count = cmd->count;
6601 const char *variable_data = (const char *) (cmd + 1);
6604 return cmd->cmd_base.cmd_size;
6612 struct marshal_cmd_Uniform2fv *cmd;
6618 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2fv, cmd_size);
6619 cmd->location = location;
6620 cmd->count = count;
6621 char *variable_data = (char *) (cmd + 1);
6635 _mesa_unmarshal_Uniform3fv(struct gl_context *ctx, const struct marshal_cmd_Uniform3fv *cmd, const uint64_t *last)
6637 GLint location = cmd->location;
6638 GLsizei count = cmd->count;
6640 const char *variable_data = (const char *) (cmd + 1);
6643 return cmd->cmd_base.cmd_size;
6651 struct marshal_cmd_Uniform3fv *cmd;
6657 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3fv, cmd_size);
6658 cmd->location = location;
6659 cmd->count = count;
6660 char *variable_data = (char *) (cmd + 1);
6674 _mesa_unmarshal_Uniform4fv(struct gl_context *ctx, const struct marshal_cmd_Uniform4fv *cmd, const uint64_t *last)
6676 GLint location = cmd->location;
6677 GLsizei count = cmd->count;
6679 const char *variable_data = (const char *) (cmd + 1);
6682 return cmd->cmd_base.cmd_size;
6690 struct marshal_cmd_Uniform4fv *cmd;
6696 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4fv, cmd_size);
6697 cmd->location = location;
6698 cmd->count = count;
6699 char *variable_data = (char *) (cmd + 1);
6713 _mesa_unmarshal_Uniform1iv(struct gl_context *ctx, const struct marshal_cmd_Uniform1iv *cmd, const uint64_t *last)
6715 GLint location = cmd->location;
6716 GLsizei count = cmd->count;
6718 const char *variable_data = (const char *) (cmd + 1);
6721 return cmd->cmd_base.cmd_size;
6729 struct marshal_cmd_Uniform1iv *cmd;
6735 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1iv, cmd_size);
6736 cmd->location = location;
6737 cmd->count = count;
6738 char *variable_data = (char *) (cmd + 1);
6752 _mesa_unmarshal_Uniform2iv(struct gl_context *ctx, const struct marshal_cmd_Uniform2iv *cmd, const uint64_t *last)
6754 GLint location = cmd->location;
6755 GLsizei count = cmd->count;
6757 const char *variable_data = (const char *) (cmd + 1);
6760 return cmd->cmd_base.cmd_size;
6768 struct marshal_cmd_Uniform2iv *cmd;
6774 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2iv, cmd_size);
6775 cmd->location = location;
6776 cmd->count = count;
6777 char *variable_data = (char *) (cmd + 1);
6791 _mesa_unmarshal_Uniform3iv(struct gl_context *ctx, const struct marshal_cmd_Uniform3iv *cmd, const uint64_t *last)
6793 GLint location = cmd->location;
6794 GLsizei count = cmd->count;
6796 const char *variable_data = (const char *) (cmd + 1);
6799 return cmd->cmd_base.cmd_size;
6807 struct marshal_cmd_Uniform3iv *cmd;
6813 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3iv, cmd_size);
6814 cmd->location = location;
6815 cmd->count = count;
6816 char *variable_data = (char *) (cmd + 1);
6830 _mesa_unmarshal_Uniform4iv(struct gl_context *ctx, const struct marshal_cmd_Uniform4iv *cmd, const uint64_t *last)
6832 GLint location = cmd->location;
6833 GLsizei count = cmd->count;
6835 const char *variable_data = (const char *) (cmd + 1);
6838 return cmd->cmd_base.cmd_size;
6846 struct marshal_cmd_Uniform4iv *cmd;
6852 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4iv, cmd_size);
6853 cmd->location = location;
6854 cmd->count = count;
6855 char *variable_data = (char *) (cmd + 1);
6870 _mesa_unmarshal_UniformMatrix2fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix2fv *cmd, const uint64_t *last)
6872 GLint location = cmd->location;
6873 GLsizei count = cmd->count;
6874 GLboolean transpose = cmd->transpose;
6876 const char *variable_data = (const char *) (cmd + 1);
6879 return cmd->cmd_base.cmd_size;
6887 struct marshal_cmd_UniformMatrix2fv *cmd;
6893 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix2fv, cmd_size);
6894 cmd->location = location;
6895 cmd->count = count;
6896 cmd->transpose = transpose;
6897 char *variable_data = (char *) (cmd + 1);
6912 _mesa_unmarshal_UniformMatrix3fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix3fv *cmd, const uint64_t *last)
6914 GLint location = cmd->location;
6915 GLsizei count = cmd->count;
6916 GLboolean transpose = cmd->transpose;
6918 const char *variable_data = (const char *) (cmd + 1);
6921 return cmd->cmd_base.cmd_size;
6929 struct marshal_cmd_UniformMatrix3fv *cmd;
6935 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix3fv, cmd_size);
6936 cmd->location = location;
6937 cmd->count = count;
6938 cmd->transpose = transpose;
6939 char *variable_data = (char *) (cmd + 1);
6954 _mesa_unmarshal_UniformMatrix4fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix4fv *cmd, const uint64_t *last)
6956 GLint location = cmd->location;
6957 GLsizei count = cmd->count;
6958 GLboolean transpose = cmd->transpose;
6960 const char *variable_data = (const char *) (cmd + 1);
6963 return cmd->cmd_base.cmd_size;
6971 struct marshal_cmd_UniformMatrix4fv *cmd;
6977 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix4fv, cmd_size);
6978 cmd->location = location;
6979 cmd->count = count;
6980 cmd->transpose = transpose;
6981 char *variable_data = (char *) (cmd + 1);
6993 _mesa_unmarshal_ValidateProgram(struct gl_context *ctx, const struct marshal_cmd_ValidateProgram *cmd, const uint64_t *last)
6995 GLuint program = cmd->program;
6998 assert (cmd_size == cmd->cmd_base.cmd_size);
7006 struct marshal_cmd_ValidateProgram *cmd;
7007 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ValidateProgram, cmd_size);
7008 cmd->program = program;
7020 _mesa_unmarshal_VertexAttrib1d(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1d *cmd, const uint64_t *last)
7022 GLuint index = cmd->index;
7023 GLdouble x = cmd->x;
7026 assert (cmd_size == cmd->cmd_base.cmd_size);
7034 struct marshal_cmd_VertexAttrib1d *cmd;
7035 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1d, cmd_size);
7036 cmd->index = index;
7037 cmd->x = x;
7049 _mesa_unmarshal_VertexAttrib1dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1dv *cmd, const uint64_t *last)
7051 GLuint index = cmd->index;
7052 const GLdouble * v = cmd->v;
7055 assert (cmd_size == cmd->cmd_base.cmd_size);
7063 struct marshal_cmd_VertexAttrib1dv *cmd;
7064 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1dv, cmd_size);
7065 cmd->index = index;
7066 memcpy(cmd->v, v, 1 * sizeof(GLdouble));