Lines Matching refs:cmd

52 _mesa_unmarshal_VertexAttrib1fARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1fARB *cmd, const uint64_t *last)
54 GLuint index = cmd->index;
55 GLfloat x = cmd->x;
58 assert (cmd_size == cmd->cmd_base.cmd_size);
66 struct marshal_cmd_VertexAttrib1fARB *cmd;
67 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1fARB, cmd_size);
68 cmd->index = index;
69 cmd->x = x;
81 _mesa_unmarshal_VertexAttrib1fvARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1fvARB *cmd, const uint64_t *last)
83 GLuint index = cmd->index;
84 const GLfloat * v = cmd->v;
87 assert (cmd_size == cmd->cmd_base.cmd_size);
95 struct marshal_cmd_VertexAttrib1fvARB *cmd;
96 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1fvARB, cmd_size);
97 cmd->index = index;
98 memcpy(cmd->v, v, 1 * sizeof(GLfloat));
110 _mesa_unmarshal_VertexAttrib1s(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1s *cmd, const uint64_t *last)
112 GLuint index = cmd->index;
113 GLshort x = cmd->x;
116 assert (cmd_size == cmd->cmd_base.cmd_size);
124 struct marshal_cmd_VertexAttrib1s *cmd;
125 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1s, cmd_size);
126 cmd->index = index;
127 cmd->x = x;
139 _mesa_unmarshal_VertexAttrib1sv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1sv *cmd, const uint64_t *last)
141 GLuint index = cmd->index;
142 const GLshort * v = cmd->v;
145 assert (cmd_size == cmd->cmd_base.cmd_size);
153 struct marshal_cmd_VertexAttrib1sv *cmd;
154 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1sv, cmd_size);
155 cmd->index = index;
156 memcpy(cmd->v, v, 1 * sizeof(GLshort));
169 _mesa_unmarshal_VertexAttrib2d(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2d *cmd, const uint64_t *last)
171 GLuint index = cmd->index;
172 GLdouble x = cmd->x;
173 GLdouble y = cmd->y;
176 assert (cmd_size == cmd->cmd_base.cmd_size);
184 struct marshal_cmd_VertexAttrib2d *cmd;
185 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2d, cmd_size);
186 cmd->index = index;
187 cmd->x = x;
188 cmd->y = y;
200 _mesa_unmarshal_VertexAttrib2dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2dv *cmd, const uint64_t *last)
202 GLuint index = cmd->index;
203 const GLdouble * v = cmd->v;
206 assert (cmd_size == cmd->cmd_base.cmd_size);
214 struct marshal_cmd_VertexAttrib2dv *cmd;
215 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2dv, cmd_size);
216 cmd->index = index;
217 memcpy(cmd->v, v, 2 * sizeof(GLdouble));
230 _mesa_unmarshal_VertexAttrib2fARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2fARB *cmd, const uint64_t *last)
232 GLuint index = cmd->index;
233 GLfloat x = cmd->x;
234 GLfloat y = cmd->y;
237 assert (cmd_size == cmd->cmd_base.cmd_size);
245 struct marshal_cmd_VertexAttrib2fARB *cmd;
246 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2fARB, cmd_size);
247 cmd->index = index;
248 cmd->x = x;
249 cmd->y = y;
261 _mesa_unmarshal_VertexAttrib2fvARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2fvARB *cmd, const uint64_t *last)
263 GLuint index = cmd->index;
264 const GLfloat * v = cmd->v;
267 assert (cmd_size == cmd->cmd_base.cmd_size);
275 struct marshal_cmd_VertexAttrib2fvARB *cmd;
276 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2fvARB, cmd_size);
277 cmd->index = index;
278 memcpy(cmd->v, v, 2 * sizeof(GLfloat));
291 _mesa_unmarshal_VertexAttrib2s(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2s *cmd, const uint64_t *last)
293 GLuint index = cmd->index;
294 GLshort x = cmd->x;
295 GLshort y = cmd->y;
298 assert (cmd_size == cmd->cmd_base.cmd_size);
306 struct marshal_cmd_VertexAttrib2s *cmd;
307 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2s, cmd_size);
308 cmd->index = index;
309 cmd->x = x;
310 cmd->y = y;
322 _mesa_unmarshal_VertexAttrib2sv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2sv *cmd, const uint64_t *last)
324 GLuint index = cmd->index;
325 const GLshort * v = cmd->v;
328 assert (cmd_size == cmd->cmd_base.cmd_size);
336 struct marshal_cmd_VertexAttrib2sv *cmd;
337 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2sv, cmd_size);
338 cmd->index = index;
339 memcpy(cmd->v, v, 2 * sizeof(GLshort));
353 _mesa_unmarshal_VertexAttrib3d(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3d *cmd, const uint64_t *last)
355 GLuint index = cmd->index;
356 GLdouble x = cmd->x;
357 GLdouble y = cmd->y;
358 GLdouble z = cmd->z;
361 assert (cmd_size == cmd->cmd_base.cmd_size);
369 struct marshal_cmd_VertexAttrib3d *cmd;
370 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3d, cmd_size);
371 cmd->index = index;
372 cmd->x = x;
373 cmd->y = y;
374 cmd->z = z;
386 _mesa_unmarshal_VertexAttrib3dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3dv *cmd, const uint64_t *last)
388 GLuint index = cmd->index;
389 const GLdouble * v = cmd->v;
392 assert (cmd_size == cmd->cmd_base.cmd_size);
400 struct marshal_cmd_VertexAttrib3dv *cmd;
401 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3dv, cmd_size);
402 cmd->index = index;
403 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
417 _mesa_unmarshal_VertexAttrib3fARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3fARB *cmd, const uint64_t *last)
419 GLuint index = cmd->index;
420 GLfloat x = cmd->x;
421 GLfloat y = cmd->y;
422 GLfloat z = cmd->z;
425 assert (cmd_size == cmd->cmd_base.cmd_size);
433 struct marshal_cmd_VertexAttrib3fARB *cmd;
434 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3fARB, cmd_size);
435 cmd->index = index;
436 cmd->x = x;
437 cmd->y = y;
438 cmd->z = z;
450 _mesa_unmarshal_VertexAttrib3fvARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3fvARB *cmd, const uint64_t *last)
452 GLuint index = cmd->index;
453 const GLfloat * v = cmd->v;
456 assert (cmd_size == cmd->cmd_base.cmd_size);
464 struct marshal_cmd_VertexAttrib3fvARB *cmd;
465 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3fvARB, cmd_size);
466 cmd->index = index;
467 memcpy(cmd->v, v, 3 * sizeof(GLfloat));
481 _mesa_unmarshal_VertexAttrib3s(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3s *cmd, const uint64_t *last)
483 GLuint index = cmd->index;
484 GLshort x = cmd->x;
485 GLshort y = cmd->y;
486 GLshort z = cmd->z;
489 assert (cmd_size == cmd->cmd_base.cmd_size);
497 struct marshal_cmd_VertexAttrib3s *cmd;
498 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3s, cmd_size);
499 cmd->index = index;
500 cmd->x = x;
501 cmd->y = y;
502 cmd->z = z;
514 _mesa_unmarshal_VertexAttrib3sv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3sv *cmd, const uint64_t *last)
516 GLuint index = cmd->index;
517 const GLshort * v = cmd->v;
520 assert (cmd_size == cmd->cmd_base.cmd_size);
528 struct marshal_cmd_VertexAttrib3sv *cmd;
529 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3sv, cmd_size);
530 cmd->index = index;
531 memcpy(cmd->v, v, 3 * sizeof(GLshort));
543 _mesa_unmarshal_VertexAttrib4Nbv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4Nbv *cmd, const uint64_t *last)
545 GLuint index = cmd->index;
546 const GLbyte * v = cmd->v;
549 assert (cmd_size == cmd->cmd_base.cmd_size);
557 struct marshal_cmd_VertexAttrib4Nbv *cmd;
558 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4Nbv, cmd_size);
559 cmd->index = index;
560 memcpy(cmd->v, v, 4 * sizeof(GLbyte));
572 _mesa_unmarshal_VertexAttrib4Niv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4Niv *cmd, const uint64_t *last)
574 GLuint index = cmd->index;
575 const GLint * v = cmd->v;
578 assert (cmd_size == cmd->cmd_base.cmd_size);
586 struct marshal_cmd_VertexAttrib4Niv *cmd;
587 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4Niv, cmd_size);
588 cmd->index = index;
589 memcpy(cmd->v, v, 4 * sizeof(GLint));
601 _mesa_unmarshal_VertexAttrib4Nsv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4Nsv *cmd, const uint64_t *last)
603 GLuint index = cmd->index;
604 const GLshort * v = cmd->v;
607 assert (cmd_size == cmd->cmd_base.cmd_size);
615 struct marshal_cmd_VertexAttrib4Nsv *cmd;
616 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4Nsv, cmd_size);
617 cmd->index = index;
618 memcpy(cmd->v, v, 4 * sizeof(GLshort));
633 _mesa_unmarshal_VertexAttrib4Nub(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4Nub *cmd, const uint64_t *last)
635 GLuint index = cmd->index;
636 GLubyte x = cmd->x;
637 GLubyte y = cmd->y;
638 GLubyte z = cmd->z;
639 GLubyte w = cmd->w;
642 assert (cmd_size == cmd->cmd_base.cmd_size);
650 struct marshal_cmd_VertexAttrib4Nub *cmd;
651 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4Nub, cmd_size);
652 cmd->index = index;
653 cmd->x = x;
654 cmd->y = y;
655 cmd->z = z;
656 cmd->w = w;
668 _mesa_unmarshal_VertexAttrib4Nubv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4Nubv *cmd, const uint64_t *last)
670 GLuint index = cmd->index;
671 const GLubyte * v = cmd->v;
674 assert (cmd_size == cmd->cmd_base.cmd_size);
682 struct marshal_cmd_VertexAttrib4Nubv *cmd;
683 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4Nubv, cmd_size);
684 cmd->index = index;
685 memcpy(cmd->v, v, 4 * sizeof(GLubyte));
697 _mesa_unmarshal_VertexAttrib4Nuiv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4Nuiv *cmd, const uint64_t *last)
699 GLuint index = cmd->index;
700 const GLuint * v = cmd->v;
703 assert (cmd_size == cmd->cmd_base.cmd_size);
711 struct marshal_cmd_VertexAttrib4Nuiv *cmd;
712 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4Nuiv, cmd_size);
713 cmd->index = index;
714 memcpy(cmd->v, v, 4 * sizeof(GLuint));
726 _mesa_unmarshal_VertexAttrib4Nusv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4Nusv *cmd, const uint64_t *last)
728 GLuint index = cmd->index;
729 const GLushort * v = cmd->v;
732 assert (cmd_size == cmd->cmd_base.cmd_size);
740 struct marshal_cmd_VertexAttrib4Nusv *cmd;
741 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4Nusv, cmd_size);
742 cmd->index = index;
743 memcpy(cmd->v, v, 4 * sizeof(GLushort));
755 _mesa_unmarshal_VertexAttrib4bv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4bv *cmd, const uint64_t *last)
757 GLuint index = cmd->index;
758 const GLbyte * v = cmd->v;
761 assert (cmd_size == cmd->cmd_base.cmd_size);
769 struct marshal_cmd_VertexAttrib4bv *cmd;
770 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4bv, cmd_size);
771 cmd->index = index;
772 memcpy(cmd->v, v, 4 * sizeof(GLbyte));
787 _mesa_unmarshal_VertexAttrib4d(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4d *cmd, const uint64_t *last)
789 GLuint index = cmd->index;
790 GLdouble x = cmd->x;
791 GLdouble y = cmd->y;
792 GLdouble z = cmd->z;
793 GLdouble w = cmd->w;
796 assert (cmd_size == cmd->cmd_base.cmd_size);
804 struct marshal_cmd_VertexAttrib4d *cmd;
805 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4d, cmd_size);
806 cmd->index = index;
807 cmd->x = x;
808 cmd->y = y;
809 cmd->z = z;
810 cmd->w = w;
822 _mesa_unmarshal_VertexAttrib4dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4dv *cmd, const uint64_t *last)
824 GLuint index = cmd->index;
825 const GLdouble * v = cmd->v;
828 assert (cmd_size == cmd->cmd_base.cmd_size);
836 struct marshal_cmd_VertexAttrib4dv *cmd;
837 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4dv, cmd_size);
838 cmd->index = index;
839 memcpy(cmd->v, v, 4 * sizeof(GLdouble));
854 _mesa_unmarshal_VertexAttrib4fARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4fARB *cmd, const uint64_t *last)
856 GLuint index = cmd->index;
857 GLfloat x = cmd->x;
858 GLfloat y = cmd->y;
859 GLfloat z = cmd->z;
860 GLfloat w = cmd->w;
863 assert (cmd_size == cmd->cmd_base.cmd_size);
871 struct marshal_cmd_VertexAttrib4fARB *cmd;
872 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4fARB, cmd_size);
873 cmd->index = index;
874 cmd->x = x;
875 cmd->y = y;
876 cmd->z = z;
877 cmd->w = w;
889 _mesa_unmarshal_VertexAttrib4fvARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4fvARB *cmd, const uint64_t *last)
891 GLuint index = cmd->index;
892 const GLfloat * v = cmd->v;
895 assert (cmd_size == cmd->cmd_base.cmd_size);
903 struct marshal_cmd_VertexAttrib4fvARB *cmd;
904 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4fvARB, cmd_size);
905 cmd->index = index;
906 memcpy(cmd->v, v, 4 * sizeof(GLfloat));
918 _mesa_unmarshal_VertexAttrib4iv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4iv *cmd, const uint64_t *last)
920 GLuint index = cmd->index;
921 const GLint * v = cmd->v;
924 assert (cmd_size == cmd->cmd_base.cmd_size);
932 struct marshal_cmd_VertexAttrib4iv *cmd;
933 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4iv, cmd_size);
934 cmd->index = index;
935 memcpy(cmd->v, v, 4 * sizeof(GLint));
950 _mesa_unmarshal_VertexAttrib4s(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4s *cmd, const uint64_t *last)
952 GLuint index = cmd->index;
953 GLshort x = cmd->x;
954 GLshort y = cmd->y;
955 GLshort z = cmd->z;
956 GLshort w = cmd->w;
959 assert (cmd_size == cmd->cmd_base.cmd_size);
967 struct marshal_cmd_VertexAttrib4s *cmd;
968 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4s, cmd_size);
969 cmd->index = index;
970 cmd->x = x;
971 cmd->y = y;
972 cmd->z = z;
973 cmd->w = w;
985 _mesa_unmarshal_VertexAttrib4sv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4sv *cmd, const uint64_t *last)
987 GLuint index = cmd->index;
988 const GLshort * v = cmd->v;
991 assert (cmd_size == cmd->cmd_base.cmd_size);
999 struct marshal_cmd_VertexAttrib4sv *cmd;
1000 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4sv, cmd_size);
1001 cmd->index = index;
1002 memcpy(cmd->v, v, 4 * sizeof(GLshort));
1014 _mesa_unmarshal_VertexAttrib4ubv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4ubv *cmd, const uint64_t *last)
1016 GLuint index = cmd->index;
1017 const GLubyte * v = cmd->v;
1020 assert (cmd_size == cmd->cmd_base.cmd_size);
1028 struct marshal_cmd_VertexAttrib4ubv *cmd;
1029 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4ubv, cmd_size);
1030 cmd->index = index;
1031 memcpy(cmd->v, v, 4 * sizeof(GLubyte));
1043 _mesa_unmarshal_VertexAttrib4uiv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4uiv *cmd, const uint64_t *last)
1045 GLuint index = cmd->index;
1046 const GLuint * v = cmd->v;
1049 assert (cmd_size == cmd->cmd_base.cmd_size);
1057 struct marshal_cmd_VertexAttrib4uiv *cmd;
1058 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4uiv, cmd_size);
1059 cmd->index = index;
1060 memcpy(cmd->v, v, 4 * sizeof(GLuint));
1072 _mesa_unmarshal_VertexAttrib4usv(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4usv *cmd, const uint64_t *last)
1074 GLuint index = cmd->index;
1075 const GLushort * v = cmd->v;
1078 assert (cmd_size == cmd->cmd_base.cmd_size);
1086 struct marshal_cmd_VertexAttrib4usv *cmd;
1087 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4usv, cmd_size);
1088 cmd->index = index;
1089 memcpy(cmd->v, v, 4 * sizeof(GLushort));
1105 _mesa_unmarshal_VertexAttribPointer(struct gl_context *ctx, const struct marshal_cmd_VertexAttribPointer *cmd, const uint64_t *last)
1107 GLuint index = cmd->index;
1108 GLint size = cmd->size;
1109 GLenum type = cmd->type;
1110 GLboolean normalized = cmd->normalized;
1111 GLsizei stride = cmd->stride;
1112 const GLvoid * pointer = cmd->pointer;
1115 assert (cmd_size == cmd->cmd_base.cmd_size);
1123 struct marshal_cmd_VertexAttribPointer *cmd;
1124 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribPointer, cmd_size);
1125 cmd->index = index;
1126 cmd->size = size;
1127 cmd->type = type;
1128 cmd->normalized = normalized;
1129 cmd->stride = stride;
1130 cmd->pointer = pointer;
1145 _mesa_unmarshal_UniformMatrix2x3fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix2x3fv *cmd, const uint64_t *last)
1147 GLint location = cmd->location;
1148 GLsizei count = cmd->count;
1149 GLboolean transpose = cmd->transpose;
1151 const char *variable_data = (const char *) (cmd + 1);
1154 return cmd->cmd_base.cmd_size;
1162 struct marshal_cmd_UniformMatrix2x3fv *cmd;
1168 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix2x3fv, cmd_size);
1169 cmd->location = location;
1170 cmd->count = count;
1171 cmd->transpose = transpose;
1172 char *variable_data = (char *) (cmd + 1);
1187 _mesa_unmarshal_UniformMatrix3x2fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix3x2fv *cmd, const uint64_t *last)
1189 GLint location = cmd->location;
1190 GLsizei count = cmd->count;
1191 GLboolean transpose = cmd->transpose;
1193 const char *variable_data = (const char *) (cmd + 1);
1196 return cmd->cmd_base.cmd_size;
1204 struct marshal_cmd_UniformMatrix3x2fv *cmd;
1210 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix3x2fv, cmd_size);
1211 cmd->location = location;
1212 cmd->count = count;
1213 cmd->transpose = transpose;
1214 char *variable_data = (char *) (cmd + 1);
1229 _mesa_unmarshal_UniformMatrix2x4fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix2x4fv *cmd, const uint64_t *last)
1231 GLint location = cmd->location;
1232 GLsizei count = cmd->count;
1233 GLboolean transpose = cmd->transpose;
1235 const char *variable_data = (const char *) (cmd + 1);
1238 return cmd->cmd_base.cmd_size;
1246 struct marshal_cmd_UniformMatrix2x4fv *cmd;
1252 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix2x4fv, cmd_size);
1253 cmd->location = location;
1254 cmd->count = count;
1255 cmd->transpose = transpose;
1256 char *variable_data = (char *) (cmd + 1);
1271 _mesa_unmarshal_UniformMatrix4x2fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix4x2fv *cmd, const uint64_t *last)
1273 GLint location = cmd->location;
1274 GLsizei count = cmd->count;
1275 GLboolean transpose = cmd->transpose;
1277 const char *variable_data = (const char *) (cmd + 1);
1280 return cmd->cmd_base.cmd_size;
1288 struct marshal_cmd_UniformMatrix4x2fv *cmd;
1294 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix4x2fv, cmd_size);
1295 cmd->location = location;
1296 cmd->count = count;
1297 cmd->transpose = transpose;
1298 char *variable_data = (char *) (cmd + 1);
1313 _mesa_unmarshal_UniformMatrix3x4fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix3x4fv *cmd, const uint64_t *last)
1315 GLint location = cmd->location;
1316 GLsizei count = cmd->count;
1317 GLboolean transpose = cmd->transpose;
1319 const char *variable_data = (const char *) (cmd + 1);
1322 return cmd->cmd_base.cmd_size;
1330 struct marshal_cmd_UniformMatrix3x4fv *cmd;
1336 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix3x4fv, cmd_size);
1337 cmd->location = location;
1338 cmd->count = count;
1339 cmd->transpose = transpose;
1340 char *variable_data = (char *) (cmd + 1);
1355 _mesa_unmarshal_UniformMatrix4x3fv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix4x3fv *cmd, const uint64_t *last)
1357 GLint location = cmd->location;
1358 GLsizei count = cmd->count;
1359 GLboolean transpose = cmd->transpose;
1361 const char *variable_data = (const char *) (cmd + 1);
1364 return cmd->cmd_base.cmd_size;
1372 struct marshal_cmd_UniformMatrix4x3fv *cmd;
1378 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix4x3fv, cmd_size);
1379 cmd->location = location;
1380 cmd->count = count;
1381 cmd->transpose = transpose;
1382 char *variable_data = (char *) (cmd + 1);
1397 _mesa_unmarshal_ProgramStringARB(struct gl_context *ctx, const struct marshal_cmd_ProgramStringARB *cmd, const uint64_t *last)
1399 GLenum target = cmd->target;
1400 GLenum format = cmd->format;
1401 GLsizei len = cmd->len;
1403 const char *variable_data = (const char *) (cmd + 1);
1406 return cmd->cmd_base.cmd_size;
1414 struct marshal_cmd_ProgramStringARB *cmd;
1420 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramStringARB, cmd_size);
1421 cmd->target = target;
1422 cmd->format = format;
1423 cmd->len = len;
1424 char *variable_data = (char *) (cmd + 1);
1437 _mesa_unmarshal_BindProgramARB(struct gl_context *ctx, const struct marshal_cmd_BindProgramARB *cmd, const uint64_t *last)
1439 GLenum target = cmd->target;
1440 GLuint program = cmd->program;
1443 assert (cmd_size == cmd->cmd_base.cmd_size);
1451 struct marshal_cmd_BindProgramARB *cmd;
1452 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindProgramARB, cmd_size);
1453 cmd->target = target;
1454 cmd->program = program;
1466 _mesa_unmarshal_DeleteProgramsARB(struct gl_context *ctx, const struct marshal_cmd_DeleteProgramsARB *cmd, const uint64_t *last)
1468 GLsizei n = cmd->n;
1470 const char *variable_data = (const char *) (cmd + 1);
1473 return cmd->cmd_base.cmd_size;
1481 struct marshal_cmd_DeleteProgramsARB *cmd;
1487 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteProgramsARB, cmd_size);
1488 cmd->n = n;
1489 char *variable_data = (char *) (cmd + 1);
1526 _mesa_unmarshal_ProgramEnvParameter4dARB(struct gl_context *ctx, const struct marshal_cmd_ProgramEnvParameter4dARB *cmd, const uint64_t *last)
1528 GLenum target = cmd->target;
1529 GLuint index = cmd->index;
1530 GLdouble x = cmd->x;
1531 GLdouble y = cmd->y;
1532 GLdouble z = cmd->z;
1533 GLdouble w = cmd->w;
1536 assert (cmd_size == cmd->cmd_base.cmd_size);
1544 struct marshal_cmd_ProgramEnvParameter4dARB *cmd;
1545 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramEnvParameter4dARB, cmd_size);
1546 cmd->target = target;
1547 cmd->index = index;
1548 cmd->x = x;
1549 cmd->y = y;
1550 cmd->z = z;
1551 cmd->w = w;
1564 _mesa_unmarshal_ProgramEnvParameter4dvARB(struct gl_context *ctx, const struct marshal_cmd_ProgramEnvParameter4dvARB *cmd, const uint64_t *last)
1566 GLenum target = cmd->target;
1567 GLuint index = cmd->index;
1568 const GLdouble * params = cmd->params;
1571 assert (cmd_size == cmd->cmd_base.cmd_size);
1579 struct marshal_cmd_ProgramEnvParameter4dvARB *cmd;
1580 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramEnvParameter4dvARB, cmd_size);
1581 cmd->target = target;
1582 cmd->index = index;
1583 memcpy(cmd->params, params, 4 * sizeof(GLdouble));
1599 _mesa_unmarshal_ProgramEnvParameter4fARB(struct gl_context *ctx, const struct marshal_cmd_ProgramEnvParameter4fARB *cmd, const uint64_t *last)
1601 GLenum target = cmd->target;
1602 GLuint index = cmd->index;
1603 GLfloat x = cmd->x;
1604 GLfloat y = cmd->y;
1605 GLfloat z = cmd->z;
1606 GLfloat w = cmd->w;
1609 assert (cmd_size == cmd->cmd_base.cmd_size);
1617 struct marshal_cmd_ProgramEnvParameter4fARB *cmd;
1618 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramEnvParameter4fARB, cmd_size);
1619 cmd->target = target;
1620 cmd->index = index;
1621 cmd->x = x;
1622 cmd->y = y;
1623 cmd->z = z;
1624 cmd->w = w;
1637 _mesa_unmarshal_ProgramEnvParameter4fvARB(struct gl_context *ctx, const struct marshal_cmd_ProgramEnvParameter4fvARB *cmd, const uint64_t *last)
1639 GLenum target = cmd->target;
1640 GLuint index = cmd->index;
1641 const GLfloat * params = cmd->params;
1644 assert (cmd_size == cmd->cmd_base.cmd_size);
1652 struct marshal_cmd_ProgramEnvParameter4fvARB *cmd;
1653 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramEnvParameter4fvARB, cmd_size);
1654 cmd->target = target;
1655 cmd->index = index;
1656 memcpy(cmd->params, params, 4 * sizeof(GLfloat));
1672 _mesa_unmarshal_ProgramLocalParameter4dARB(struct gl_context *ctx, const struct marshal_cmd_ProgramLocalParameter4dARB *cmd, const uint64_t *last)
1674 GLenum target = cmd->target;
1675 GLuint index = cmd->index;
1676 GLdouble x = cmd->x;
1677 GLdouble y = cmd->y;
1678 GLdouble z = cmd->z;
1679 GLdouble w = cmd->w;
1682 assert (cmd_size == cmd->cmd_base.cmd_size);
1690 struct marshal_cmd_ProgramLocalParameter4dARB *cmd;
1691 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramLocalParameter4dARB, cmd_size);
1692 cmd->target = target;
1693 cmd->index = index;
1694 cmd->x = x;
1695 cmd->y = y;
1696 cmd->z = z;
1697 cmd->w = w;
1710 _mesa_unmarshal_ProgramLocalParameter4dvARB(struct gl_context *ctx, const struct marshal_cmd_ProgramLocalParameter4dvARB *cmd, const uint64_t *last)
1712 GLenum target = cmd->target;
1713 GLuint index = cmd->index;
1714 const GLdouble * params = cmd->params;
1717 assert (cmd_size == cmd->cmd_base.cmd_size);
1725 struct marshal_cmd_ProgramLocalParameter4dvARB *cmd;
1726 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramLocalParameter4dvARB, cmd_size);
1727 cmd->target = target;
1728 cmd->index = index;
1729 memcpy(cmd->params, params, 4 * sizeof(GLdouble));
1745 _mesa_unmarshal_ProgramLocalParameter4fARB(struct gl_context *ctx, const struct marshal_cmd_ProgramLocalParameter4fARB *cmd, const uint64_t *last)
1747 GLenum target = cmd->target;
1748 GLuint index = cmd->index;
1749 GLfloat x = cmd->x;
1750 GLfloat y = cmd->y;
1751 GLfloat z = cmd->z;
1752 GLfloat w = cmd->w;
1755 assert (cmd_size == cmd->cmd_base.cmd_size);
1763 struct marshal_cmd_ProgramLocalParameter4fARB *cmd;
1764 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramLocalParameter4fARB, cmd_size);
1765 cmd->target = target;
1766 cmd->index = index;
1767 cmd->x = x;
1768 cmd->y = y;
1769 cmd->z = z;
1770 cmd->w = w;
1783 _mesa_unmarshal_ProgramLocalParameter4fvARB(struct gl_context *ctx, const struct marshal_cmd_ProgramLocalParameter4fvARB *cmd, const uint64_t *last)
1785 GLenum target = cmd->target;
1786 GLuint index = cmd->index;
1787 const GLfloat * params = cmd->params;
1790 assert (cmd_size == cmd->cmd_base.cmd_size);
1798 struct marshal_cmd_ProgramLocalParameter4fvARB *cmd;
1799 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramLocalParameter4fvARB, cmd_size);
1800 cmd->target = target;
1801 cmd->index = index;
1802 memcpy(cmd->params, params, 4 * sizeof(GLfloat));
1873 _mesa_unmarshal_DeleteObjectARB(struct gl_context *ctx, const struct marshal_cmd_DeleteObjectARB *cmd, const uint64_t *last)
1875 GLhandleARB obj = cmd->obj;
1878 assert (cmd_size == cmd->cmd_base.cmd_size);
1886 struct marshal_cmd_DeleteObjectARB *cmd;
1887 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteObjectARB, cmd_size);
1888 cmd->obj = obj;
1911 _mesa_unmarshal_DetachObjectARB(struct gl_context *ctx, const struct marshal_cmd_DetachObjectARB *cmd, const uint64_t *last)
1913 GLhandleARB containerObj = cmd->containerObj;
1914 GLhandleARB attachedObj = cmd->attachedObj;
1917 assert (cmd_size == cmd->cmd_base.cmd_size);
1925 struct marshal_cmd_DetachObjectARB *cmd;
1926 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DetachObjectARB, cmd_size);
1927 cmd->containerObj = containerObj;
1928 cmd->attachedObj = attachedObj;
1960 _mesa_unmarshal_AttachObjectARB(struct gl_context *ctx, const struct marshal_cmd_AttachObjectARB *cmd, const uint64_t *last)
1962 GLhandleARB containerObj = cmd->containerObj;
1963 GLhandleARB obj = cmd->obj;
1966 assert (cmd_size == cmd->cmd_base.cmd_size);
1974 struct marshal_cmd_AttachObjectARB *cmd;
1975 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_AttachObjectARB, cmd_size);
1976 cmd->containerObj = containerObj;
1977 cmd->obj = obj;
2029 _mesa_unmarshal_ClampColor(struct gl_context *ctx, const struct marshal_cmd_ClampColor *cmd, const uint64_t *last)
2031 GLenum target = cmd->target;
2032 GLenum clamp = cmd->clamp;
2035 assert (cmd_size == cmd->cmd_base.cmd_size);
2043 struct marshal_cmd_ClampColor *cmd;
2044 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClampColor, cmd_size);
2045 cmd->target = target;
2046 cmd->clamp = clamp;
2068 _mesa_unmarshal_BindRenderbuffer(struct gl_context *ctx, const struct marshal_cmd_BindRenderbuffer *cmd, const uint64_t *last)
2070 GLenum target = cmd->target;
2071 GLuint renderbuffer = cmd->renderbuffer;
2074 assert (cmd_size == cmd->cmd_base.cmd_size);
2082 struct marshal_cmd_BindRenderbuffer *cmd;
2083 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindRenderbuffer, cmd_size);
2084 cmd->target = target;
2085 cmd->renderbuffer = renderbuffer;
2097 _mesa_unmarshal_DeleteRenderbuffers(struct gl_context *ctx, const struct marshal_cmd_DeleteRenderbuffers *cmd, const uint64_t *last)
2099 GLsizei n = cmd->n;
2101 const char *variable_data = (const char *) (cmd + 1);
2104 return cmd->cmd_base.cmd_size;
2112 struct marshal_cmd_DeleteRenderbuffers *cmd;
2118 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteRenderbuffers, cmd_size);
2119 cmd->n = n;
2120 char *variable_data = (char *) (cmd + 1);
2145 _mesa_unmarshal_RenderbufferStorage(struct gl_context *ctx, const struct marshal_cmd_RenderbufferStorage *cmd, const uint64_t *last)
2147 GLenum target = cmd->target;
2148 GLenum internalformat = cmd->internalformat;
2149 GLsizei width = cmd->width;
2150 GLsizei height = cmd->height;
2153 assert (cmd_size == cmd->cmd_base.cmd_size);
2161 struct marshal_cmd_RenderbufferStorage *cmd;
2162 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RenderbufferStorage, cmd_size);
2163 cmd->target = target;
2164 cmd->internalformat = internalformat;
2165 cmd->width = width;
2166 cmd->height = height;
2181 _mesa_unmarshal_RenderbufferStorageMultisample(struct gl_context *ctx, const struct marshal_cmd_RenderbufferStorageMultisample *cmd, const uint64_t *last)
2183 GLenum target = cmd->target;
2184 GLsizei samples = cmd->samples;
2185 GLenum internalformat = cmd->internalformat;
2186 GLsizei width = cmd->width;
2187 GLsizei height = cmd->height;
2190 assert (cmd_size == cmd->cmd_base.cmd_size);
2198 struct marshal_cmd_RenderbufferStorageMultisample *cmd;
2199 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RenderbufferStorageMultisample, cmd_size);
2200 cmd->target = target;
2201 cmd->samples = samples;
2202 cmd->internalformat = internalformat;
2203 cmd->width = width;
2204 cmd->height = height;
2236 _mesa_unmarshal_BindFramebuffer(struct gl_context *ctx, const struct marshal_cmd_BindFramebuffer *cmd, const uint64_t *last)
2238 GLenum target = cmd->target;
2239 GLuint framebuffer = cmd->framebuffer;
2242 assert (cmd_size == cmd->cmd_base.cmd_size);
2250 struct marshal_cmd_BindFramebuffer *cmd;
2251 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindFramebuffer, cmd_size);
2252 cmd->target = target;
2253 cmd->framebuffer = framebuffer;
2265 _mesa_unmarshal_DeleteFramebuffers(struct gl_context *ctx, const struct marshal_cmd_DeleteFramebuffers *cmd, const uint64_t *last)
2267 GLsizei n = cmd->n;
2269 const char *variable_data = (const char *) (cmd + 1);
2272 return cmd->cmd_base.cmd_size;
2280 struct marshal_cmd_DeleteFramebuffers *cmd;
2286 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteFramebuffers, cmd_size);
2287 cmd->n = n;
2288 char *variable_data = (char *) (cmd + 1);
2324 _mesa_unmarshal_FramebufferTexture1D(struct gl_context *ctx, const struct marshal_cmd_FramebufferTexture1D *cmd, const uint64_t *last)
2326 GLenum target = cmd->target;
2327 GLenum attachment = cmd->attachment;
2328 GLenum textarget = cmd->textarget;
2329 GLuint texture = cmd->texture;
2330 GLint level = cmd->level;
2333 assert (cmd_size == cmd->cmd_base.cmd_size);
2341 struct marshal_cmd_FramebufferTexture1D *cmd;
2342 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferTexture1D, cmd_size);
2343 cmd->target = target;
2344 cmd->attachment = attachment;
2345 cmd->textarget = textarget;
2346 cmd->texture = texture;
2347 cmd->level = level;
2362 _mesa_unmarshal_FramebufferTexture2D(struct gl_context *ctx, const struct marshal_cmd_FramebufferTexture2D *cmd, const uint64_t *last)
2364 GLenum target = cmd->target;
2365 GLenum attachment = cmd->attachment;
2366 GLenum textarget = cmd->textarget;
2367 GLuint texture = cmd->texture;
2368 GLint level = cmd->level;
2371 assert (cmd_size == cmd->cmd_base.cmd_size);
2379 struct marshal_cmd_FramebufferTexture2D *cmd;
2380 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferTexture2D, cmd_size);
2381 cmd->target = target;
2382 cmd->attachment = attachment;
2383 cmd->textarget = textarget;
2384 cmd->texture = texture;
2385 cmd->level = level;
2401 _mesa_unmarshal_FramebufferTexture3D(struct gl_context *ctx, const struct marshal_cmd_FramebufferTexture3D *cmd, const uint64_t *last)
2403 GLenum target = cmd->target;
2404 GLenum attachment = cmd->attachment;
2405 GLenum textarget = cmd->textarget;
2406 GLuint texture = cmd->texture;
2407 GLint level = cmd->level;
2408 GLint layer = cmd->layer;
2411 assert (cmd_size == cmd->cmd_base.cmd_size);
2419 struct marshal_cmd_FramebufferTexture3D *cmd;
2420 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferTexture3D, cmd_size);
2421 cmd->target = target;
2422 cmd->attachment = attachment;
2423 cmd->textarget = textarget;
2424 cmd->texture = texture;
2425 cmd->level = level;
2426 cmd->layer = layer;
2441 _mesa_unmarshal_FramebufferTextureLayer(struct gl_context *ctx, const struct marshal_cmd_FramebufferTextureLayer *cmd, const uint64_t *last)
2443 GLenum target = cmd->target;
2444 GLenum attachment = cmd->attachment;
2445 GLuint texture = cmd->texture;
2446 GLint level = cmd->level;
2447 GLint layer = cmd->layer;
2450 assert (cmd_size == cmd->cmd_base.cmd_size);
2458 struct marshal_cmd_FramebufferTextureLayer *cmd;
2459 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferTextureLayer, cmd_size);
2460 cmd->target = target;
2461 cmd->attachment = attachment;
2462 cmd->texture = texture;
2463 cmd->level = level;
2464 cmd->layer = layer;
2478 _mesa_unmarshal_FramebufferRenderbuffer(struct gl_context *ctx, const struct marshal_cmd_FramebufferRenderbuffer *cmd, const uint64_t *last)
2480 GLenum target = cmd->target;
2481 GLenum attachment = cmd->attachment;
2482 GLenum renderbuffertarget = cmd->renderbuffertarget;
2483 GLuint renderbuffer = cmd->renderbuffer;
2486 assert (cmd_size == cmd->cmd_base.cmd_size);
2494 struct marshal_cmd_FramebufferRenderbuffer *cmd;
2495 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferRenderbuffer, cmd_size);
2496 cmd->target = target;
2497 cmd->attachment = attachment;
2498 cmd->renderbuffertarget = renderbuffertarget;
2499 cmd->renderbuffer = renderbuffer;
2529 _mesa_unmarshal_BlitFramebuffer(struct gl_context *ctx, const struct marshal_cmd_BlitFramebuffer *cmd, const uint64_t *last)
2531 GLint srcX0 = cmd->srcX0;
2532 GLint srcY0 = cmd->srcY0;
2533 GLint srcX1 = cmd->srcX1;
2534 GLint srcY1 = cmd->srcY1;
2535 GLint dstX0 = cmd->dstX0;
2536 GLint dstY0 = cmd->dstY0;
2537 GLint dstX1 = cmd->dstX1;
2538 GLint dstY1 = cmd->dstY1;
2539 GLbitfield mask = cmd->mask;
2540 GLenum filter = cmd->filter;
2543 assert (cmd_size == cmd->cmd_base.cmd_size);
2551 struct marshal_cmd_BlitFramebuffer *cmd;
2552 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlitFramebuffer, cmd_size);
2553 cmd->srcX0 = srcX0;
2554 cmd->srcY0 = srcY0;
2555 cmd->srcX1 = srcX1;
2556 cmd->srcY1 = srcY1;
2557 cmd->dstX0 = dstX0;
2558 cmd->dstY0 = dstY0;
2559 cmd->dstX1 = dstX1;
2560 cmd->dstY1 = dstY1;
2561 cmd->mask = mask;
2562 cmd->filter = filter;
2573 _mesa_unmarshal_GenerateMipmap(struct gl_context *ctx, const struct marshal_cmd_GenerateMipmap *cmd, const uint64_t *last)
2575 GLenum target = cmd->target;
2578 assert (cmd_size == cmd->cmd_base.cmd_size);
2586 struct marshal_cmd_GenerateMipmap *cmd;
2587 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GenerateMipmap, cmd_size);
2588 cmd->target = target;
2600 _mesa_unmarshal_VertexAttribDivisor(struct gl_context *ctx, const struct marshal_cmd_VertexAttribDivisor *cmd, const uint64_t *last)
2602 GLuint index = cmd->index;
2603 GLuint divisor = cmd->divisor;
2606 assert (cmd_size == cmd->cmd_base.cmd_size);
2614 struct marshal_cmd_VertexAttribDivisor *cmd;
2615 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribDivisor, cmd_size);
2616 cmd->index = index;
2617 cmd->divisor = divisor;
2631 _mesa_unmarshal_VertexArrayVertexAttribDivisorEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexAttribDivisorEXT *cmd, const uint64_t *last)
2633 GLuint vaobj = cmd->vaobj;
2634 GLuint index = cmd->index;
2635 GLuint divisor = cmd->divisor;
2638 assert (cmd_size == cmd->cmd_base.cmd_size);
2646 struct marshal_cmd_VertexArrayVertexAttribDivisorEXT *cmd;
2647 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexAttribDivisorEXT, cmd_size);
2648 cmd->vaobj = vaobj;
2649 cmd->index = index;
2650 cmd->divisor = divisor;
2674 _mesa_unmarshal_FlushMappedBufferRange(struct gl_context *ctx, const struct marshal_cmd_FlushMappedBufferRange *cmd, const uint64_t *last)
2676 GLenum target = cmd->target;
2677 GLintptr offset = cmd->offset;
2678 GLsizeiptr length = cmd->length;
2681 assert (cmd_size == cmd->cmd_base.cmd_size);
2689 struct marshal_cmd_FlushMappedBufferRange *cmd;
2690 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FlushMappedBufferRange, cmd_size);
2691 cmd->target = target;
2692 cmd->offset = offset;
2693 cmd->length = length;
2706 _mesa_unmarshal_TexBuffer(struct gl_context *ctx, const struct marshal_cmd_TexBuffer *cmd, const uint64_t *last)
2708 GLenum target = cmd->target;
2709 GLenum internalFormat = cmd->internalFormat;
2710 GLuint buffer = cmd->buffer;
2713 assert (cmd_size == cmd->cmd_base.cmd_size);
2721 struct marshal_cmd_TexBuffer *cmd;
2722 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexBuffer, cmd_size);
2723 cmd->target = target;
2724 cmd->internalFormat = internalFormat;
2725 cmd->buffer = buffer;
2736 _mesa_unmarshal_BindVertexArray(struct gl_context *ctx, const struct marshal_cmd_BindVertexArray *cmd, const uint64_t *last)
2738 GLuint array = cmd->array;
2741 assert (cmd_size == cmd->cmd_base.cmd_size);
2749 struct marshal_cmd_BindVertexArray *cmd;
2750 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindVertexArray, cmd_size);
2751 cmd->array = array;
2764 _mesa_unmarshal_DeleteVertexArrays(struct gl_context *ctx, const struct marshal_cmd_DeleteVertexArrays *cmd, const uint64_t *last)
2766 GLsizei n = cmd->n;
2768 const char *variable_data = (const char *) (cmd + 1);
2771 return cmd->cmd_base.cmd_size;
2779 struct marshal_cmd_DeleteVertexArrays *cmd;
2786 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteVertexArrays, cmd_size);
2787 cmd->n = n;
2788 char *variable_data = (char *) (cmd + 1);
2884 _mesa_unmarshal_UniformBlockBinding(struct gl_context *ctx, const struct marshal_cmd_UniformBlockBinding *cmd, const uint64_t *last)
2886 GLuint program = cmd->program;
2887 GLuint uniformBlockIndex = cmd->uniformBlockIndex;
2888 GLuint uniformBlockBinding = cmd->uniformBlockBinding;
2891 assert (cmd_size == cmd->cmd_base.cmd_size);
2899 struct marshal_cmd_UniformBlockBinding *cmd;
2900 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformBlockBinding, cmd_size);
2901 cmd->program = program;
2902 cmd->uniformBlockIndex = uniformBlockIndex;
2903 cmd->uniformBlockBinding = uniformBlockBinding;
2918 _mesa_unmarshal_CopyBufferSubData(struct gl_context *ctx, const struct marshal_cmd_CopyBufferSubData *cmd, const uint64_t *last)
2920 GLenum readTarget = cmd->readTarget;
2921 GLenum writeTarget = cmd->writeTarget;
2922 GLintptr readOffset = cmd->readOffset;
2923 GLintptr writeOffset = cmd->writeOffset;
2924 GLsizeiptr size = cmd->size;
2927 assert (cmd_size == cmd->cmd_base.cmd_size);
2935 struct marshal_cmd_CopyBufferSubData *cmd;
2936 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyBufferSubData, cmd_size);
2937 cmd->readTarget = readTarget;
2938 cmd->writeTarget = writeTarget;
2939 cmd->readOffset = readOffset;
2940 cmd->writeOffset = writeOffset;
2941 cmd->size = size;
2972 _mesa_unmarshal_DeleteSync(struct gl_context *ctx, const struct marshal_cmd_DeleteSync *cmd, const uint64_t *last)
2974 GLsync sync = cmd->sync;
2977 assert (cmd_size == cmd->cmd_base.cmd_size);
2985 struct marshal_cmd_DeleteSync *cmd;
2986 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteSync, cmd_size);
2987 cmd->sync = sync;
3010 _mesa_unmarshal_WaitSync(struct gl_context *ctx, const struct marshal_cmd_WaitSync *cmd, const uint64_t *last)
3012 GLsync sync = cmd->sync;
3013 GLbitfield flags = cmd->flags;
3014 GLuint64 timeout = cmd->timeout;
3017 assert (cmd_size == cmd->cmd_base.cmd_size);
3025 struct marshal_cmd_WaitSync *cmd;
3026 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WaitSync, cmd_size);
3027 cmd->sync = sync;
3028 cmd->flags = flags;
3029 cmd->timeout = timeout;
3065 _mesa_unmarshal_TexImage2DMultisample(struct gl_context *ctx, const struct marshal_cmd_TexImage2DMultisample *cmd, const uint64_t *last)
3067 GLenum target = cmd->target;
3068 GLsizei samples = cmd->samples;
3069 GLenum internalformat = cmd->internalformat;
3070 GLsizei width = cmd->width;
3071 GLsizei height = cmd->height;
3072 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
3075 assert (cmd_size == cmd->cmd_base.cmd_size);
3083 struct marshal_cmd_TexImage2DMultisample *cmd;
3084 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexImage2DMultisample, cmd_size);
3085 cmd->target = target;
3086 cmd->samples = samples;
3087 cmd->internalformat = internalformat;
3088 cmd->width = width;
3089 cmd->height = height;
3090 cmd->fixedsamplelocations = fixedsamplelocations;
3107 _mesa_unmarshal_TexImage3DMultisample(struct gl_context *ctx, const struct marshal_cmd_TexImage3DMultisample *cmd, const uint64_t *last)
3109 GLenum target = cmd->target;
3110 GLsizei samples = cmd->samples;
3111 GLenum internalformat = cmd->internalformat;
3112 GLsizei width = cmd->width;
3113 GLsizei height = cmd->height;
3114 GLsizei depth = cmd->depth;
3115 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
3118 assert (cmd_size == cmd->cmd_base.cmd_size);
3126 struct marshal_cmd_TexImage3DMultisample *cmd;
3127 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexImage3DMultisample, cmd_size);
3128 cmd->target = target;
3129 cmd->samples = samples;
3130 cmd->internalformat = internalformat;
3131 cmd->width = width;
3132 cmd->height = height;
3133 cmd->depth = depth;
3134 cmd->fixedsamplelocations = fixedsamplelocations;
3156 _mesa_unmarshal_SampleMaski(struct gl_context *ctx, const struct marshal_cmd_SampleMaski *cmd, const uint64_t *last)
3158 GLuint index = cmd->index;
3159 GLbitfield mask = cmd->mask;
3162 assert (cmd_size == cmd->cmd_base.cmd_size);
3170 struct marshal_cmd_SampleMaski *cmd;
3171 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SampleMaski, cmd_size);
3172 cmd->index = index;
3173 cmd->mask = mask;
3185 _mesa_unmarshal_BlendEquationiARB(struct gl_context *ctx, const struct marshal_cmd_BlendEquationiARB *cmd, const uint64_t *last)
3187 GLuint buf = cmd->buf;
3188 GLenum mode = cmd->mode;
3191 assert (cmd_size == cmd->cmd_base.cmd_size);
3199 struct marshal_cmd_BlendEquationiARB *cmd;
3200 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendEquationiARB, cmd_size);
3201 cmd->buf = buf;
3202 cmd->mode = mode;
3215 _mesa_unmarshal_BlendEquationSeparateiARB(struct gl_context *ctx, const struct marshal_cmd_BlendEquationSeparateiARB *cmd, const uint64_t *last)
3217 GLuint buf = cmd->buf;
3218 GLenum modeRGB = cmd->modeRGB;
3219 GLenum modeA = cmd->modeA;
3222 assert (cmd_size == cmd->cmd_base.cmd_size);
3230 struct marshal_cmd_BlendEquationSeparateiARB *cmd;
3231 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendEquationSeparateiARB, cmd_size);
3232 cmd->buf = buf;
3233 cmd->modeRGB = modeRGB;
3234 cmd->modeA = modeA;
3247 _mesa_unmarshal_BlendFunciARB(struct gl_context *ctx, const struct marshal_cmd_BlendFunciARB *cmd, const uint64_t *last)
3249 GLuint buf = cmd->buf;
3250 GLenum src = cmd->src;
3251 GLenum dst = cmd->dst;
3254 assert (cmd_size == cmd->cmd_base.cmd_size);
3262 struct marshal_cmd_BlendFunciARB *cmd;
3263 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendFunciARB, cmd_size);
3264 cmd->buf = buf;
3265 cmd->src = src;
3266 cmd->dst = dst;
3281 _mesa_unmarshal_BlendFuncSeparateiARB(struct gl_context *ctx, const struct marshal_cmd_BlendFuncSeparateiARB *cmd, const uint64_t *last)
3283 GLuint buf = cmd->buf;
3284 GLenum srcRGB = cmd->srcRGB;
3285 GLenum dstRGB = cmd->dstRGB;
3286 GLenum srcA = cmd->srcA;
3287 GLenum dstA = cmd->dstA;
3290 assert (cmd_size == cmd->cmd_base.cmd_size);
3298 struct marshal_cmd_BlendFuncSeparateiARB *cmd;
3299 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlendFuncSeparateiARB, cmd_size);
3300 cmd->buf = buf;
3301 cmd->srcRGB = srcRGB;
3302 cmd->dstRGB = dstRGB;
3303 cmd->srcA = srcA;
3304 cmd->dstA = dstA;
3315 _mesa_unmarshal_MinSampleShading(struct gl_context *ctx, const struct marshal_cmd_MinSampleShading *cmd, const uint64_t *last)
3317 GLfloat value = cmd->value;
3320 assert (cmd_size == cmd->cmd_base.cmd_size);
3328 struct marshal_cmd_MinSampleShading *cmd;
3329 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MinSampleShading, cmd_size);
3330 cmd->value = value;
3345 _mesa_unmarshal_NamedStringARB(struct gl_context *ctx, const struct marshal_cmd_NamedStringARB *cmd, const uint64_t *last)
3347 GLenum type = cmd->type;
3348 GLint namelen = cmd->namelen;
3349 GLint stringlen = cmd->stringlen;
3352 const char *variable_data = (const char *) (cmd + 1);
3357 return cmd->cmd_base.cmd_size;
3366 struct marshal_cmd_NamedStringARB *cmd;
3372 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedStringARB, cmd_size);
3373 cmd->type = type;
3374 cmd->namelen = namelen;
3375 cmd->stringlen = stringlen;
3376 char *variable_data = (char *) (cmd + 1);
3391 _mesa_unmarshal_DeleteNamedStringARB(struct gl_context *ctx, const struct marshal_cmd_DeleteNamedStringARB *cmd, const uint64_t *last)
3393 GLint namelen = cmd->namelen;
3395 const char *variable_data = (const char *) (cmd + 1);
3398 return cmd->cmd_base.cmd_size;
3406 struct marshal_cmd_DeleteNamedStringARB *cmd;
3412 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteNamedStringARB, cmd_size);
3413 cmd->namelen = namelen;
3414 char *variable_data = (char *) (cmd + 1);
3469 _mesa_unmarshal_BindFragDataLocationIndexed(struct gl_context *ctx, const struct marshal_cmd_BindFragDataLocationIndexed *cmd, const uint64_t *last)
3471 GLuint program = cmd->program;
3472 GLuint colorNumber = cmd->colorNumber;
3473 GLuint index = cmd->index;
3475 const char *variable_data = (const char *) (cmd + 1);
3478 return cmd->cmd_base.cmd_size;
3486 struct marshal_cmd_BindFragDataLocationIndexed *cmd;
3492 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindFragDataLocationIndexed, cmd_size);
3493 cmd->program = program;
3494 cmd->colorNumber = colorNumber;
3495 cmd->index = index;
3496 char *variable_data = (char *) (cmd + 1);
3529 _mesa_unmarshal_DeleteSamplers(struct gl_context *ctx, const struct marshal_cmd_DeleteSamplers *cmd, const uint64_t *last)
3531 GLsizei count = cmd->count;
3533 const char *variable_data = (const char *) (cmd + 1);
3536 return cmd->cmd_base.cmd_size;
3544 struct marshal_cmd_DeleteSamplers *cmd;
3550 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteSamplers, cmd_size);
3551 cmd->count = count;
3552 char *variable_data = (char *) (cmd + 1);
3575 _mesa_unmarshal_BindSampler(struct gl_context *ctx, const struct marshal_cmd_BindSampler *cmd, const uint64_t *last)
3577 GLuint unit = cmd->unit;
3578 GLuint sampler = cmd->sampler;
3581 assert (cmd_size == cmd->cmd_base.cmd_size);
3589 struct marshal_cmd_BindSampler *cmd;
3590 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindSampler, cmd_size);
3591 cmd->unit = unit;
3592 cmd->sampler = sampler;
3605 _mesa_unmarshal_SamplerParameteri(struct gl_context *ctx, const struct marshal_cmd_SamplerParameteri *cmd, const uint64_t *last)
3607 GLuint sampler = cmd->sampler;
3608 GLenum pname = cmd->pname;
3609 GLint param = cmd->param;
3612 assert (cmd_size == cmd->cmd_base.cmd_size);
3620 struct marshal_cmd_SamplerParameteri *cmd;
3621 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SamplerParameteri, cmd_size);
3622 cmd->sampler = sampler;
3623 cmd->pname = pname;
3624 cmd->param = param;
3637 _mesa_unmarshal_SamplerParameterf(struct gl_context *ctx, const struct marshal_cmd_SamplerParameterf *cmd, const uint64_t *last)
3639 GLuint sampler = cmd->sampler;
3640 GLenum pname = cmd->pname;
3641 GLfloat param = cmd->param;
3644 assert (cmd_size == cmd->cmd_base.cmd_size);
3652 struct marshal_cmd_SamplerParameterf *cmd;
3653 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SamplerParameterf, cmd_size);
3654 cmd->sampler = sampler;
3655 cmd->pname = pname;
3656 cmd->param = param;
3669 _mesa_unmarshal_SamplerParameteriv(struct gl_context *ctx, const struct marshal_cmd_SamplerParameteriv *cmd, const uint64_t *last)
3671 GLuint sampler = cmd->sampler;
3672 GLenum pname = cmd->pname;
3674 const char *variable_data = (const char *) (cmd + 1);
3677 return cmd->cmd_base.cmd_size;
3685 struct marshal_cmd_SamplerParameteriv *cmd;
3691 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SamplerParameteriv, cmd_size);
3692 cmd->sampler = sampler;
3693 cmd->pname = pname;
3694 char *variable_data = (char *) (cmd + 1);
3708 _mesa_unmarshal_SamplerParameterfv(struct gl_context *ctx, const struct marshal_cmd_SamplerParameterfv *cmd, const uint64_t *last)
3710 GLuint sampler = cmd->sampler;
3711 GLenum pname = cmd->pname;
3713 const char *variable_data = (const char *) (cmd + 1);
3716 return cmd->cmd_base.cmd_size;
3724 struct marshal_cmd_SamplerParameterfv *cmd;
3730 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SamplerParameterfv, cmd_size);
3731 cmd->sampler = sampler;
3732 cmd->pname = pname;
3733 char *variable_data = (char *) (cmd + 1);
3747 _mesa_unmarshal_SamplerParameterIiv(struct gl_context *ctx, const struct marshal_cmd_SamplerParameterIiv *cmd, const uint64_t *last)
3749 GLuint sampler = cmd->sampler;
3750 GLenum pname = cmd->pname;
3752 const char *variable_data = (const char *) (cmd + 1);
3755 return cmd->cmd_base.cmd_size;
3763 struct marshal_cmd_SamplerParameterIiv *cmd;
3769 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SamplerParameterIiv, cmd_size);
3770 cmd->sampler = sampler;
3771 cmd->pname = pname;
3772 char *variable_data = (char *) (cmd + 1);
3786 _mesa_unmarshal_SamplerParameterIuiv(struct gl_context *ctx, const struct marshal_cmd_SamplerParameterIuiv *cmd, const uint64_t *last)
3788 GLuint sampler = cmd->sampler;
3789 GLenum pname = cmd->pname;
3791 const char *variable_data = (const char *) (cmd + 1);
3794 return cmd->cmd_base.cmd_size;
3802 struct marshal_cmd_SamplerParameterIuiv *cmd;
3808 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SamplerParameterIuiv, cmd_size);
3809 cmd->sampler = sampler;
3810 cmd->pname = pname;
3811 char *variable_data = (char *) (cmd + 1);
3884 _mesa_unmarshal_QueryCounter(struct gl_context *ctx, const struct marshal_cmd_QueryCounter *cmd, const uint64_t *last)
3886 GLuint id = cmd->id;
3887 GLenum target = cmd->target;
3890 assert (cmd_size == cmd->cmd_base.cmd_size);
3898 struct marshal_cmd_QueryCounter *cmd;
3899 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_QueryCounter, cmd_size);
3900 cmd->id = id;
3901 cmd->target = target;
3913 _mesa_unmarshal_VertexP2ui(struct gl_context *ctx, const struct marshal_cmd_VertexP2ui *cmd, const uint64_t *last)
3915 GLenum type = cmd->type;
3916 GLuint value = cmd->value;
3919 assert (cmd_size == cmd->cmd_base.cmd_size);
3927 struct marshal_cmd_VertexP2ui *cmd;
3928 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexP2ui, cmd_size);
3929 cmd->type = type;
3930 cmd->value = value;
3942 _mesa_unmarshal_VertexP3ui(struct gl_context *ctx, const struct marshal_cmd_VertexP3ui *cmd, const uint64_t *last)
3944 GLenum type = cmd->type;
3945 GLuint value = cmd->value;
3948 assert (cmd_size == cmd->cmd_base.cmd_size);
3956 struct marshal_cmd_VertexP3ui *cmd;
3957 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexP3ui, cmd_size);
3958 cmd->type = type;
3959 cmd->value = value;
3971 _mesa_unmarshal_VertexP4ui(struct gl_context *ctx, const struct marshal_cmd_VertexP4ui *cmd, const uint64_t *last)
3973 GLenum type = cmd->type;
3974 GLuint value = cmd->value;
3977 assert (cmd_size == cmd->cmd_base.cmd_size);
3985 struct marshal_cmd_VertexP4ui *cmd;
3986 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexP4ui, cmd_size);
3987 cmd->type = type;
3988 cmd->value = value;
4000 _mesa_unmarshal_VertexP2uiv(struct gl_context *ctx, const struct marshal_cmd_VertexP2uiv *cmd, const uint64_t *last)
4002 GLenum type = cmd->type;
4003 const GLuint * value = cmd->value;
4006 assert (cmd_size == cmd->cmd_base.cmd_size);
4014 struct marshal_cmd_VertexP2uiv *cmd;
4015 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexP2uiv, cmd_size);
4016 cmd->type = type;
4017 memcpy(cmd->value, value, 1 * sizeof(GLuint));
4029 _mesa_unmarshal_VertexP3uiv(struct gl_context *ctx, const struct marshal_cmd_VertexP3uiv *cmd, const uint64_t *last)
4031 GLenum type = cmd->type;
4032 const GLuint * value = cmd->value;
4035 assert (cmd_size == cmd->cmd_base.cmd_size);
4043 struct marshal_cmd_VertexP3uiv *cmd;
4044 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexP3uiv, cmd_size);
4045 cmd->type = type;
4046 memcpy(cmd->value, value, 1 * sizeof(GLuint));
4058 _mesa_unmarshal_VertexP4uiv(struct gl_context *ctx, const struct marshal_cmd_VertexP4uiv *cmd, const uint64_t *last)
4060 GLenum type = cmd->type;
4061 const GLuint * value = cmd->value;
4064 assert (cmd_size == cmd->cmd_base.cmd_size);
4072 struct marshal_cmd_VertexP4uiv *cmd;
4073 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexP4uiv, cmd_size);
4074 cmd->type = type;
4075 memcpy(cmd->value, value, 1 * sizeof(GLuint));
4087 _mesa_unmarshal_TexCoordP1ui(struct gl_context *ctx, const struct marshal_cmd_TexCoordP1ui *cmd, const uint64_t *last)
4089 GLenum type = cmd->type;
4090 GLuint coords = cmd->coords;
4093 assert (cmd_size == cmd->cmd_base.cmd_size);
4101 struct marshal_cmd_TexCoordP1ui *cmd;
4102 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP1ui, cmd_size);
4103 cmd->type = type;
4104 cmd->coords = coords;
4116 _mesa_unmarshal_TexCoordP2ui(struct gl_context *ctx, const struct marshal_cmd_TexCoordP2ui *cmd, const uint64_t *last)
4118 GLenum type = cmd->type;
4119 GLuint coords = cmd->coords;
4122 assert (cmd_size == cmd->cmd_base.cmd_size);
4130 struct marshal_cmd_TexCoordP2ui *cmd;
4131 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP2ui, cmd_size);
4132 cmd->type = type;
4133 cmd->coords = coords;
4145 _mesa_unmarshal_TexCoordP3ui(struct gl_context *ctx, const struct marshal_cmd_TexCoordP3ui *cmd, const uint64_t *last)
4147 GLenum type = cmd->type;
4148 GLuint coords = cmd->coords;
4151 assert (cmd_size == cmd->cmd_base.cmd_size);
4159 struct marshal_cmd_TexCoordP3ui *cmd;
4160 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP3ui, cmd_size);
4161 cmd->type = type;
4162 cmd->coords = coords;
4174 _mesa_unmarshal_TexCoordP4ui(struct gl_context *ctx, const struct marshal_cmd_TexCoordP4ui *cmd, const uint64_t *last)
4176 GLenum type = cmd->type;
4177 GLuint coords = cmd->coords;
4180 assert (cmd_size == cmd->cmd_base.cmd_size);
4188 struct marshal_cmd_TexCoordP4ui *cmd;
4189 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP4ui, cmd_size);
4190 cmd->type = type;
4191 cmd->coords = coords;
4203 _mesa_unmarshal_TexCoordP1uiv(struct gl_context *ctx, const struct marshal_cmd_TexCoordP1uiv *cmd, const uint64_t *last)
4205 GLenum type = cmd->type;
4206 const GLuint * coords = cmd->coords;
4209 assert (cmd_size == cmd->cmd_base.cmd_size);
4217 struct marshal_cmd_TexCoordP1uiv *cmd;
4218 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP1uiv, cmd_size);
4219 cmd->type = type;
4220 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4232 _mesa_unmarshal_TexCoordP2uiv(struct gl_context *ctx, const struct marshal_cmd_TexCoordP2uiv *cmd, const uint64_t *last)
4234 GLenum type = cmd->type;
4235 const GLuint * coords = cmd->coords;
4238 assert (cmd_size == cmd->cmd_base.cmd_size);
4246 struct marshal_cmd_TexCoordP2uiv *cmd;
4247 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP2uiv, cmd_size);
4248 cmd->type = type;
4249 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4261 _mesa_unmarshal_TexCoordP3uiv(struct gl_context *ctx, const struct marshal_cmd_TexCoordP3uiv *cmd, const uint64_t *last)
4263 GLenum type = cmd->type;
4264 const GLuint * coords = cmd->coords;
4267 assert (cmd_size == cmd->cmd_base.cmd_size);
4275 struct marshal_cmd_TexCoordP3uiv *cmd;
4276 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP3uiv, cmd_size);
4277 cmd->type = type;
4278 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4290 _mesa_unmarshal_TexCoordP4uiv(struct gl_context *ctx, const struct marshal_cmd_TexCoordP4uiv *cmd, const uint64_t *last)
4292 GLenum type = cmd->type;
4293 const GLuint * coords = cmd->coords;
4296 assert (cmd_size == cmd->cmd_base.cmd_size);
4304 struct marshal_cmd_TexCoordP4uiv *cmd;
4305 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoordP4uiv, cmd_size);
4306 cmd->type = type;
4307 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4320 _mesa_unmarshal_MultiTexCoordP1ui(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP1ui *cmd, const uint64_t *last)
4322 GLenum texture = cmd->texture;
4323 GLenum type = cmd->type;
4324 GLuint coords = cmd->coords;
4327 assert (cmd_size == cmd->cmd_base.cmd_size);
4335 struct marshal_cmd_MultiTexCoordP1ui *cmd;
4336 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP1ui, cmd_size);
4337 cmd->texture = texture;
4338 cmd->type = type;
4339 cmd->coords = coords;
4352 _mesa_unmarshal_MultiTexCoordP2ui(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP2ui *cmd, const uint64_t *last)
4354 GLenum texture = cmd->texture;
4355 GLenum type = cmd->type;
4356 GLuint coords = cmd->coords;
4359 assert (cmd_size == cmd->cmd_base.cmd_size);
4367 struct marshal_cmd_MultiTexCoordP2ui *cmd;
4368 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP2ui, cmd_size);
4369 cmd->texture = texture;
4370 cmd->type = type;
4371 cmd->coords = coords;
4384 _mesa_unmarshal_MultiTexCoordP3ui(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP3ui *cmd, const uint64_t *last)
4386 GLenum texture = cmd->texture;
4387 GLenum type = cmd->type;
4388 GLuint coords = cmd->coords;
4391 assert (cmd_size == cmd->cmd_base.cmd_size);
4399 struct marshal_cmd_MultiTexCoordP3ui *cmd;
4400 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP3ui, cmd_size);
4401 cmd->texture = texture;
4402 cmd->type = type;
4403 cmd->coords = coords;
4416 _mesa_unmarshal_MultiTexCoordP4ui(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP4ui *cmd, const uint64_t *last)
4418 GLenum texture = cmd->texture;
4419 GLenum type = cmd->type;
4420 GLuint coords = cmd->coords;
4423 assert (cmd_size == cmd->cmd_base.cmd_size);
4431 struct marshal_cmd_MultiTexCoordP4ui *cmd;
4432 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP4ui, cmd_size);
4433 cmd->texture = texture;
4434 cmd->type = type;
4435 cmd->coords = coords;
4448 _mesa_unmarshal_MultiTexCoordP1uiv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP1uiv *cmd, const uint64_t *last)
4450 GLenum texture = cmd->texture;
4451 GLenum type = cmd->type;
4452 const GLuint * coords = cmd->coords;
4455 assert (cmd_size == cmd->cmd_base.cmd_size);
4463 struct marshal_cmd_MultiTexCoordP1uiv *cmd;
4464 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP1uiv, cmd_size);
4465 cmd->texture = texture;
4466 cmd->type = type;
4467 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4480 _mesa_unmarshal_MultiTexCoordP2uiv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP2uiv *cmd, const uint64_t *last)
4482 GLenum texture = cmd->texture;
4483 GLenum type = cmd->type;
4484 const GLuint * coords = cmd->coords;
4487 assert (cmd_size == cmd->cmd_base.cmd_size);
4495 struct marshal_cmd_MultiTexCoordP2uiv *cmd;
4496 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP2uiv, cmd_size);
4497 cmd->texture = texture;
4498 cmd->type = type;
4499 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4512 _mesa_unmarshal_MultiTexCoordP3uiv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP3uiv *cmd, const uint64_t *last)
4514 GLenum texture = cmd->texture;
4515 GLenum type = cmd->type;
4516 const GLuint * coords = cmd->coords;
4519 assert (cmd_size == cmd->cmd_base.cmd_size);
4527 struct marshal_cmd_MultiTexCoordP3uiv *cmd;
4528 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP3uiv, cmd_size);
4529 cmd->texture = texture;
4530 cmd->type = type;
4531 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4544 _mesa_unmarshal_MultiTexCoordP4uiv(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoordP4uiv *cmd, const uint64_t *last)
4546 GLenum texture = cmd->texture;
4547 GLenum type = cmd->type;
4548 const GLuint * coords = cmd->coords;
4551 assert (cmd_size == cmd->cmd_base.cmd_size);
4559 struct marshal_cmd_MultiTexCoordP4uiv *cmd;
4560 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoordP4uiv, cmd_size);
4561 cmd->texture = texture;
4562 cmd->type = type;
4563 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4575 _mesa_unmarshal_NormalP3ui(struct gl_context *ctx, const struct marshal_cmd_NormalP3ui *cmd, const uint64_t *last)
4577 GLenum type = cmd->type;
4578 GLuint coords = cmd->coords;
4581 assert (cmd_size == cmd->cmd_base.cmd_size);
4589 struct marshal_cmd_NormalP3ui *cmd;
4590 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NormalP3ui, cmd_size);
4591 cmd->type = type;
4592 cmd->coords = coords;
4604 _mesa_unmarshal_NormalP3uiv(struct gl_context *ctx, const struct marshal_cmd_NormalP3uiv *cmd, const uint64_t *last)
4606 GLenum type = cmd->type;
4607 const GLuint * coords = cmd->coords;
4610 assert (cmd_size == cmd->cmd_base.cmd_size);
4618 struct marshal_cmd_NormalP3uiv *cmd;
4619 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NormalP3uiv, cmd_size);
4620 cmd->type = type;
4621 memcpy(cmd->coords, coords, 1 * sizeof(GLuint));
4633 _mesa_unmarshal_ColorP3ui(struct gl_context *ctx, const struct marshal_cmd_ColorP3ui *cmd, const uint64_t *last)
4635 GLenum type = cmd->type;
4636 GLuint color = cmd->color;
4639 assert (cmd_size == cmd->cmd_base.cmd_size);
4647 struct marshal_cmd_ColorP3ui *cmd;
4648 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ColorP3ui, cmd_size);
4649 cmd->type = type;
4650 cmd->color = color;
4662 _mesa_unmarshal_ColorP4ui(struct gl_context *ctx, const struct marshal_cmd_ColorP4ui *cmd, const uint64_t *last)
4664 GLenum type = cmd->type;
4665 GLuint color = cmd->color;
4668 assert (cmd_size == cmd->cmd_base.cmd_size);
4676 struct marshal_cmd_ColorP4ui *cmd;
4677 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ColorP4ui, cmd_size);
4678 cmd->type = type;
4679 cmd->color = color;
4691 _mesa_unmarshal_ColorP3uiv(struct gl_context *ctx, const struct marshal_cmd_ColorP3uiv *cmd, const uint64_t *last)
4693 GLenum type = cmd->type;
4694 const GLuint * color = cmd->color;
4697 assert (cmd_size == cmd->cmd_base.cmd_size);
4705 struct marshal_cmd_ColorP3uiv *cmd;
4706 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ColorP3uiv, cmd_size);
4707 cmd->type = type;
4708 memcpy(cmd->color, color, 1 * sizeof(GLuint));
4720 _mesa_unmarshal_ColorP4uiv(struct gl_context *ctx, const struct marshal_cmd_ColorP4uiv *cmd, const uint64_t *last)
4722 GLenum type = cmd->type;
4723 const GLuint * color = cmd->color;
4726 assert (cmd_size == cmd->cmd_base.cmd_size);
4734 struct marshal_cmd_ColorP4uiv *cmd;
4735 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ColorP4uiv, cmd_size);
4736 cmd->type = type;
4737 memcpy(cmd->color, color, 1 * sizeof(GLuint));
4749 _mesa_unmarshal_SecondaryColorP3ui(struct gl_context *ctx, const struct marshal_cmd_SecondaryColorP3ui *cmd, const uint64_t *last)
4751 GLenum type = cmd->type;
4752 GLuint color = cmd->color;
4755 assert (cmd_size == cmd->cmd_base.cmd_size);
4763 struct marshal_cmd_SecondaryColorP3ui *cmd;
4764 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColorP3ui, cmd_size);
4765 cmd->type = type;
4766 cmd->color = color;
4778 _mesa_unmarshal_SecondaryColorP3uiv(struct gl_context *ctx, const struct marshal_cmd_SecondaryColorP3uiv *cmd, const uint64_t *last)
4780 GLenum type = cmd->type;
4781 const GLuint * color = cmd->color;
4784 assert (cmd_size == cmd->cmd_base.cmd_size);
4792 struct marshal_cmd_SecondaryColorP3uiv *cmd;
4793 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColorP3uiv, cmd_size);
4794 cmd->type = type;
4795 memcpy(cmd->color, color, 1 * sizeof(GLuint));
4809 _mesa_unmarshal_VertexAttribP1ui(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP1ui *cmd, const uint64_t *last)
4811 GLuint index = cmd->index;
4812 GLenum type = cmd->type;
4813 GLboolean normalized = cmd->normalized;
4814 GLuint value = cmd->value;
4817 assert (cmd_size == cmd->cmd_base.cmd_size);
4825 struct marshal_cmd_VertexAttribP1ui *cmd;
4826 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP1ui, cmd_size);
4827 cmd->index = index;
4828 cmd->type = type;
4829 cmd->normalized = normalized;
4830 cmd->value = value;
4844 _mesa_unmarshal_VertexAttribP2ui(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP2ui *cmd, const uint64_t *last)
4846 GLuint index = cmd->index;
4847 GLenum type = cmd->type;
4848 GLboolean normalized = cmd->normalized;
4849 GLuint value = cmd->value;
4852 assert (cmd_size == cmd->cmd_base.cmd_size);
4860 struct marshal_cmd_VertexAttribP2ui *cmd;
4861 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP2ui, cmd_size);
4862 cmd->index = index;
4863 cmd->type = type;
4864 cmd->normalized = normalized;
4865 cmd->value = value;
4879 _mesa_unmarshal_VertexAttribP3ui(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP3ui *cmd, const uint64_t *last)
4881 GLuint index = cmd->index;
4882 GLenum type = cmd->type;
4883 GLboolean normalized = cmd->normalized;
4884 GLuint value = cmd->value;
4887 assert (cmd_size == cmd->cmd_base.cmd_size);
4895 struct marshal_cmd_VertexAttribP3ui *cmd;
4896 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP3ui, cmd_size);
4897 cmd->index = index;
4898 cmd->type = type;
4899 cmd->normalized = normalized;
4900 cmd->value = value;
4914 _mesa_unmarshal_VertexAttribP4ui(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP4ui *cmd, const uint64_t *last)
4916 GLuint index = cmd->index;
4917 GLenum type = cmd->type;
4918 GLboolean normalized = cmd->normalized;
4919 GLuint value = cmd->value;
4922 assert (cmd_size == cmd->cmd_base.cmd_size);
4930 struct marshal_cmd_VertexAttribP4ui *cmd;
4931 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP4ui, cmd_size);
4932 cmd->index = index;
4933 cmd->type = type;
4934 cmd->normalized = normalized;
4935 cmd->value = value;
4949 _mesa_unmarshal_VertexAttribP1uiv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP1uiv *cmd, const uint64_t *last)
4951 GLuint index = cmd->index;
4952 GLenum type = cmd->type;
4953 GLboolean normalized = cmd->normalized;
4954 const GLuint * value = cmd->value;
4957 assert (cmd_size == cmd->cmd_base.cmd_size);
4965 struct marshal_cmd_VertexAttribP1uiv *cmd;
4966 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP1uiv, cmd_size);
4967 cmd->index = index;
4968 cmd->type = type;
4969 cmd->normalized = normalized;
4970 memcpy(cmd->value, value, 1 * sizeof(GLuint));
4984 _mesa_unmarshal_VertexAttribP2uiv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP2uiv *cmd, const uint64_t *last)
4986 GLuint index = cmd->index;
4987 GLenum type = cmd->type;
4988 GLboolean normalized = cmd->normalized;
4989 const GLuint * value = cmd->value;
4992 assert (cmd_size == cmd->cmd_base.cmd_size);
5000 struct marshal_cmd_VertexAttribP2uiv *cmd;
5001 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP2uiv, cmd_size);
5002 cmd->index = index;
5003 cmd->type = type;
5004 cmd->normalized = normalized;
5005 memcpy(cmd->value, value, 1 * sizeof(GLuint));
5019 _mesa_unmarshal_VertexAttribP3uiv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP3uiv *cmd, const uint64_t *last)
5021 GLuint index = cmd->index;
5022 GLenum type = cmd->type;
5023 GLboolean normalized = cmd->normalized;
5024 const GLuint * value = cmd->value;
5027 assert (cmd_size == cmd->cmd_base.cmd_size);
5035 struct marshal_cmd_VertexAttribP3uiv *cmd;
5036 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP3uiv, cmd_size);
5037 cmd->index = index;
5038 cmd->type = type;
5039 cmd->normalized = normalized;
5040 memcpy(cmd->value, value, 1 * sizeof(GLuint));
5054 _mesa_unmarshal_VertexAttribP4uiv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribP4uiv *cmd, const uint64_t *last)
5056 GLuint index = cmd->index;
5057 GLenum type = cmd->type;
5058 GLboolean normalized = cmd->normalized;
5059 const GLuint * value = cmd->value;
5062 assert (cmd_size == cmd->cmd_base.cmd_size);
5070 struct marshal_cmd_VertexAttribP4uiv *cmd;
5071 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribP4uiv, cmd_size);
5072 cmd->index = index;
5073 cmd->type = type;
5074 cmd->normalized = normalized;
5075 memcpy(cmd->value, value, 1 * sizeof(GLuint));
5138 _mesa_unmarshal_UniformSubroutinesuiv(struct gl_context *ctx, const struct marshal_cmd_UniformSubroutinesuiv *cmd, const uint64_t *last)
5140 GLenum shadertype = cmd->shadertype;
5141 GLsizei count = cmd->count;
5143 const char *variable_data = (const char *) (cmd + 1);
5146 return cmd->cmd_base.cmd_size;
5154 struct marshal_cmd_UniformSubroutinesuiv *cmd;
5160 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformSubroutinesuiv, cmd_size);
5161 cmd->shadertype = shadertype;
5162 cmd->count = count;
5163 char *variable_data = (char *) (cmd + 1);
5196 _mesa_unmarshal_PatchParameteri(struct gl_context *ctx, const struct marshal_cmd_PatchParameteri *cmd, const uint64_t *last)
5198 GLenum pname = cmd->pname;
5199 GLint value = cmd->value;
5202 assert (cmd_size == cmd->cmd_base.cmd_size);
5210 struct marshal_cmd_PatchParameteri *cmd;
5211 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PatchParameteri, cmd_size);
5212 cmd->pname = pname;
5213 cmd->value = value;
5225 _mesa_unmarshal_PatchParameterfv(struct gl_context *ctx, const struct marshal_cmd_PatchParameterfv *cmd, const uint64_t *last)
5227 GLenum pname = cmd->pname;
5229 const char *variable_data = (const char *) (cmd + 1);
5232 return cmd->cmd_base.cmd_size;
5240 struct marshal_cmd_PatchParameterfv *cmd;
5246 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PatchParameterfv, cmd_size);
5247 cmd->pname = pname;
5248 char *variable_data = (char *) (cmd + 1);
5261 _mesa_unmarshal_DrawArraysIndirect(struct gl_context *ctx, const struct marshal_cmd_DrawArraysIndirect *cmd, const uint64_t *last)
5263 GLenum mode = cmd->mode;
5264 const GLvoid * indirect = cmd->indirect;
5267 assert (cmd_size == cmd->cmd_base.cmd_size);
5275 struct marshal_cmd_DrawArraysIndirect *cmd;
5281 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawArraysIndirect, cmd_size);
5282 cmd->mode = mode;
5283 cmd->indirect = indirect;
5296 _mesa_unmarshal_DrawElementsIndirect(struct gl_context *ctx, const struct marshal_cmd_DrawElementsIndirect *cmd, const uint64_t *last)
5298 GLenum mode = cmd->mode;
5299 GLenum type = cmd->type;
5300 const GLvoid * indirect = cmd->indirect;
5303 assert (cmd_size == cmd->cmd_base.cmd_size);
5311 struct marshal_cmd_DrawElementsIndirect *cmd;
5317 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawElementsIndirect, cmd_size);
5318 cmd->mode = mode;
5319 cmd->type = type;
5320 cmd->indirect = indirect;
5334 _mesa_unmarshal_MultiDrawArraysIndirect(struct gl_context *ctx, const struct marshal_cmd_MultiDrawArraysIndirect *cmd, const uint64_t *last)
5336 GLenum mode = cmd->mode;
5337 const GLvoid * indirect = cmd->indirect;
5338 GLsizei primcount = cmd->primcount;
5339 GLsizei stride = cmd->stride;
5342 assert (cmd_size == cmd->cmd_base.cmd_size);
5350 struct marshal_cmd_MultiDrawArraysIndirect *cmd;
5356 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiDrawArraysIndirect, cmd_size);
5357 cmd->mode = mode;
5358 cmd->indirect = indirect;
5359 cmd->primcount = primcount;
5360 cmd->stride = stride;
5375 _mesa_unmarshal_MultiDrawElementsIndirect(struct gl_context *ctx, const struct marshal_cmd_MultiDrawElementsIndirect *cmd, const uint64_t *last)
5377 GLenum mode = cmd->mode;
5378 GLenum type = cmd->type;
5379 const GLvoid * indirect = cmd->indirect;
5380 GLsizei primcount = cmd->primcount;
5381 GLsizei stride = cmd->stride;
5384 assert (cmd_size == cmd->cmd_base.cmd_size);
5392 struct marshal_cmd_MultiDrawElementsIndirect *cmd;
5398 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiDrawElementsIndirect, cmd_size);
5399 cmd->mode = mode;
5400 cmd->type = type;
5401 cmd->indirect = indirect;
5402 cmd->primcount = primcount;
5403 cmd->stride = stride;
5415 _mesa_unmarshal_Uniform1d(struct gl_context *ctx, const struct marshal_cmd_Uniform1d *cmd, const uint64_t *last)
5417 GLint location = cmd->location;
5418 GLdouble x = cmd->x;
5421 assert (cmd_size == cmd->cmd_base.cmd_size);
5429 struct marshal_cmd_Uniform1d *cmd;
5430 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1d, cmd_size);
5431 cmd->location = location;
5432 cmd->x = x;
5445 _mesa_unmarshal_Uniform2d(struct gl_context *ctx, const struct marshal_cmd_Uniform2d *cmd, const uint64_t *last)
5447 GLint location = cmd->location;
5448 GLdouble x = cmd->x;
5449 GLdouble y = cmd->y;
5452 assert (cmd_size == cmd->cmd_base.cmd_size);
5460 struct marshal_cmd_Uniform2d *cmd;
5461 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2d, cmd_size);
5462 cmd->location = location;
5463 cmd->x = x;
5464 cmd->y = y;
5478 _mesa_unmarshal_Uniform3d(struct gl_context *ctx, const struct marshal_cmd_Uniform3d *cmd, const uint64_t *last)
5480 GLint location = cmd->location;
5481 GLdouble x = cmd->x;
5482 GLdouble y = cmd->y;
5483 GLdouble z = cmd->z;
5486 assert (cmd_size == cmd->cmd_base.cmd_size);
5494 struct marshal_cmd_Uniform3d *cmd;
5495 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3d, cmd_size);
5496 cmd->location = location;
5497 cmd->x = x;
5498 cmd->y = y;
5499 cmd->z = z;
5514 _mesa_unmarshal_Uniform4d(struct gl_context *ctx, const struct marshal_cmd_Uniform4d *cmd, const uint64_t *last)
5516 GLint location = cmd->location;
5517 GLdouble x = cmd->x;
5518 GLdouble y = cmd->y;
5519 GLdouble z = cmd->z;
5520 GLdouble w = cmd->w;
5523 assert (cmd_size == cmd->cmd_base.cmd_size);
5531 struct marshal_cmd_Uniform4d *cmd;
5532 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4d, cmd_size);
5533 cmd->location = location;
5534 cmd->x = x;
5535 cmd->y = y;
5536 cmd->z = z;
5537 cmd->w = w;
5550 _mesa_unmarshal_Uniform1dv(struct gl_context *ctx, const struct marshal_cmd_Uniform1dv *cmd, const uint64_t *last)
5552 GLint location = cmd->location;
5553 GLsizei count = cmd->count;
5555 const char *variable_data = (const char *) (cmd + 1);
5558 return cmd->cmd_base.cmd_size;
5566 struct marshal_cmd_Uniform1dv *cmd;
5572 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1dv, cmd_size);
5573 cmd->location = location;
5574 cmd->count = count;
5575 char *variable_data = (char *) (cmd + 1);
5589 _mesa_unmarshal_Uniform2dv(struct gl_context *ctx, const struct marshal_cmd_Uniform2dv *cmd, const uint64_t *last)
5591 GLint location = cmd->location;
5592 GLsizei count = cmd->count;
5594 const char *variable_data = (const char *) (cmd + 1);
5597 return cmd->cmd_base.cmd_size;
5605 struct marshal_cmd_Uniform2dv *cmd;
5611 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2dv, cmd_size);
5612 cmd->location = location;
5613 cmd->count = count;
5614 char *variable_data = (char *) (cmd + 1);
5628 _mesa_unmarshal_Uniform3dv(struct gl_context *ctx, const struct marshal_cmd_Uniform3dv *cmd, const uint64_t *last)
5630 GLint location = cmd->location;
5631 GLsizei count = cmd->count;
5633 const char *variable_data = (const char *) (cmd + 1);
5636 return cmd->cmd_base.cmd_size;
5644 struct marshal_cmd_Uniform3dv *cmd;
5650 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3dv, cmd_size);
5651 cmd->location = location;
5652 cmd->count = count;
5653 char *variable_data = (char *) (cmd + 1);
5667 _mesa_unmarshal_Uniform4dv(struct gl_context *ctx, const struct marshal_cmd_Uniform4dv *cmd, const uint64_t *last)
5669 GLint location = cmd->location;
5670 GLsizei count = cmd->count;
5672 const char *variable_data = (const char *) (cmd + 1);
5675 return cmd->cmd_base.cmd_size;
5683 struct marshal_cmd_Uniform4dv *cmd;
5689 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4dv, cmd_size);
5690 cmd->location = location;
5691 cmd->count = count;
5692 char *variable_data = (char *) (cmd + 1);
5707 _mesa_unmarshal_UniformMatrix2dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix2dv *cmd, const uint64_t *last)
5709 GLint location = cmd->location;
5710 GLsizei count = cmd->count;
5711 GLboolean transpose = cmd->transpose;
5713 const char *variable_data = (const char *) (cmd + 1);
5716 return cmd->cmd_base.cmd_size;
5724 struct marshal_cmd_UniformMatrix2dv *cmd;
5730 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix2dv, cmd_size);
5731 cmd->location = location;
5732 cmd->count = count;
5733 cmd->transpose = transpose;
5734 char *variable_data = (char *) (cmd + 1);
5749 _mesa_unmarshal_UniformMatrix3dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix3dv *cmd, const uint64_t *last)
5751 GLint location = cmd->location;
5752 GLsizei count = cmd->count;
5753 GLboolean transpose = cmd->transpose;
5755 const char *variable_data = (const char *) (cmd + 1);
5758 return cmd->cmd_base.cmd_size;
5766 struct marshal_cmd_UniformMatrix3dv *cmd;
5772 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix3dv, cmd_size);
5773 cmd->location = location;
5774 cmd->count = count;
5775 cmd->transpose = transpose;
5776 char *variable_data = (char *) (cmd + 1);
5791 _mesa_unmarshal_UniformMatrix4dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix4dv *cmd, const uint64_t *last)
5793 GLint location = cmd->location;
5794 GLsizei count = cmd->count;
5795 GLboolean transpose = cmd->transpose;
5797 const char *variable_data = (const char *) (cmd + 1);
5800 return cmd->cmd_base.cmd_size;
5808 struct marshal_cmd_UniformMatrix4dv *cmd;
5814 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix4dv, cmd_size);
5815 cmd->location = location;
5816 cmd->count = count;
5817 cmd->transpose = transpose;
5818 char *variable_data = (char *) (cmd + 1);
5833 _mesa_unmarshal_UniformMatrix2x3dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix2x3dv *cmd, const uint64_t *last)
5835 GLint location = cmd->location;
5836 GLsizei count = cmd->count;
5837 GLboolean transpose = cmd->transpose;
5839 const char *variable_data = (const char *) (cmd + 1);
5842 return cmd->cmd_base.cmd_size;
5850 struct marshal_cmd_UniformMatrix2x3dv *cmd;
5856 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix2x3dv, cmd_size);
5857 cmd->location = location;
5858 cmd->count = count;
5859 cmd->transpose = transpose;
5860 char *variable_data = (char *) (cmd + 1);
5875 _mesa_unmarshal_UniformMatrix2x4dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix2x4dv *cmd, const uint64_t *last)
5877 GLint location = cmd->location;
5878 GLsizei count = cmd->count;
5879 GLboolean transpose = cmd->transpose;
5881 const char *variable_data = (const char *) (cmd + 1);
5884 return cmd->cmd_base.cmd_size;
5892 struct marshal_cmd_UniformMatrix2x4dv *cmd;
5898 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix2x4dv, cmd_size);
5899 cmd->location = location;
5900 cmd->count = count;
5901 cmd->transpose = transpose;
5902 char *variable_data = (char *) (cmd + 1);
5917 _mesa_unmarshal_UniformMatrix3x2dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix3x2dv *cmd, const uint64_t *last)
5919 GLint location = cmd->location;
5920 GLsizei count = cmd->count;
5921 GLboolean transpose = cmd->transpose;
5923 const char *variable_data = (const char *) (cmd + 1);
5926 return cmd->cmd_base.cmd_size;
5934 struct marshal_cmd_UniformMatrix3x2dv *cmd;
5940 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix3x2dv, cmd_size);
5941 cmd->location = location;
5942 cmd->count = count;
5943 cmd->transpose = transpose;
5944 char *variable_data = (char *) (cmd + 1);
5959 _mesa_unmarshal_UniformMatrix3x4dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix3x4dv *cmd, const uint64_t *last)
5961 GLint location = cmd->location;
5962 GLsizei count = cmd->count;
5963 GLboolean transpose = cmd->transpose;
5965 const char *variable_data = (const char *) (cmd + 1);
5968 return cmd->cmd_base.cmd_size;
5976 struct marshal_cmd_UniformMatrix3x4dv *cmd;
5982 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix3x4dv, cmd_size);
5983 cmd->location = location;
5984 cmd->count = count;
5985 cmd->transpose = transpose;
5986 char *variable_data = (char *) (cmd + 1);
6001 _mesa_unmarshal_UniformMatrix4x2dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix4x2dv *cmd, const uint64_t *last)
6003 GLint location = cmd->location;
6004 GLsizei count = cmd->count;
6005 GLboolean transpose = cmd->transpose;
6007 const char *variable_data = (const char *) (cmd + 1);
6010 return cmd->cmd_base.cmd_size;
6018 struct marshal_cmd_UniformMatrix4x2dv *cmd;
6024 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix4x2dv, cmd_size);
6025 cmd->location = location;
6026 cmd->count = count;
6027 cmd->transpose = transpose;
6028 char *variable_data = (char *) (cmd + 1);
6043 _mesa_unmarshal_UniformMatrix4x3dv(struct gl_context *ctx, const struct marshal_cmd_UniformMatrix4x3dv *cmd, const uint64_t *last)
6045 GLint location = cmd->location;
6046 GLsizei count = cmd->count;
6047 GLboolean transpose = cmd->transpose;
6049 const char *variable_data = (const char *) (cmd + 1);
6052 return cmd->cmd_base.cmd_size;
6060 struct marshal_cmd_UniformMatrix4x3dv *cmd;
6066 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformMatrix4x3dv, cmd_size);
6067 cmd->location = location;
6068 cmd->count = count;
6069 cmd->transpose = transpose;
6070 char *variable_data = (char *) (cmd + 1);
6094 _mesa_unmarshal_ProgramUniform1d(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1d *cmd, const uint64_t *last)
6096 GLuint program = cmd->program;
6097 GLint location = cmd->location;
6098 GLdouble x = cmd->x;
6101 assert (cmd_size == cmd->cmd_base.cmd_size);
6109 struct marshal_cmd_ProgramUniform1d *cmd;
6110 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1d, cmd_size);
6111 cmd->program = program;
6112 cmd->location = location;
6113 cmd->x = x;
6127 _mesa_unmarshal_ProgramUniform2d(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2d *cmd, const uint64_t *last)
6129 GLuint program = cmd->program;
6130 GLint location = cmd->location;
6131 GLdouble x = cmd->x;
6132 GLdouble y = cmd->y;
6135 assert (cmd_size == cmd->cmd_base.cmd_size);
6143 struct marshal_cmd_ProgramUniform2d *cmd;
6144 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2d, cmd_size);
6145 cmd->program = program;
6146 cmd->location = location;
6147 cmd->x = x;
6148 cmd->y = y;
6163 _mesa_unmarshal_ProgramUniform3d(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3d *cmd, const uint64_t *last)
6165 GLuint program = cmd->program;
6166 GLint location = cmd->location;
6167 GLdouble x = cmd->x;
6168 GLdouble y = cmd->y;
6169 GLdouble z = cmd->z;
6172 assert (cmd_size == cmd->cmd_base.cmd_size);
6180 struct marshal_cmd_ProgramUniform3d *cmd;
6181 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3d, cmd_size);
6182 cmd->program = program;
6183 cmd->location = location;
6184 cmd->x = x;
6185 cmd->y = y;
6186 cmd->z = z;
6202 _mesa_unmarshal_ProgramUniform4d(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4d *cmd, const uint64_t *last)
6204 GLuint program = cmd->program;
6205 GLint location = cmd->location;
6206 GLdouble x = cmd->x;
6207 GLdouble y = cmd->y;
6208 GLdouble z = cmd->z;
6209 GLdouble w = cmd->w;
6212 assert (cmd_size == cmd->cmd_base.cmd_size);
6220 struct marshal_cmd_ProgramUniform4d *cmd;
6221 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4d, cmd_size);
6222 cmd->program = program;
6223 cmd->location = location;
6224 cmd->x = x;
6225 cmd->y = y;
6226 cmd->z = z;
6227 cmd->w = w;
6241 _mesa_unmarshal_ProgramUniform1dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1dv *cmd, const uint64_t *last)
6243 GLuint program = cmd->program;
6244 GLint location = cmd->location;
6245 GLsizei count = cmd->count;
6247 const char *variable_data = (const char *) (cmd + 1);
6250 return cmd->cmd_base.cmd_size;
6258 struct marshal_cmd_ProgramUniform1dv *cmd;
6264 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1dv, cmd_size);
6265 cmd->program = program;
6266 cmd->location = location;
6267 cmd->count = count;
6268 char *variable_data = (char *) (cmd + 1);
6283 _mesa_unmarshal_ProgramUniform2dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2dv *cmd, const uint64_t *last)
6285 GLuint program = cmd->program;
6286 GLint location = cmd->location;
6287 GLsizei count = cmd->count;
6289 const char *variable_data = (const char *) (cmd + 1);
6292 return cmd->cmd_base.cmd_size;
6300 struct marshal_cmd_ProgramUniform2dv *cmd;
6306 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2dv, cmd_size);
6307 cmd->program = program;
6308 cmd->location = location;
6309 cmd->count = count;
6310 char *variable_data = (char *) (cmd + 1);
6325 _mesa_unmarshal_ProgramUniform3dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3dv *cmd, const uint64_t *last)
6327 GLuint program = cmd->program;
6328 GLint location = cmd->location;
6329 GLsizei count = cmd->count;
6331 const char *variable_data = (const char *) (cmd + 1);
6334 return cmd->cmd_base.cmd_size;
6342 struct marshal_cmd_ProgramUniform3dv *cmd;
6348 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3dv, cmd_size);
6349 cmd->program = program;
6350 cmd->location = location;
6351 cmd->count = count;
6352 char *variable_data = (char *) (cmd + 1);
6367 _mesa_unmarshal_ProgramUniform4dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4dv *cmd, const uint64_t *last)
6369 GLuint program = cmd->program;
6370 GLint location = cmd->location;
6371 GLsizei count = cmd->count;
6373 const char *variable_data = (const char *) (cmd + 1);
6376 return cmd->cmd_base.cmd_size;
6384 struct marshal_cmd_ProgramUniform4dv *cmd;
6390 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4dv, cmd_size);
6391 cmd->program = program;
6392 cmd->location = location;
6393 cmd->count = count;
6394 char *variable_data = (char *) (cmd + 1);
6410 _mesa_unmarshal_ProgramUniformMatrix2dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix2dv *cmd, const uint64_t *last)
6412 GLuint program = cmd->program;
6413 GLint location = cmd->location;
6414 GLsizei count = cmd->count;
6415 GLboolean transpose = cmd->transpose;
6417 const char *variable_data = (const char *) (cmd + 1);
6420 return cmd->cmd_base.cmd_size;
6428 struct marshal_cmd_ProgramUniformMatrix2dv *cmd;
6434 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix2dv, cmd_size);
6435 cmd->program = program;
6436 cmd->location = location;
6437 cmd->count = count;
6438 cmd->transpose = transpose;
6439 char *variable_data = (char *) (cmd + 1);
6455 _mesa_unmarshal_ProgramUniformMatrix3dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix3dv *cmd, const uint64_t *last)
6457 GLuint program = cmd->program;
6458 GLint location = cmd->location;
6459 GLsizei count = cmd->count;
6460 GLboolean transpose = cmd->transpose;
6462 const char *variable_data = (const char *) (cmd + 1);
6465 return cmd->cmd_base.cmd_size;
6473 struct marshal_cmd_ProgramUniformMatrix3dv *cmd;
6479 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix3dv, cmd_size);
6480 cmd->program = program;
6481 cmd->location = location;
6482 cmd->count = count;
6483 cmd->transpose = transpose;
6484 char *variable_data = (char *) (cmd + 1);
6500 _mesa_unmarshal_ProgramUniformMatrix4dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix4dv *cmd, const uint64_t *last)
6502 GLuint program = cmd->program;
6503 GLint location = cmd->location;
6504 GLsizei count = cmd->count;
6505 GLboolean transpose = cmd->transpose;
6507 const char *variable_data = (const char *) (cmd + 1);
6510 return cmd->cmd_base.cmd_size;
6518 struct marshal_cmd_ProgramUniformMatrix4dv *cmd;
6524 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix4dv, cmd_size);
6525 cmd->program = program;
6526 cmd->location = location;
6527 cmd->count = count;
6528 cmd->transpose = transpose;
6529 char *variable_data = (char *) (cmd + 1);
6545 _mesa_unmarshal_ProgramUniformMatrix2x3dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix2x3dv *cmd, const uint64_t *last)
6547 GLuint program = cmd->program;
6548 GLint location = cmd->location;
6549 GLsizei count = cmd->count;
6550 GLboolean transpose = cmd->transpose;
6552 const char *variable_data = (const char *) (cmd + 1);
6555 return cmd->cmd_base.cmd_size;
6563 struct marshal_cmd_ProgramUniformMatrix2x3dv *cmd;
6569 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix2x3dv, cmd_size);
6570 cmd->program = program;
6571 cmd->location = location;
6572 cmd->count = count;
6573 cmd->transpose = transpose;
6574 char *variable_data = (char *) (cmd + 1);
6590 _mesa_unmarshal_ProgramUniformMatrix2x4dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix2x4dv *cmd, const uint64_t *last)
6592 GLuint program = cmd->program;
6593 GLint location = cmd->location;
6594 GLsizei count = cmd->count;
6595 GLboolean transpose = cmd->transpose;
6597 const char *variable_data = (const char *) (cmd + 1);
6600 return cmd->cmd_base.cmd_size;
6608 struct marshal_cmd_ProgramUniformMatrix2x4dv *cmd;
6614 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix2x4dv, cmd_size);
6615 cmd->program = program;
6616 cmd->location = location;
6617 cmd->count = count;
6618 cmd->transpose = transpose;
6619 char *variable_data = (char *) (cmd + 1);
6635 _mesa_unmarshal_ProgramUniformMatrix3x2dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix3x2dv *cmd, const uint64_t *last)
6637 GLuint program = cmd->program;
6638 GLint location = cmd->location;
6639 GLsizei count = cmd->count;
6640 GLboolean transpose = cmd->transpose;
6642 const char *variable_data = (const char *) (cmd + 1);
6645 return cmd->cmd_base.cmd_size;
6653 struct marshal_cmd_ProgramUniformMatrix3x2dv *cmd;
6659 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix3x2dv, cmd_size);
6660 cmd->program = program;
6661 cmd->location = location;
6662 cmd->count = count;
6663 cmd->transpose = transpose;
6664 char *variable_data = (char *) (cmd + 1);
6680 _mesa_unmarshal_ProgramUniformMatrix3x4dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix3x4dv *cmd, const uint64_t *last)
6682 GLuint program = cmd->program;
6683 GLint location = cmd->location;
6684 GLsizei count = cmd->count;
6685 GLboolean transpose = cmd->transpose;
6687 const char *variable_data = (const char *) (cmd + 1);
6690 return cmd->cmd_base.cmd_size;
6698 struct marshal_cmd_ProgramUniformMatrix3x4dv *cmd;
6704 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix3x4dv, cmd_size);
6705 cmd->program = program;
6706 cmd->location = location;
6707 cmd->count = count;
6708 cmd->transpose = transpose;
6709 char *variable_data = (char *) (cmd + 1);
6725 _mesa_unmarshal_ProgramUniformMatrix4x2dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix4x2dv *cmd, const uint64_t *last)
6727 GLuint program = cmd->program;
6728 GLint location = cmd->location;
6729 GLsizei count = cmd->count;
6730 GLboolean transpose = cmd->transpose;
6732 const char *variable_data = (const char *) (cmd + 1);
6735 return cmd->cmd_base.cmd_size;
6743 struct marshal_cmd_ProgramUniformMatrix4x2dv *cmd;
6749 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix4x2dv, cmd_size);
6750 cmd->program = program;
6751 cmd->location = location;
6752 cmd->count = count;
6753 cmd->transpose = transpose;
6754 char *variable_data = (char *) (cmd + 1);
6770 _mesa_unmarshal_ProgramUniformMatrix4x3dv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix4x3dv *cmd, const uint64_t *last)
6772 GLuint program = cmd->program;
6773 GLint location = cmd->location;
6774 GLsizei count = cmd->count;
6775 GLboolean transpose = cmd->transpose;
6777 const char *variable_data = (const char *) (cmd + 1);
6780 return cmd->cmd_base.cmd_size;
6788 struct marshal_cmd_ProgramUniformMatrix4x3dv *cmd;
6794 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix4x3dv, cmd_size);
6795 cmd->program = program;
6796 cmd->location = location;
6797 cmd->count = count;
6798 cmd->transpose = transpose;
6799 char *variable_data = (char *) (cmd + 1);
6813 _mesa_unmarshal_DrawTransformFeedbackStream(struct gl_context *ctx, const struct marshal_cmd_DrawTransformFeedbackStream *cmd, const uint64_t *last)
6815 GLenum mode = cmd->mode;
6816 GLuint id = cmd->id;
6817 GLuint stream = cmd->stream;
6820 assert (cmd_size == cmd->cmd_base.cmd_size);
6828 struct marshal_cmd_DrawTransformFeedbackStream *cmd;
6829 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTransformFeedbackStream, cmd_size);
6830 cmd->mode = mode;
6831 cmd->id = id;
6832 cmd->stream = stream;
6845 _mesa_unmarshal_BeginQueryIndexed(struct gl_context *ctx, const struct marshal_cmd_BeginQueryIndexed *cmd, const uint64_t *last)
6847 GLenum target = cmd->target;
6848 GLuint index = cmd->index;
6849 GLuint id = cmd->id;
6852 assert (cmd_size == cmd->cmd_base.cmd_size);
6860 struct marshal_cmd_BeginQueryIndexed *cmd;
6861 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BeginQueryIndexed, cmd_size);
6862 cmd->target = target;
6863 cmd->index = index;
6864 cmd->id = id;
6876 _mesa_unmarshal_EndQueryIndexed(struct gl_context *ctx, const struct marshal_cmd_EndQueryIndexed *cmd, const uint64_t *last)
6878 GLenum target = cmd->target;
6879 GLuint index = cmd->index;
6882 assert (cmd_size == cmd->cmd_base.cmd_size);
6890 struct marshal_cmd_EndQueryIndexed *cmd;
6891 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EndQueryIndexed, cmd_size);
6892 cmd->target = target;
6893 cmd->index = index;
6916 _mesa_unmarshal_UseProgramStages(struct gl_context *ctx, const struct marshal_cmd_UseProgramStages *cmd, const uint64_t *last)
6918 GLuint pipeline = cmd->pipeline;
6919 GLbitfield stages = cmd->stages;
6920 GLuint program = cmd->program;
6923 assert (cmd_size == cmd->cmd_base.cmd_size);
6931 struct marshal_cmd_UseProgramStages *cmd;
6932 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UseProgramStages, cmd_size);
6933 cmd->pipeline = pipeline;
6934 cmd->stages = stages;
6935 cmd->program = program;
6947 _mesa_unmarshal_ActiveShaderProgram(struct gl_context *ctx, const struct marshal_cmd_ActiveShaderProgram *cmd, const uint64_t *last)
6949 GLuint pipeline = cmd->pipeline;
6950 GLuint program = cmd->program;
6953 assert (cmd_size == cmd->cmd_base.cmd_size);
6961 struct marshal_cmd_ActiveShaderProgram *cmd;
6962 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ActiveShaderProgram, cmd_size);
6963 cmd->pipeline = pipeline;
6964 cmd->program = program;
6985 _mesa_unmarshal_BindProgramPipeline(struct gl_context *ctx, const struct marshal_cmd_BindProgramPipeline *cmd, const uint64_t *last)
6987 GLuint pipeline = cmd->pipeline;
6990 assert (cmd_size == cmd->cmd_base.cmd_size);
6998 struct marshal_cmd_BindProgramPipeline *cmd;
6999 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindProgramPipeline, cmd_size);
7000 cmd->pipeline = pipeline;
7012 _mesa_unmarshal_DeleteProgramPipelines(struct gl_context *ctx, const struct marshal_cmd_DeleteProgramPipelines *cmd, const uint64_t *last)
7014 GLsizei n = cmd->n;
7016 const char *variable_data = (const char *) (cmd + 1);
7019 return cmd->cmd_base.cmd_size;
7027 struct marshal_cmd_DeleteProgramPipelines *cmd;
7033 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteProgramPipelines, cmd_size);
7034 cmd->n = n;
7035 char *variable_data = (char *) (cmd + 1);
7079 _mesa_unmarshal_ProgramUniform1i(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1i *cmd, const uint64_t *last)
7081 GLuint program = cmd->program;
7082 GLint location = cmd->location;
7083 GLint x = cmd->x;
7086 assert (cmd_size == cmd->cmd_base.cmd_size);
7094 struct marshal_cmd_ProgramUniform1i *cmd;
7095 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1i, cmd_size);
7096 cmd->program = program;
7097 cmd->location = location;
7098 cmd->x = x;
7112 _mesa_unmarshal_ProgramUniform2i(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2i *cmd, const uint64_t *last)
7114 GLuint program = cmd->program;
7115 GLint location = cmd->location;
7116 GLint x = cmd->x;
7117 GLint y = cmd->y;
7120 assert (cmd_size == cmd->cmd_base.cmd_size);
7128 struct marshal_cmd_ProgramUniform2i *cmd;
7129 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2i, cmd_size);
7130 cmd->program = program;
7131 cmd->location = location;
7132 cmd->x = x;
7133 cmd->y = y;