Lines Matching refs:cmd
55 _mesa_unmarshal_ProgramUniform3i(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3i *cmd, const uint64_t *last)
57 GLuint program = cmd->program;
58 GLint location = cmd->location;
59 GLint x = cmd->x;
60 GLint y = cmd->y;
61 GLint z = cmd->z;
64 assert (cmd_size == cmd->cmd_base.cmd_size);
72 struct marshal_cmd_ProgramUniform3i *cmd;
73 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3i, cmd_size);
74 cmd->program = program;
75 cmd->location = location;
76 cmd->x = x;
77 cmd->y = y;
78 cmd->z = z;
94 _mesa_unmarshal_ProgramUniform4i(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4i *cmd, const uint64_t *last)
96 GLuint program = cmd->program;
97 GLint location = cmd->location;
98 GLint x = cmd->x;
99 GLint y = cmd->y;
100 GLint z = cmd->z;
101 GLint w = cmd->w;
104 assert (cmd_size == cmd->cmd_base.cmd_size);
112 struct marshal_cmd_ProgramUniform4i *cmd;
113 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4i, cmd_size);
114 cmd->program = program;
115 cmd->location = location;
116 cmd->x = x;
117 cmd->y = y;
118 cmd->z = z;
119 cmd->w = w;
132 _mesa_unmarshal_ProgramUniform1ui(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1ui *cmd, const uint64_t *last)
134 GLuint program = cmd->program;
135 GLint location = cmd->location;
136 GLuint x = cmd->x;
139 assert (cmd_size == cmd->cmd_base.cmd_size);
147 struct marshal_cmd_ProgramUniform1ui *cmd;
148 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1ui, cmd_size);
149 cmd->program = program;
150 cmd->location = location;
151 cmd->x = x;
165 _mesa_unmarshal_ProgramUniform2ui(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2ui *cmd, const uint64_t *last)
167 GLuint program = cmd->program;
168 GLint location = cmd->location;
169 GLuint x = cmd->x;
170 GLuint y = cmd->y;
173 assert (cmd_size == cmd->cmd_base.cmd_size);
181 struct marshal_cmd_ProgramUniform2ui *cmd;
182 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2ui, cmd_size);
183 cmd->program = program;
184 cmd->location = location;
185 cmd->x = x;
186 cmd->y = y;
201 _mesa_unmarshal_ProgramUniform3ui(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3ui *cmd, const uint64_t *last)
203 GLuint program = cmd->program;
204 GLint location = cmd->location;
205 GLuint x = cmd->x;
206 GLuint y = cmd->y;
207 GLuint z = cmd->z;
210 assert (cmd_size == cmd->cmd_base.cmd_size);
218 struct marshal_cmd_ProgramUniform3ui *cmd;
219 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3ui, cmd_size);
220 cmd->program = program;
221 cmd->location = location;
222 cmd->x = x;
223 cmd->y = y;
224 cmd->z = z;
240 _mesa_unmarshal_ProgramUniform4ui(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4ui *cmd, const uint64_t *last)
242 GLuint program = cmd->program;
243 GLint location = cmd->location;
244 GLuint x = cmd->x;
245 GLuint y = cmd->y;
246 GLuint z = cmd->z;
247 GLuint w = cmd->w;
250 assert (cmd_size == cmd->cmd_base.cmd_size);
258 struct marshal_cmd_ProgramUniform4ui *cmd;
259 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4ui, cmd_size);
260 cmd->program = program;
261 cmd->location = location;
262 cmd->x = x;
263 cmd->y = y;
264 cmd->z = z;
265 cmd->w = w;
278 _mesa_unmarshal_ProgramUniform1f(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1f *cmd, const uint64_t *last)
280 GLuint program = cmd->program;
281 GLint location = cmd->location;
282 GLfloat x = cmd->x;
285 assert (cmd_size == cmd->cmd_base.cmd_size);
293 struct marshal_cmd_ProgramUniform1f *cmd;
294 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1f, cmd_size);
295 cmd->program = program;
296 cmd->location = location;
297 cmd->x = x;
311 _mesa_unmarshal_ProgramUniform2f(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2f *cmd, const uint64_t *last)
313 GLuint program = cmd->program;
314 GLint location = cmd->location;
315 GLfloat x = cmd->x;
316 GLfloat y = cmd->y;
319 assert (cmd_size == cmd->cmd_base.cmd_size);
327 struct marshal_cmd_ProgramUniform2f *cmd;
328 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2f, cmd_size);
329 cmd->program = program;
330 cmd->location = location;
331 cmd->x = x;
332 cmd->y = y;
347 _mesa_unmarshal_ProgramUniform3f(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3f *cmd, const uint64_t *last)
349 GLuint program = cmd->program;
350 GLint location = cmd->location;
351 GLfloat x = cmd->x;
352 GLfloat y = cmd->y;
353 GLfloat z = cmd->z;
356 assert (cmd_size == cmd->cmd_base.cmd_size);
364 struct marshal_cmd_ProgramUniform3f *cmd;
365 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3f, cmd_size);
366 cmd->program = program;
367 cmd->location = location;
368 cmd->x = x;
369 cmd->y = y;
370 cmd->z = z;
386 _mesa_unmarshal_ProgramUniform4f(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4f *cmd, const uint64_t *last)
388 GLuint program = cmd->program;
389 GLint location = cmd->location;
390 GLfloat x = cmd->x;
391 GLfloat y = cmd->y;
392 GLfloat z = cmd->z;
393 GLfloat w = cmd->w;
396 assert (cmd_size == cmd->cmd_base.cmd_size);
404 struct marshal_cmd_ProgramUniform4f *cmd;
405 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4f, cmd_size);
406 cmd->program = program;
407 cmd->location = location;
408 cmd->x = x;
409 cmd->y = y;
410 cmd->z = z;
411 cmd->w = w;
425 _mesa_unmarshal_ProgramUniform1iv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1iv *cmd, const uint64_t *last)
427 GLuint program = cmd->program;
428 GLint location = cmd->location;
429 GLsizei count = cmd->count;
431 const char *variable_data = (const char *) (cmd + 1);
434 return cmd->cmd_base.cmd_size;
442 struct marshal_cmd_ProgramUniform1iv *cmd;
448 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1iv, cmd_size);
449 cmd->program = program;
450 cmd->location = location;
451 cmd->count = count;
452 char *variable_data = (char *) (cmd + 1);
467 _mesa_unmarshal_ProgramUniform2iv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2iv *cmd, const uint64_t *last)
469 GLuint program = cmd->program;
470 GLint location = cmd->location;
471 GLsizei count = cmd->count;
473 const char *variable_data = (const char *) (cmd + 1);
476 return cmd->cmd_base.cmd_size;
484 struct marshal_cmd_ProgramUniform2iv *cmd;
490 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2iv, cmd_size);
491 cmd->program = program;
492 cmd->location = location;
493 cmd->count = count;
494 char *variable_data = (char *) (cmd + 1);
509 _mesa_unmarshal_ProgramUniform3iv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3iv *cmd, const uint64_t *last)
511 GLuint program = cmd->program;
512 GLint location = cmd->location;
513 GLsizei count = cmd->count;
515 const char *variable_data = (const char *) (cmd + 1);
518 return cmd->cmd_base.cmd_size;
526 struct marshal_cmd_ProgramUniform3iv *cmd;
532 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3iv, cmd_size);
533 cmd->program = program;
534 cmd->location = location;
535 cmd->count = count;
536 char *variable_data = (char *) (cmd + 1);
551 _mesa_unmarshal_ProgramUniform4iv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4iv *cmd, const uint64_t *last)
553 GLuint program = cmd->program;
554 GLint location = cmd->location;
555 GLsizei count = cmd->count;
557 const char *variable_data = (const char *) (cmd + 1);
560 return cmd->cmd_base.cmd_size;
568 struct marshal_cmd_ProgramUniform4iv *cmd;
574 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4iv, cmd_size);
575 cmd->program = program;
576 cmd->location = location;
577 cmd->count = count;
578 char *variable_data = (char *) (cmd + 1);
593 _mesa_unmarshal_ProgramUniform1uiv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1uiv *cmd, const uint64_t *last)
595 GLuint program = cmd->program;
596 GLint location = cmd->location;
597 GLsizei count = cmd->count;
599 const char *variable_data = (const char *) (cmd + 1);
602 return cmd->cmd_base.cmd_size;
610 struct marshal_cmd_ProgramUniform1uiv *cmd;
616 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1uiv, cmd_size);
617 cmd->program = program;
618 cmd->location = location;
619 cmd->count = count;
620 char *variable_data = (char *) (cmd + 1);
635 _mesa_unmarshal_ProgramUniform2uiv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2uiv *cmd, const uint64_t *last)
637 GLuint program = cmd->program;
638 GLint location = cmd->location;
639 GLsizei count = cmd->count;
641 const char *variable_data = (const char *) (cmd + 1);
644 return cmd->cmd_base.cmd_size;
652 struct marshal_cmd_ProgramUniform2uiv *cmd;
658 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2uiv, cmd_size);
659 cmd->program = program;
660 cmd->location = location;
661 cmd->count = count;
662 char *variable_data = (char *) (cmd + 1);
677 _mesa_unmarshal_ProgramUniform3uiv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3uiv *cmd, const uint64_t *last)
679 GLuint program = cmd->program;
680 GLint location = cmd->location;
681 GLsizei count = cmd->count;
683 const char *variable_data = (const char *) (cmd + 1);
686 return cmd->cmd_base.cmd_size;
694 struct marshal_cmd_ProgramUniform3uiv *cmd;
700 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3uiv, cmd_size);
701 cmd->program = program;
702 cmd->location = location;
703 cmd->count = count;
704 char *variable_data = (char *) (cmd + 1);
719 _mesa_unmarshal_ProgramUniform4uiv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4uiv *cmd, const uint64_t *last)
721 GLuint program = cmd->program;
722 GLint location = cmd->location;
723 GLsizei count = cmd->count;
725 const char *variable_data = (const char *) (cmd + 1);
728 return cmd->cmd_base.cmd_size;
736 struct marshal_cmd_ProgramUniform4uiv *cmd;
742 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4uiv, cmd_size);
743 cmd->program = program;
744 cmd->location = location;
745 cmd->count = count;
746 char *variable_data = (char *) (cmd + 1);
761 _mesa_unmarshal_ProgramUniform1fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform1fv *cmd, const uint64_t *last)
763 GLuint program = cmd->program;
764 GLint location = cmd->location;
765 GLsizei count = cmd->count;
767 const char *variable_data = (const char *) (cmd + 1);
770 return cmd->cmd_base.cmd_size;
778 struct marshal_cmd_ProgramUniform1fv *cmd;
784 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform1fv, cmd_size);
785 cmd->program = program;
786 cmd->location = location;
787 cmd->count = count;
788 char *variable_data = (char *) (cmd + 1);
803 _mesa_unmarshal_ProgramUniform2fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform2fv *cmd, const uint64_t *last)
805 GLuint program = cmd->program;
806 GLint location = cmd->location;
807 GLsizei count = cmd->count;
809 const char *variable_data = (const char *) (cmd + 1);
812 return cmd->cmd_base.cmd_size;
820 struct marshal_cmd_ProgramUniform2fv *cmd;
826 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform2fv, cmd_size);
827 cmd->program = program;
828 cmd->location = location;
829 cmd->count = count;
830 char *variable_data = (char *) (cmd + 1);
845 _mesa_unmarshal_ProgramUniform3fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform3fv *cmd, const uint64_t *last)
847 GLuint program = cmd->program;
848 GLint location = cmd->location;
849 GLsizei count = cmd->count;
851 const char *variable_data = (const char *) (cmd + 1);
854 return cmd->cmd_base.cmd_size;
862 struct marshal_cmd_ProgramUniform3fv *cmd;
868 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform3fv, cmd_size);
869 cmd->program = program;
870 cmd->location = location;
871 cmd->count = count;
872 char *variable_data = (char *) (cmd + 1);
887 _mesa_unmarshal_ProgramUniform4fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniform4fv *cmd, const uint64_t *last)
889 GLuint program = cmd->program;
890 GLint location = cmd->location;
891 GLsizei count = cmd->count;
893 const char *variable_data = (const char *) (cmd + 1);
896 return cmd->cmd_base.cmd_size;
904 struct marshal_cmd_ProgramUniform4fv *cmd;
910 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniform4fv, cmd_size);
911 cmd->program = program;
912 cmd->location = location;
913 cmd->count = count;
914 char *variable_data = (char *) (cmd + 1);
930 _mesa_unmarshal_ProgramUniformMatrix2fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix2fv *cmd, const uint64_t *last)
932 GLuint program = cmd->program;
933 GLint location = cmd->location;
934 GLsizei count = cmd->count;
935 GLboolean transpose = cmd->transpose;
937 const char *variable_data = (const char *) (cmd + 1);
940 return cmd->cmd_base.cmd_size;
948 struct marshal_cmd_ProgramUniformMatrix2fv *cmd;
954 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix2fv, cmd_size);
955 cmd->program = program;
956 cmd->location = location;
957 cmd->count = count;
958 cmd->transpose = transpose;
959 char *variable_data = (char *) (cmd + 1);
975 _mesa_unmarshal_ProgramUniformMatrix3fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix3fv *cmd, const uint64_t *last)
977 GLuint program = cmd->program;
978 GLint location = cmd->location;
979 GLsizei count = cmd->count;
980 GLboolean transpose = cmd->transpose;
982 const char *variable_data = (const char *) (cmd + 1);
985 return cmd->cmd_base.cmd_size;
993 struct marshal_cmd_ProgramUniformMatrix3fv *cmd;
999 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix3fv, cmd_size);
1000 cmd->program = program;
1001 cmd->location = location;
1002 cmd->count = count;
1003 cmd->transpose = transpose;
1004 char *variable_data = (char *) (cmd + 1);
1020 _mesa_unmarshal_ProgramUniformMatrix4fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix4fv *cmd, const uint64_t *last)
1022 GLuint program = cmd->program;
1023 GLint location = cmd->location;
1024 GLsizei count = cmd->count;
1025 GLboolean transpose = cmd->transpose;
1027 const char *variable_data = (const char *) (cmd + 1);
1030 return cmd->cmd_base.cmd_size;
1038 struct marshal_cmd_ProgramUniformMatrix4fv *cmd;
1044 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix4fv, cmd_size);
1045 cmd->program = program;
1046 cmd->location = location;
1047 cmd->count = count;
1048 cmd->transpose = transpose;
1049 char *variable_data = (char *) (cmd + 1);
1065 _mesa_unmarshal_ProgramUniformMatrix2x3fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix2x3fv *cmd, const uint64_t *last)
1067 GLuint program = cmd->program;
1068 GLint location = cmd->location;
1069 GLsizei count = cmd->count;
1070 GLboolean transpose = cmd->transpose;
1072 const char *variable_data = (const char *) (cmd + 1);
1075 return cmd->cmd_base.cmd_size;
1083 struct marshal_cmd_ProgramUniformMatrix2x3fv *cmd;
1089 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix2x3fv, cmd_size);
1090 cmd->program = program;
1091 cmd->location = location;
1092 cmd->count = count;
1093 cmd->transpose = transpose;
1094 char *variable_data = (char *) (cmd + 1);
1110 _mesa_unmarshal_ProgramUniformMatrix3x2fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix3x2fv *cmd, const uint64_t *last)
1112 GLuint program = cmd->program;
1113 GLint location = cmd->location;
1114 GLsizei count = cmd->count;
1115 GLboolean transpose = cmd->transpose;
1117 const char *variable_data = (const char *) (cmd + 1);
1120 return cmd->cmd_base.cmd_size;
1128 struct marshal_cmd_ProgramUniformMatrix3x2fv *cmd;
1134 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix3x2fv, cmd_size);
1135 cmd->program = program;
1136 cmd->location = location;
1137 cmd->count = count;
1138 cmd->transpose = transpose;
1139 char *variable_data = (char *) (cmd + 1);
1155 _mesa_unmarshal_ProgramUniformMatrix2x4fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix2x4fv *cmd, const uint64_t *last)
1157 GLuint program = cmd->program;
1158 GLint location = cmd->location;
1159 GLsizei count = cmd->count;
1160 GLboolean transpose = cmd->transpose;
1162 const char *variable_data = (const char *) (cmd + 1);
1165 return cmd->cmd_base.cmd_size;
1173 struct marshal_cmd_ProgramUniformMatrix2x4fv *cmd;
1179 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix2x4fv, cmd_size);
1180 cmd->program = program;
1181 cmd->location = location;
1182 cmd->count = count;
1183 cmd->transpose = transpose;
1184 char *variable_data = (char *) (cmd + 1);
1200 _mesa_unmarshal_ProgramUniformMatrix4x2fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix4x2fv *cmd, const uint64_t *last)
1202 GLuint program = cmd->program;
1203 GLint location = cmd->location;
1204 GLsizei count = cmd->count;
1205 GLboolean transpose = cmd->transpose;
1207 const char *variable_data = (const char *) (cmd + 1);
1210 return cmd->cmd_base.cmd_size;
1218 struct marshal_cmd_ProgramUniformMatrix4x2fv *cmd;
1224 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix4x2fv, cmd_size);
1225 cmd->program = program;
1226 cmd->location = location;
1227 cmd->count = count;
1228 cmd->transpose = transpose;
1229 char *variable_data = (char *) (cmd + 1);
1245 _mesa_unmarshal_ProgramUniformMatrix3x4fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix3x4fv *cmd, const uint64_t *last)
1247 GLuint program = cmd->program;
1248 GLint location = cmd->location;
1249 GLsizei count = cmd->count;
1250 GLboolean transpose = cmd->transpose;
1252 const char *variable_data = (const char *) (cmd + 1);
1255 return cmd->cmd_base.cmd_size;
1263 struct marshal_cmd_ProgramUniformMatrix3x4fv *cmd;
1269 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix3x4fv, cmd_size);
1270 cmd->program = program;
1271 cmd->location = location;
1272 cmd->count = count;
1273 cmd->transpose = transpose;
1274 char *variable_data = (char *) (cmd + 1);
1290 _mesa_unmarshal_ProgramUniformMatrix4x3fv(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformMatrix4x3fv *cmd, const uint64_t *last)
1292 GLuint program = cmd->program;
1293 GLint location = cmd->location;
1294 GLsizei count = cmd->count;
1295 GLboolean transpose = cmd->transpose;
1297 const char *variable_data = (const char *) (cmd + 1);
1300 return cmd->cmd_base.cmd_size;
1308 struct marshal_cmd_ProgramUniformMatrix4x3fv *cmd;
1314 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformMatrix4x3fv, cmd_size);
1315 cmd->program = program;
1316 cmd->location = location;
1317 cmd->count = count;
1318 cmd->transpose = transpose;
1319 char *variable_data = (char *) (cmd + 1);
1331 _mesa_unmarshal_ValidateProgramPipeline(struct gl_context *ctx, const struct marshal_cmd_ValidateProgramPipeline *cmd, const uint64_t *last)
1333 GLuint pipeline = cmd->pipeline;
1336 assert (cmd_size == cmd->cmd_base.cmd_size);
1344 struct marshal_cmd_ValidateProgramPipeline *cmd;
1345 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ValidateProgramPipeline, cmd_size);
1346 cmd->pipeline = pipeline;
1368 _mesa_unmarshal_VertexAttribL1d(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL1d *cmd, const uint64_t *last)
1370 GLuint index = cmd->index;
1371 GLdouble x = cmd->x;
1374 assert (cmd_size == cmd->cmd_base.cmd_size);
1382 struct marshal_cmd_VertexAttribL1d *cmd;
1383 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL1d, cmd_size);
1384 cmd->index = index;
1385 cmd->x = x;
1398 _mesa_unmarshal_VertexAttribL2d(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL2d *cmd, const uint64_t *last)
1400 GLuint index = cmd->index;
1401 GLdouble x = cmd->x;
1402 GLdouble y = cmd->y;
1405 assert (cmd_size == cmd->cmd_base.cmd_size);
1413 struct marshal_cmd_VertexAttribL2d *cmd;
1414 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL2d, cmd_size);
1415 cmd->index = index;
1416 cmd->x = x;
1417 cmd->y = y;
1431 _mesa_unmarshal_VertexAttribL3d(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL3d *cmd, const uint64_t *last)
1433 GLuint index = cmd->index;
1434 GLdouble x = cmd->x;
1435 GLdouble y = cmd->y;
1436 GLdouble z = cmd->z;
1439 assert (cmd_size == cmd->cmd_base.cmd_size);
1447 struct marshal_cmd_VertexAttribL3d *cmd;
1448 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL3d, cmd_size);
1449 cmd->index = index;
1450 cmd->x = x;
1451 cmd->y = y;
1452 cmd->z = z;
1467 _mesa_unmarshal_VertexAttribL4d(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL4d *cmd, const uint64_t *last)
1469 GLuint index = cmd->index;
1470 GLdouble x = cmd->x;
1471 GLdouble y = cmd->y;
1472 GLdouble z = cmd->z;
1473 GLdouble w = cmd->w;
1476 assert (cmd_size == cmd->cmd_base.cmd_size);
1484 struct marshal_cmd_VertexAttribL4d *cmd;
1485 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL4d, cmd_size);
1486 cmd->index = index;
1487 cmd->x = x;
1488 cmd->y = y;
1489 cmd->z = z;
1490 cmd->w = w;
1502 _mesa_unmarshal_VertexAttribL1dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL1dv *cmd, const uint64_t *last)
1504 GLuint index = cmd->index;
1505 const GLdouble * v = cmd->v;
1508 assert (cmd_size == cmd->cmd_base.cmd_size);
1516 struct marshal_cmd_VertexAttribL1dv *cmd;
1517 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL1dv, cmd_size);
1518 cmd->index = index;
1519 memcpy(cmd->v, v, 1 * sizeof(GLdouble));
1531 _mesa_unmarshal_VertexAttribL2dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL2dv *cmd, const uint64_t *last)
1533 GLuint index = cmd->index;
1534 const GLdouble * v = cmd->v;
1537 assert (cmd_size == cmd->cmd_base.cmd_size);
1545 struct marshal_cmd_VertexAttribL2dv *cmd;
1546 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL2dv, cmd_size);
1547 cmd->index = index;
1548 memcpy(cmd->v, v, 2 * sizeof(GLdouble));
1560 _mesa_unmarshal_VertexAttribL3dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL3dv *cmd, const uint64_t *last)
1562 GLuint index = cmd->index;
1563 const GLdouble * v = cmd->v;
1566 assert (cmd_size == cmd->cmd_base.cmd_size);
1574 struct marshal_cmd_VertexAttribL3dv *cmd;
1575 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL3dv, cmd_size);
1576 cmd->index = index;
1577 memcpy(cmd->v, v, 3 * sizeof(GLdouble));
1589 _mesa_unmarshal_VertexAttribL4dv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL4dv *cmd, const uint64_t *last)
1591 GLuint index = cmd->index;
1592 const GLdouble * v = cmd->v;
1595 assert (cmd_size == cmd->cmd_base.cmd_size);
1603 struct marshal_cmd_VertexAttribL4dv *cmd;
1604 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL4dv, cmd_size);
1605 cmd->index = index;
1606 memcpy(cmd->v, v, 4 * sizeof(GLdouble));
1621 _mesa_unmarshal_VertexAttribLPointer(struct gl_context *ctx, const struct marshal_cmd_VertexAttribLPointer *cmd, const uint64_t *last)
1623 GLuint index = cmd->index;
1624 GLint size = cmd->size;
1625 GLenum type = cmd->type;
1626 GLsizei stride = cmd->stride;
1627 const GLvoid * pointer = cmd->pointer;
1630 assert (cmd_size == cmd->cmd_base.cmd_size);
1638 struct marshal_cmd_VertexAttribLPointer *cmd;
1639 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribLPointer, cmd_size);
1640 cmd->index = index;
1641 cmd->size = size;
1642 cmd->type = type;
1643 cmd->stride = stride;
1644 cmd->pointer = pointer;
1672 _mesa_unmarshal_VertexArrayVertexAttribLOffsetEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexAttribLOffsetEXT *cmd, const uint64_t *last)
1674 GLuint vaobj = cmd->vaobj;
1675 GLuint buffer = cmd->buffer;
1676 GLuint index = cmd->index;
1677 GLint size = cmd->size;
1678 GLenum type = cmd->type;
1679 GLsizei stride = cmd->stride;
1680 GLintptr offset = cmd->offset;
1683 assert (cmd_size == cmd->cmd_base.cmd_size);
1691 struct marshal_cmd_VertexArrayVertexAttribLOffsetEXT *cmd;
1692 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexAttribLOffsetEXT, cmd_size);
1693 cmd->vaobj = vaobj;
1694 cmd->buffer = buffer;
1695 cmd->index = index;
1696 cmd->size = size;
1697 cmd->type = type;
1698 cmd->stride = stride;
1699 cmd->offset = offset;
1720 _mesa_unmarshal_ReleaseShaderCompiler(struct gl_context *ctx, const struct marshal_cmd_ReleaseShaderCompiler *cmd, const uint64_t *last)
1724 assert (cmd_size == cmd->cmd_base.cmd_size);
1732 struct marshal_cmd_ReleaseShaderCompiler *cmd;
1733 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ReleaseShaderCompiler, cmd_size);
1734 (void) cmd;
1749 _mesa_unmarshal_ShaderBinary(struct gl_context *ctx, const struct marshal_cmd_ShaderBinary *cmd, const uint64_t *last)
1751 GLsizei n = cmd->n;
1752 GLenum binaryformat = cmd->binaryformat;
1753 GLsizei length = cmd->length;
1756 const char *variable_data = (const char *) (cmd + 1);
1761 return cmd->cmd_base.cmd_size;
1770 struct marshal_cmd_ShaderBinary *cmd;
1776 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ShaderBinary, cmd_size);
1777 cmd->n = n;
1778 cmd->binaryformat = binaryformat;
1779 cmd->length = length;
1780 char *variable_data = (char *) (cmd + 1);
1794 _mesa_unmarshal_ClearDepthf(struct gl_context *ctx, const struct marshal_cmd_ClearDepthf *cmd, const uint64_t *last)
1796 GLclampf depth = cmd->depth;
1799 assert (cmd_size == cmd->cmd_base.cmd_size);
1807 struct marshal_cmd_ClearDepthf *cmd;
1808 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearDepthf, cmd_size);
1809 cmd->depth = depth;
1821 _mesa_unmarshal_DepthRangef(struct gl_context *ctx, const struct marshal_cmd_DepthRangef *cmd, const uint64_t *last)
1823 GLclampf zNear = cmd->zNear;
1824 GLclampf zFar = cmd->zFar;
1827 assert (cmd_size == cmd->cmd_base.cmd_size);
1835 struct marshal_cmd_DepthRangef *cmd;
1836 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DepthRangef, cmd_size);
1837 cmd->zNear = zNear;
1838 cmd->zFar = zFar;
1862 _mesa_unmarshal_ProgramBinary(struct gl_context *ctx, const struct marshal_cmd_ProgramBinary *cmd, const uint64_t *last)
1864 GLuint program = cmd->program;
1865 GLenum binaryFormat = cmd->binaryFormat;
1866 GLsizei length = cmd->length;
1868 const char *variable_data = (const char *) (cmd + 1);
1871 return cmd->cmd_base.cmd_size;
1879 struct marshal_cmd_ProgramBinary *cmd;
1885 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramBinary, cmd_size);
1886 cmd->program = program;
1887 cmd->binaryFormat = binaryFormat;
1888 cmd->length = length;
1889 char *variable_data = (char *) (cmd + 1);
1903 _mesa_unmarshal_ProgramParameteri(struct gl_context *ctx, const struct marshal_cmd_ProgramParameteri *cmd, const uint64_t *last)
1905 GLuint program = cmd->program;
1906 GLenum pname = cmd->pname;
1907 GLint value = cmd->value;
1910 assert (cmd_size == cmd->cmd_base.cmd_size);
1918 struct marshal_cmd_ProgramParameteri *cmd;
1919 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramParameteri, cmd_size);
1920 cmd->program = program;
1921 cmd->pname = pname;
1922 cmd->value = value;
1938 _mesa_unmarshal_DebugMessageControl(struct gl_context *ctx, const struct marshal_cmd_DebugMessageControl *cmd, const uint64_t *last)
1940 GLenum source = cmd->source;
1941 GLenum type = cmd->type;
1942 GLenum severity = cmd->severity;
1943 GLsizei count = cmd->count;
1944 GLboolean enabled = cmd->enabled;
1946 const char *variable_data = (const char *) (cmd + 1);
1949 return cmd->cmd_base.cmd_size;
1957 struct marshal_cmd_DebugMessageControl *cmd;
1963 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DebugMessageControl, cmd_size);
1964 cmd->source = source;
1965 cmd->type = type;
1966 cmd->severity = severity;
1967 cmd->count = count;
1968 cmd->enabled = enabled;
1969 char *variable_data = (char *) (cmd + 1);
1986 _mesa_unmarshal_DebugMessageInsert(struct gl_context *ctx, const struct marshal_cmd_DebugMessageInsert *cmd, const uint64_t *last)
1988 GLenum source = cmd->source;
1989 GLenum type = cmd->type;
1990 GLuint id = cmd->id;
1991 GLenum severity = cmd->severity;
1992 GLsizei length = cmd->length;
1994 const char *variable_data = (const char *) (cmd + 1);
1997 return cmd->cmd_base.cmd_size;
2005 struct marshal_cmd_DebugMessageInsert *cmd;
2011 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DebugMessageInsert, cmd_size);
2012 cmd->source = source;
2013 cmd->type = type;
2014 cmd->id = id;
2015 cmd->severity = severity;
2016 cmd->length = length;
2017 char *variable_data = (char *) (cmd + 1);
2120 _mesa_unmarshal_GetnPolygonStippleARB(struct gl_context *ctx, const struct marshal_cmd_GetnPolygonStippleARB *cmd, const uint64_t *last)
2122 GLsizei bufSize = cmd->bufSize;
2123 GLubyte * pattern = cmd->pattern;
2126 assert (cmd_size == cmd->cmd_base.cmd_size);
2134 struct marshal_cmd_GetnPolygonStippleARB *cmd;
2140 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetnPolygonStippleARB, cmd_size);
2141 cmd->bufSize = bufSize;
2142 cmd->pattern = pattern;
2158 _mesa_unmarshal_GetnTexImageARB(struct gl_context *ctx, const struct marshal_cmd_GetnTexImageARB *cmd, const uint64_t *last)
2160 GLenum target = cmd->target;
2161 GLint level = cmd->level;
2162 GLenum format = cmd->format;
2163 GLenum type = cmd->type;
2164 GLsizei bufSize = cmd->bufSize;
2165 GLvoid * img = cmd->img;
2168 assert (cmd_size == cmd->cmd_base.cmd_size);
2176 struct marshal_cmd_GetnTexImageARB *cmd;
2182 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetnTexImageARB, cmd_size);
2183 cmd->target = target;
2184 cmd->level = level;
2185 cmd->format = format;
2186 cmd->type = type;
2187 cmd->bufSize = bufSize;
2188 cmd->img = img;
2206 _mesa_unmarshal_ReadnPixelsARB(struct gl_context *ctx, const struct marshal_cmd_ReadnPixelsARB *cmd, const uint64_t *last)
2208 GLint x = cmd->x;
2209 GLint y = cmd->y;
2210 GLsizei width = cmd->width;
2211 GLsizei height = cmd->height;
2212 GLenum format = cmd->format;
2213 GLenum type = cmd->type;
2214 GLsizei bufSize = cmd->bufSize;
2215 GLvoid * data = cmd->data;
2218 assert (cmd_size == cmd->cmd_base.cmd_size);
2226 struct marshal_cmd_ReadnPixelsARB *cmd;
2232 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ReadnPixelsARB, cmd_size);
2233 cmd->x = x;
2234 cmd->y = y;
2235 cmd->width = width;
2236 cmd->height = height;
2237 cmd->format = format;
2238 cmd->type = type;
2239 cmd->bufSize = bufSize;
2240 cmd->data = data;
2304 _mesa_unmarshal_GetnCompressedTexImageARB(struct gl_context *ctx, const struct marshal_cmd_GetnCompressedTexImageARB *cmd, const uint64_t *last)
2306 GLenum target = cmd->target;
2307 GLint lod = cmd->lod;
2308 GLsizei bufSize = cmd->bufSize;
2309 GLvoid * img = cmd->img;
2312 assert (cmd_size == cmd->cmd_base.cmd_size);
2320 struct marshal_cmd_GetnCompressedTexImageARB *cmd;
2326 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetnCompressedTexImageARB, cmd_size);
2327 cmd->target = target;
2328 cmd->lod = lod;
2329 cmd->bufSize = bufSize;
2330 cmd->img = img;
2383 _mesa_unmarshal_DrawTransformFeedbackInstanced(struct gl_context *ctx, const struct marshal_cmd_DrawTransformFeedbackInstanced *cmd, const uint64_t *last)
2385 GLenum mode = cmd->mode;
2386 GLuint id = cmd->id;
2387 GLsizei primcount = cmd->primcount;
2390 assert (cmd_size == cmd->cmd_base.cmd_size);
2398 struct marshal_cmd_DrawTransformFeedbackInstanced *cmd;
2399 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTransformFeedbackInstanced, cmd_size);
2400 cmd->mode = mode;
2401 cmd->id = id;
2402 cmd->primcount = primcount;
2416 _mesa_unmarshal_DrawTransformFeedbackStreamInstanced(struct gl_context *ctx, const struct marshal_cmd_DrawTransformFeedbackStreamInstanced *cmd, const uint64_t *last)
2418 GLenum mode = cmd->mode;
2419 GLuint id = cmd->id;
2420 GLuint stream = cmd->stream;
2421 GLsizei primcount = cmd->primcount;
2424 assert (cmd_size == cmd->cmd_base.cmd_size);
2432 struct marshal_cmd_DrawTransformFeedbackStreamInstanced *cmd;
2433 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTransformFeedbackStreamInstanced, cmd_size);
2434 cmd->mode = mode;
2435 cmd->id = id;
2436 cmd->stream = stream;
2437 cmd->primcount = primcount;
2474 _mesa_unmarshal_BindImageTexture(struct gl_context *ctx, const struct marshal_cmd_BindImageTexture *cmd, const uint64_t *last)
2476 GLuint unit = cmd->unit;
2477 GLuint texture = cmd->texture;
2478 GLint level = cmd->level;
2479 GLboolean layered = cmd->layered;
2480 GLint layer = cmd->layer;
2481 GLenum access = cmd->access;
2482 GLenum format = cmd->format;
2485 assert (cmd_size == cmd->cmd_base.cmd_size);
2493 struct marshal_cmd_BindImageTexture *cmd;
2494 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindImageTexture, cmd_size);
2495 cmd->unit = unit;
2496 cmd->texture = texture;
2497 cmd->level = level;
2498 cmd->layered = layered;
2499 cmd->layer = layer;
2500 cmd->access = access;
2501 cmd->format = format;
2512 _mesa_unmarshal_MemoryBarrier(struct gl_context *ctx, const struct marshal_cmd_MemoryBarrier *cmd, const uint64_t *last)
2514 GLbitfield barriers = cmd->barriers;
2517 assert (cmd_size == cmd->cmd_base.cmd_size);
2525 struct marshal_cmd_MemoryBarrier *cmd;
2526 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MemoryBarrier, cmd_size);
2527 cmd->barriers = barriers;
2541 _mesa_unmarshal_TexStorage1D(struct gl_context *ctx, const struct marshal_cmd_TexStorage1D *cmd, const uint64_t *last)
2543 GLenum target = cmd->target;
2544 GLsizei levels = cmd->levels;
2545 GLenum internalFormat = cmd->internalFormat;
2546 GLsizei width = cmd->width;
2549 assert (cmd_size == cmd->cmd_base.cmd_size);
2557 struct marshal_cmd_TexStorage1D *cmd;
2558 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorage1D, cmd_size);
2559 cmd->target = target;
2560 cmd->levels = levels;
2561 cmd->internalFormat = internalFormat;
2562 cmd->width = width;
2577 _mesa_unmarshal_TexStorage2D(struct gl_context *ctx, const struct marshal_cmd_TexStorage2D *cmd, const uint64_t *last)
2579 GLenum target = cmd->target;
2580 GLsizei levels = cmd->levels;
2581 GLenum internalFormat = cmd->internalFormat;
2582 GLsizei width = cmd->width;
2583 GLsizei height = cmd->height;
2586 assert (cmd_size == cmd->cmd_base.cmd_size);
2594 struct marshal_cmd_TexStorage2D *cmd;
2595 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorage2D, cmd_size);
2596 cmd->target = target;
2597 cmd->levels = levels;
2598 cmd->internalFormat = internalFormat;
2599 cmd->width = width;
2600 cmd->height = height;
2616 _mesa_unmarshal_TexStorage3D(struct gl_context *ctx, const struct marshal_cmd_TexStorage3D *cmd, const uint64_t *last)
2618 GLenum target = cmd->target;
2619 GLsizei levels = cmd->levels;
2620 GLenum internalFormat = cmd->internalFormat;
2621 GLsizei width = cmd->width;
2622 GLsizei height = cmd->height;
2623 GLsizei depth = cmd->depth;
2626 assert (cmd_size == cmd->cmd_base.cmd_size);
2634 struct marshal_cmd_TexStorage3D *cmd;
2635 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorage3D, cmd_size);
2636 cmd->target = target;
2637 cmd->levels = levels;
2638 cmd->internalFormat = internalFormat;
2639 cmd->width = width;
2640 cmd->height = height;
2641 cmd->depth = depth;
2656 _mesa_unmarshal_TextureStorage1DEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorage1DEXT *cmd, const uint64_t *last)
2658 GLuint texture = cmd->texture;
2659 GLenum target = cmd->target;
2660 GLsizei levels = cmd->levels;
2661 GLenum internalFormat = cmd->internalFormat;
2662 GLsizei width = cmd->width;
2665 assert (cmd_size == cmd->cmd_base.cmd_size);
2673 struct marshal_cmd_TextureStorage1DEXT *cmd;
2674 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage1DEXT, cmd_size);
2675 cmd->texture = texture;
2676 cmd->target = target;
2677 cmd->levels = levels;
2678 cmd->internalFormat = internalFormat;
2679 cmd->width = width;
2695 _mesa_unmarshal_TextureStorage2DEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorage2DEXT *cmd, const uint64_t *last)
2697 GLuint texture = cmd->texture;
2698 GLenum target = cmd->target;
2699 GLsizei levels = cmd->levels;
2700 GLenum internalFormat = cmd->internalFormat;
2701 GLsizei width = cmd->width;
2702 GLsizei height = cmd->height;
2705 assert (cmd_size == cmd->cmd_base.cmd_size);
2713 struct marshal_cmd_TextureStorage2DEXT *cmd;
2714 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage2DEXT, cmd_size);
2715 cmd->texture = texture;
2716 cmd->target = target;
2717 cmd->levels = levels;
2718 cmd->internalFormat = internalFormat;
2719 cmd->width = width;
2720 cmd->height = height;
2737 _mesa_unmarshal_TextureStorage3DEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorage3DEXT *cmd, const uint64_t *last)
2739 GLuint texture = cmd->texture;
2740 GLenum target = cmd->target;
2741 GLsizei levels = cmd->levels;
2742 GLenum internalFormat = cmd->internalFormat;
2743 GLsizei width = cmd->width;
2744 GLsizei height = cmd->height;
2745 GLsizei depth = cmd->depth;
2748 assert (cmd_size == cmd->cmd_base.cmd_size);
2756 struct marshal_cmd_TextureStorage3DEXT *cmd;
2757 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage3DEXT, cmd_size);
2758 cmd->texture = texture;
2759 cmd->target = target;
2760 cmd->levels = levels;
2761 cmd->internalFormat = internalFormat;
2762 cmd->width = width;
2763 cmd->height = height;
2764 cmd->depth = depth;
2778 _mesa_unmarshal_PushDebugGroup(struct gl_context *ctx, const struct marshal_cmd_PushDebugGroup *cmd, const uint64_t *last)
2780 GLenum source = cmd->source;
2781 GLuint id = cmd->id;
2782 GLsizei length = cmd->length;
2784 const char *variable_data = (const char *) (cmd + 1);
2787 return cmd->cmd_base.cmd_size;
2795 struct marshal_cmd_PushDebugGroup *cmd;
2801 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PushDebugGroup, cmd_size);
2802 cmd->source = source;
2803 cmd->id = id;
2804 cmd->length = length;
2805 char *variable_data = (char *) (cmd + 1);
2816 _mesa_unmarshal_PopDebugGroup(struct gl_context *ctx, const struct marshal_cmd_PopDebugGroup *cmd, const uint64_t *last)
2820 assert (cmd_size == cmd->cmd_base.cmd_size);
2828 struct marshal_cmd_PopDebugGroup *cmd;
2829 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PopDebugGroup, cmd_size);
2830 (void) cmd;
2844 _mesa_unmarshal_ObjectLabel(struct gl_context *ctx, const struct marshal_cmd_ObjectLabel *cmd, const uint64_t *last)
2846 GLenum identifier = cmd->identifier;
2847 GLuint name = cmd->name;
2848 GLsizei length = cmd->length;
2850 const char *variable_data = (const char *) (cmd + 1);
2853 return cmd->cmd_base.cmd_size;
2861 struct marshal_cmd_ObjectLabel *cmd;
2867 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ObjectLabel, cmd_size);
2868 cmd->identifier = identifier;
2869 cmd->name = name;
2870 cmd->length = length;
2871 char *variable_data = (char *) (cmd + 1);
2955 _mesa_unmarshal_DispatchCompute(struct gl_context *ctx, const struct marshal_cmd_DispatchCompute *cmd, const uint64_t *last)
2957 GLuint num_groups_x = cmd->num_groups_x;
2958 GLuint num_groups_y = cmd->num_groups_y;
2959 GLuint num_groups_z = cmd->num_groups_z;
2962 assert (cmd_size == cmd->cmd_base.cmd_size);
2970 struct marshal_cmd_DispatchCompute *cmd;
2971 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DispatchCompute, cmd_size);
2972 cmd->num_groups_x = num_groups_x;
2973 cmd->num_groups_y = num_groups_y;
2974 cmd->num_groups_z = num_groups_z;
2985 _mesa_unmarshal_DispatchComputeIndirect(struct gl_context *ctx, const struct marshal_cmd_DispatchComputeIndirect *cmd, const uint64_t *last)
2987 GLintptr indirect = cmd->indirect;
2990 assert (cmd_size == cmd->cmd_base.cmd_size);
2998 struct marshal_cmd_DispatchComputeIndirect *cmd;
2999 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DispatchComputeIndirect, cmd_size);
3000 cmd->indirect = indirect;
3025 _mesa_unmarshal_CopyImageSubData(struct gl_context *ctx, const struct marshal_cmd_CopyImageSubData *cmd, const uint64_t *last)
3027 GLuint srcName = cmd->srcName;
3028 GLenum srcTarget = cmd->srcTarget;
3029 GLint srcLevel = cmd->srcLevel;
3030 GLint srcX = cmd->srcX;
3031 GLint srcY = cmd->srcY;
3032 GLint srcZ = cmd->srcZ;
3033 GLuint dstName = cmd->dstName;
3034 GLenum dstTarget = cmd->dstTarget;
3035 GLint dstLevel = cmd->dstLevel;
3036 GLint dstX = cmd->dstX;
3037 GLint dstY = cmd->dstY;
3038 GLint dstZ = cmd->dstZ;
3039 GLsizei srcWidth = cmd->srcWidth;
3040 GLsizei srcHeight = cmd->srcHeight;
3041 GLsizei srcDepth = cmd->srcDepth;
3044 assert (cmd_size == cmd->cmd_base.cmd_size);
3052 struct marshal_cmd_CopyImageSubData *cmd;
3053 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyImageSubData, cmd_size);
3054 cmd->srcName = srcName;
3055 cmd->srcTarget = srcTarget;
3056 cmd->srcLevel = srcLevel;
3057 cmd->srcX = srcX;
3058 cmd->srcY = srcY;
3059 cmd->srcZ = srcZ;
3060 cmd->dstName = dstName;
3061 cmd->dstTarget = dstTarget;
3062 cmd->dstLevel = dstLevel;
3063 cmd->dstX = dstX;
3064 cmd->dstY = dstY;
3065 cmd->dstZ = dstZ;
3066 cmd->srcWidth = srcWidth;
3067 cmd->srcHeight = srcHeight;
3068 cmd->srcDepth = srcDepth;
3086 _mesa_unmarshal_TextureView(struct gl_context *ctx, const struct marshal_cmd_TextureView *cmd, const uint64_t *last)
3088 GLuint texture = cmd->texture;
3089 GLenum target = cmd->target;
3090 GLuint origtexture = cmd->origtexture;
3091 GLenum internalformat = cmd->internalformat;
3092 GLuint minlevel = cmd->minlevel;
3093 GLuint numlevels = cmd->numlevels;
3094 GLuint minlayer = cmd->minlayer;
3095 GLuint numlayers = cmd->numlayers;
3098 assert (cmd_size == cmd->cmd_base.cmd_size);
3106 struct marshal_cmd_TextureView *cmd;
3107 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureView, cmd_size);
3108 cmd->texture = texture;
3109 cmd->target = target;
3110 cmd->origtexture = origtexture;
3111 cmd->internalformat = internalformat;
3112 cmd->minlevel = minlevel;
3113 cmd->numlevels = numlevels;
3114 cmd->minlayer = minlayer;
3115 cmd->numlayers = numlayers;
3129 _mesa_unmarshal_BindVertexBuffer(struct gl_context *ctx, const struct marshal_cmd_BindVertexBuffer *cmd, const uint64_t *last)
3131 GLuint bindingindex = cmd->bindingindex;
3132 GLuint buffer = cmd->buffer;
3133 GLintptr offset = cmd->offset;
3134 GLsizei stride = cmd->stride;
3137 assert (cmd_size == cmd->cmd_base.cmd_size);
3145 struct marshal_cmd_BindVertexBuffer *cmd;
3146 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindVertexBuffer, cmd_size);
3147 cmd->bindingindex = bindingindex;
3148 cmd->buffer = buffer;
3149 cmd->offset = offset;
3150 cmd->stride = stride;
3166 _mesa_unmarshal_VertexAttribFormat(struct gl_context *ctx, const struct marshal_cmd_VertexAttribFormat *cmd, const uint64_t *last)
3168 GLuint attribindex = cmd->attribindex;
3169 GLint size = cmd->size;
3170 GLenum type = cmd->type;
3171 GLboolean normalized = cmd->normalized;
3172 GLuint relativeoffset = cmd->relativeoffset;
3175 assert (cmd_size == cmd->cmd_base.cmd_size);
3183 struct marshal_cmd_VertexAttribFormat *cmd;
3184 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribFormat, cmd_size);
3185 cmd->attribindex = attribindex;
3186 cmd->size = size;
3187 cmd->type = type;
3188 cmd->normalized = normalized;
3189 cmd->relativeoffset = relativeoffset;
3204 _mesa_unmarshal_VertexAttribIFormat(struct gl_context *ctx, const struct marshal_cmd_VertexAttribIFormat *cmd, const uint64_t *last)
3206 GLuint attribindex = cmd->attribindex;
3207 GLint size = cmd->size;
3208 GLenum type = cmd->type;
3209 GLuint relativeoffset = cmd->relativeoffset;
3212 assert (cmd_size == cmd->cmd_base.cmd_size);
3220 struct marshal_cmd_VertexAttribIFormat *cmd;
3221 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribIFormat, cmd_size);
3222 cmd->attribindex = attribindex;
3223 cmd->size = size;
3224 cmd->type = type;
3225 cmd->relativeoffset = relativeoffset;
3240 _mesa_unmarshal_VertexAttribLFormat(struct gl_context *ctx, const struct marshal_cmd_VertexAttribLFormat *cmd, const uint64_t *last)
3242 GLuint attribindex = cmd->attribindex;
3243 GLint size = cmd->size;
3244 GLenum type = cmd->type;
3245 GLuint relativeoffset = cmd->relativeoffset;
3248 assert (cmd_size == cmd->cmd_base.cmd_size);
3256 struct marshal_cmd_VertexAttribLFormat *cmd;
3257 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribLFormat, cmd_size);
3258 cmd->attribindex = attribindex;
3259 cmd->size = size;
3260 cmd->type = type;
3261 cmd->relativeoffset = relativeoffset;
3274 _mesa_unmarshal_VertexAttribBinding(struct gl_context *ctx, const struct marshal_cmd_VertexAttribBinding *cmd, const uint64_t *last)
3276 GLuint attribindex = cmd->attribindex;
3277 GLuint bindingindex = cmd->bindingindex;
3280 assert (cmd_size == cmd->cmd_base.cmd_size);
3288 struct marshal_cmd_VertexAttribBinding *cmd;
3289 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribBinding, cmd_size);
3290 cmd->attribindex = attribindex;
3291 cmd->bindingindex = bindingindex;
3304 _mesa_unmarshal_VertexBindingDivisor(struct gl_context *ctx, const struct marshal_cmd_VertexBindingDivisor *cmd, const uint64_t *last)
3306 GLuint bindingindex = cmd->bindingindex;
3307 GLuint divisor = cmd->divisor;
3310 assert (cmd_size == cmd->cmd_base.cmd_size);
3318 struct marshal_cmd_VertexBindingDivisor *cmd;
3319 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexBindingDivisor, cmd_size);
3320 cmd->bindingindex = bindingindex;
3321 cmd->divisor = divisor;
3337 _mesa_unmarshal_VertexArrayBindVertexBufferEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayBindVertexBufferEXT *cmd, const uint64_t *last)
3339 GLuint vaobj = cmd->vaobj;
3340 GLuint bindingindex = cmd->bindingindex;
3341 GLuint buffer = cmd->buffer;
3342 GLintptr offset = cmd->offset;
3343 GLsizei stride = cmd->stride;
3346 assert (cmd_size == cmd->cmd_base.cmd_size);
3354 struct marshal_cmd_VertexArrayBindVertexBufferEXT *cmd;
3355 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayBindVertexBufferEXT, cmd_size);
3356 cmd->vaobj = vaobj;
3357 cmd->bindingindex = bindingindex;
3358 cmd->buffer = buffer;
3359 cmd->offset = offset;
3360 cmd->stride = stride;
3377 _mesa_unmarshal_VertexArrayVertexAttribFormatEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexAttribFormatEXT *cmd, const uint64_t *last)
3379 GLuint vaobj = cmd->vaobj;
3380 GLuint attribindex = cmd->attribindex;
3381 GLint size = cmd->size;
3382 GLenum type = cmd->type;
3383 GLboolean normalized = cmd->normalized;
3384 GLuint relativeoffset = cmd->relativeoffset;
3387 assert (cmd_size == cmd->cmd_base.cmd_size);
3395 struct marshal_cmd_VertexArrayVertexAttribFormatEXT *cmd;
3396 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexAttribFormatEXT, cmd_size);
3397 cmd->vaobj = vaobj;
3398 cmd->attribindex = attribindex;
3399 cmd->size = size;
3400 cmd->type = type;
3401 cmd->normalized = normalized;
3402 cmd->relativeoffset = relativeoffset;
3418 _mesa_unmarshal_VertexArrayVertexAttribIFormatEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexAttribIFormatEXT *cmd, const uint64_t *last)
3420 GLuint vaobj = cmd->vaobj;
3421 GLuint attribindex = cmd->attribindex;
3422 GLint size = cmd->size;
3423 GLenum type = cmd->type;
3424 GLuint relativeoffset = cmd->relativeoffset;
3427 assert (cmd_size == cmd->cmd_base.cmd_size);
3435 struct marshal_cmd_VertexArrayVertexAttribIFormatEXT *cmd;
3436 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexAttribIFormatEXT, cmd_size);
3437 cmd->vaobj = vaobj;
3438 cmd->attribindex = attribindex;
3439 cmd->size = size;
3440 cmd->type = type;
3441 cmd->relativeoffset = relativeoffset;
3457 _mesa_unmarshal_VertexArrayVertexAttribLFormatEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexAttribLFormatEXT *cmd, const uint64_t *last)
3459 GLuint vaobj = cmd->vaobj;
3460 GLuint attribindex = cmd->attribindex;
3461 GLint size = cmd->size;
3462 GLenum type = cmd->type;
3463 GLuint relativeoffset = cmd->relativeoffset;
3466 assert (cmd_size == cmd->cmd_base.cmd_size);
3474 struct marshal_cmd_VertexArrayVertexAttribLFormatEXT *cmd;
3475 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexAttribLFormatEXT, cmd_size);
3476 cmd->vaobj = vaobj;
3477 cmd->attribindex = attribindex;
3478 cmd->size = size;
3479 cmd->type = type;
3480 cmd->relativeoffset = relativeoffset;
3494 _mesa_unmarshal_VertexArrayVertexAttribBindingEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexAttribBindingEXT *cmd, const uint64_t *last)
3496 GLuint vaobj = cmd->vaobj;
3497 GLuint attribindex = cmd->attribindex;
3498 GLuint bindingindex = cmd->bindingindex;
3501 assert (cmd_size == cmd->cmd_base.cmd_size);
3509 struct marshal_cmd_VertexArrayVertexAttribBindingEXT *cmd;
3510 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexAttribBindingEXT, cmd_size);
3511 cmd->vaobj = vaobj;
3512 cmd->attribindex = attribindex;
3513 cmd->bindingindex = bindingindex;
3527 _mesa_unmarshal_VertexArrayVertexBindingDivisorEXT(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexBindingDivisorEXT *cmd, const uint64_t *last)
3529 GLuint vaobj = cmd->vaobj;
3530 GLuint bindingindex = cmd->bindingindex;
3531 GLuint divisor = cmd->divisor;
3534 assert (cmd_size == cmd->cmd_base.cmd_size);
3542 struct marshal_cmd_VertexArrayVertexBindingDivisorEXT *cmd;
3543 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexBindingDivisorEXT, cmd_size);
3544 cmd->vaobj = vaobj;
3545 cmd->bindingindex = bindingindex;
3546 cmd->divisor = divisor;
3560 _mesa_unmarshal_FramebufferParameteri(struct gl_context *ctx, const struct marshal_cmd_FramebufferParameteri *cmd, const uint64_t *last)
3562 GLenum target = cmd->target;
3563 GLenum pname = cmd->pname;
3564 GLint param = cmd->param;
3567 assert (cmd_size == cmd->cmd_base.cmd_size);
3575 struct marshal_cmd_FramebufferParameteri *cmd;
3576 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferParameteri, cmd_size);
3577 cmd->target = target;
3578 cmd->pname = pname;
3579 cmd->param = param;
3602 _mesa_unmarshal_NamedFramebufferParameteriEXT(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferParameteriEXT *cmd, const uint64_t *last)
3604 GLuint framebuffer = cmd->framebuffer;
3605 GLenum pname = cmd->pname;
3606 GLint param = cmd->param;
3609 assert (cmd_size == cmd->cmd_base.cmd_size);
3617 struct marshal_cmd_NamedFramebufferParameteriEXT *cmd;
3618 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferParameteriEXT, cmd_size);
3619 cmd->framebuffer = framebuffer;
3620 cmd->pname = pname;
3621 cmd->param = param;
3659 _mesa_unmarshal_InvalidateTexSubImage(struct gl_context *ctx, const struct marshal_cmd_InvalidateTexSubImage *cmd, const uint64_t *last)
3661 GLuint texture = cmd->texture;
3662 GLint level = cmd->level;
3663 GLint xoffset = cmd->xoffset;
3664 GLint yoffset = cmd->yoffset;
3665 GLint zoffset = cmd->zoffset;
3666 GLsizei width = cmd->width;
3667 GLsizei height = cmd->height;
3668 GLsizei depth = cmd->depth;
3671 assert (cmd_size == cmd->cmd_base.cmd_size);
3679 struct marshal_cmd_InvalidateTexSubImage *cmd;
3680 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateTexSubImage, cmd_size);
3681 cmd->texture = texture;
3682 cmd->level = level;
3683 cmd->xoffset = xoffset;
3684 cmd->yoffset = yoffset;
3685 cmd->zoffset = zoffset;
3686 cmd->width = width;
3687 cmd->height = height;
3688 cmd->depth = depth;
3700 _mesa_unmarshal_InvalidateTexImage(struct gl_context *ctx, const struct marshal_cmd_InvalidateTexImage *cmd, const uint64_t *last)
3702 GLuint texture = cmd->texture;
3703 GLint level = cmd->level;
3706 assert (cmd_size == cmd->cmd_base.cmd_size);
3714 struct marshal_cmd_InvalidateTexImage *cmd;
3715 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateTexImage, cmd_size);
3716 cmd->texture = texture;
3717 cmd->level = level;
3730 _mesa_unmarshal_InvalidateBufferSubData(struct gl_context *ctx, const struct marshal_cmd_InvalidateBufferSubData *cmd, const uint64_t *last)
3732 GLuint buffer = cmd->buffer;
3733 GLintptr offset = cmd->offset;
3734 GLsizeiptr length = cmd->length;
3737 assert (cmd_size == cmd->cmd_base.cmd_size);
3745 struct marshal_cmd_InvalidateBufferSubData *cmd;
3746 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateBufferSubData, cmd_size);
3747 cmd->buffer = buffer;
3748 cmd->offset = offset;
3749 cmd->length = length;
3760 _mesa_unmarshal_InvalidateBufferData(struct gl_context *ctx, const struct marshal_cmd_InvalidateBufferData *cmd, const uint64_t *last)
3762 GLuint buffer = cmd->buffer;
3765 assert (cmd_size == cmd->cmd_base.cmd_size);
3773 struct marshal_cmd_InvalidateBufferData *cmd;
3774 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateBufferData, cmd_size);
3775 cmd->buffer = buffer;
3792 _mesa_unmarshal_InvalidateSubFramebuffer(struct gl_context *ctx, const struct marshal_cmd_InvalidateSubFramebuffer *cmd, const uint64_t *last)
3794 GLenum target = cmd->target;
3795 GLsizei numAttachments = cmd->numAttachments;
3796 GLint x = cmd->x;
3797 GLint y = cmd->y;
3798 GLsizei width = cmd->width;
3799 GLsizei height = cmd->height;
3801 const char *variable_data = (const char *) (cmd + 1);
3804 return cmd->cmd_base.cmd_size;
3812 struct marshal_cmd_InvalidateSubFramebuffer *cmd;
3818 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateSubFramebuffer, cmd_size);
3819 cmd->target = target;
3820 cmd->numAttachments = numAttachments;
3821 cmd->x = x;
3822 cmd->y = y;
3823 cmd->width = width;
3824 cmd->height = height;
3825 char *variable_data = (char *) (cmd + 1);
3839 _mesa_unmarshal_InvalidateFramebuffer(struct gl_context *ctx, const struct marshal_cmd_InvalidateFramebuffer *cmd, const uint64_t *last)
3841 GLenum target = cmd->target;
3842 GLsizei numAttachments = cmd->numAttachments;
3844 const char *variable_data = (const char *) (cmd + 1);
3847 return cmd->cmd_base.cmd_size;
3855 struct marshal_cmd_InvalidateFramebuffer *cmd;
3861 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateFramebuffer, cmd_size);
3862 cmd->target = target;
3863 cmd->numAttachments = numAttachments;
3864 char *variable_data = (char *) (cmd + 1);
3938 _mesa_unmarshal_ShaderStorageBlockBinding(struct gl_context *ctx, const struct marshal_cmd_ShaderStorageBlockBinding *cmd, const uint64_t *last)
3940 GLuint program = cmd->program;
3941 GLuint shaderStorageBlockIndex = cmd->shaderStorageBlockIndex;
3942 GLuint shaderStorageBlockBinding = cmd->shaderStorageBlockBinding;
3945 assert (cmd_size == cmd->cmd_base.cmd_size);
3953 struct marshal_cmd_ShaderStorageBlockBinding *cmd;
3954 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ShaderStorageBlockBinding, cmd_size);
3955 cmd->program = program;
3956 cmd->shaderStorageBlockIndex = shaderStorageBlockIndex;
3957 cmd->shaderStorageBlockBinding = shaderStorageBlockBinding;
3972 _mesa_unmarshal_TexBufferRange(struct gl_context *ctx, const struct marshal_cmd_TexBufferRange *cmd, const uint64_t *last)
3974 GLenum target = cmd->target;
3975 GLenum internalformat = cmd->internalformat;
3976 GLuint buffer = cmd->buffer;
3977 GLintptr offset = cmd->offset;
3978 GLsizeiptr size = cmd->size;
3981 assert (cmd_size == cmd->cmd_base.cmd_size);
3989 struct marshal_cmd_TexBufferRange *cmd;
3990 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexBufferRange, cmd_size);
3991 cmd->target = target;
3992 cmd->internalformat = internalformat;
3993 cmd->buffer = buffer;
3994 cmd->offset = offset;
3995 cmd->size = size;
4011 _mesa_unmarshal_TextureBufferRangeEXT(struct gl_context *ctx, const struct marshal_cmd_TextureBufferRangeEXT *cmd, const uint64_t *last)
4013 GLuint texture = cmd->texture;
4014 GLenum target = cmd->target;
4015 GLenum internalformat = cmd->internalformat;
4016 GLuint buffer = cmd->buffer;
4017 GLintptr offset = cmd->offset;
4018 GLsizeiptr size = cmd->size;
4021 assert (cmd_size == cmd->cmd_base.cmd_size);
4029 struct marshal_cmd_TextureBufferRangeEXT *cmd;
4030 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureBufferRangeEXT, cmd_size);
4031 cmd->texture = texture;
4032 cmd->target = target;
4033 cmd->internalformat = internalformat;
4034 cmd->buffer = buffer;
4035 cmd->offset = offset;
4036 cmd->size = size;
4052 _mesa_unmarshal_TexStorage2DMultisample(struct gl_context *ctx, const struct marshal_cmd_TexStorage2DMultisample *cmd, const uint64_t *last)
4054 GLenum target = cmd->target;
4055 GLsizei samples = cmd->samples;
4056 GLenum internalformat = cmd->internalformat;
4057 GLsizei width = cmd->width;
4058 GLsizei height = cmd->height;
4059 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
4062 assert (cmd_size == cmd->cmd_base.cmd_size);
4070 struct marshal_cmd_TexStorage2DMultisample *cmd;
4071 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorage2DMultisample, cmd_size);
4072 cmd->target = target;
4073 cmd->samples = samples;
4074 cmd->internalformat = internalformat;
4075 cmd->width = width;
4076 cmd->height = height;
4077 cmd->fixedsamplelocations = fixedsamplelocations;
4094 _mesa_unmarshal_TexStorage3DMultisample(struct gl_context *ctx, const struct marshal_cmd_TexStorage3DMultisample *cmd, const uint64_t *last)
4096 GLenum target = cmd->target;
4097 GLsizei samples = cmd->samples;
4098 GLenum internalformat = cmd->internalformat;
4099 GLsizei width = cmd->width;
4100 GLsizei height = cmd->height;
4101 GLsizei depth = cmd->depth;
4102 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
4105 assert (cmd_size == cmd->cmd_base.cmd_size);
4113 struct marshal_cmd_TexStorage3DMultisample *cmd;
4114 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorage3DMultisample, cmd_size);
4115 cmd->target = target;
4116 cmd->samples = samples;
4117 cmd->internalformat = internalformat;
4118 cmd->width = width;
4119 cmd->height = height;
4120 cmd->depth = depth;
4121 cmd->fixedsamplelocations = fixedsamplelocations;
4138 _mesa_unmarshal_TextureStorage2DMultisampleEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorage2DMultisampleEXT *cmd, const uint64_t *last)
4140 GLuint texture = cmd->texture;
4141 GLenum target = cmd->target;
4142 GLsizei samples = cmd->samples;
4143 GLenum internalformat = cmd->internalformat;
4144 GLsizei width = cmd->width;
4145 GLsizei height = cmd->height;
4146 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
4149 assert (cmd_size == cmd->cmd_base.cmd_size);
4157 struct marshal_cmd_TextureStorage2DMultisampleEXT *cmd;
4158 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage2DMultisampleEXT, cmd_size);
4159 cmd->texture = texture;
4160 cmd->target = target;
4161 cmd->samples = samples;
4162 cmd->internalformat = internalformat;
4163 cmd->width = width;
4164 cmd->height = height;
4165 cmd->fixedsamplelocations = fixedsamplelocations;
4183 _mesa_unmarshal_TextureStorage3DMultisampleEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorage3DMultisampleEXT *cmd, const uint64_t *last)
4185 GLuint texture = cmd->texture;
4186 GLenum target = cmd->target;
4187 GLsizei samples = cmd->samples;
4188 GLenum internalformat = cmd->internalformat;
4189 GLsizei width = cmd->width;
4190 GLsizei height = cmd->height;
4191 GLsizei depth = cmd->depth;
4192 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
4195 assert (cmd_size == cmd->cmd_base.cmd_size);
4203 struct marshal_cmd_TextureStorage3DMultisampleEXT *cmd;
4204 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage3DMultisampleEXT, cmd_size);
4205 cmd->texture = texture;
4206 cmd->target = target;
4207 cmd->samples = samples;
4208 cmd->internalformat = internalformat;
4209 cmd->width = width;
4210 cmd->height = height;
4211 cmd->depth = depth;
4212 cmd->fixedsamplelocations = fixedsamplelocations;
4266 _mesa_unmarshal_BindBuffersBase(struct gl_context *ctx, const struct marshal_cmd_BindBuffersBase *cmd, const uint64_t *last)
4268 GLenum target = cmd->target;
4269 GLuint first = cmd->first;
4270 GLsizei count = cmd->count;
4272 const char *variable_data = (const char *) (cmd + 1);
4275 return cmd->cmd_base.cmd_size;
4283 struct marshal_cmd_BindBuffersBase *cmd;
4289 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindBuffersBase, cmd_size);
4290 cmd->target = target;
4291 cmd->first = first;
4292 cmd->count = count;
4293 char *variable_data = (char *) (cmd + 1);
4310 _mesa_unmarshal_BindBuffersRange(struct gl_context *ctx, const struct marshal_cmd_BindBuffersRange *cmd, const uint64_t *last)
4312 GLenum target = cmd->target;
4313 GLuint first = cmd->first;
4314 GLsizei count = cmd->count;
4318 const char *variable_data = (const char *) (cmd + 1);
4325 return cmd->cmd_base.cmd_size;
4335 struct marshal_cmd_BindBuffersRange *cmd;
4341 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindBuffersRange, cmd_size);
4342 cmd->target = target;
4343 cmd->first = first;
4344 cmd->count = count;
4345 char *variable_data = (char *) (cmd + 1);
4363 _mesa_unmarshal_BindTextures(struct gl_context *ctx, const struct marshal_cmd_BindTextures *cmd, const uint64_t *last)
4365 GLuint first = cmd->first;
4366 GLsizei count = cmd->count;
4368 const char *variable_data = (const char *) (cmd + 1);
4371 return cmd->cmd_base.cmd_size;
4379 struct marshal_cmd_BindTextures *cmd;
4385 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindTextures, cmd_size);
4386 cmd->first = first;
4387 cmd->count = count;
4388 char *variable_data = (char *) (cmd + 1);
4402 _mesa_unmarshal_BindSamplers(struct gl_context *ctx, const struct marshal_cmd_BindSamplers *cmd, const uint64_t *last)
4404 GLuint first = cmd->first;
4405 GLsizei count = cmd->count;
4407 const char *variable_data = (const char *) (cmd + 1);
4410 return cmd->cmd_base.cmd_size;
4418 struct marshal_cmd_BindSamplers *cmd;
4424 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindSamplers, cmd_size);
4425 cmd->first = first;
4426 cmd->count = count;
4427 char *variable_data = (char *) (cmd + 1);
4441 _mesa_unmarshal_BindImageTextures(struct gl_context *ctx, const struct marshal_cmd_BindImageTextures *cmd, const uint64_t *last)
4443 GLuint first = cmd->first;
4444 GLsizei count = cmd->count;
4446 const char *variable_data = (const char *) (cmd + 1);
4449 return cmd->cmd_base.cmd_size;
4457 struct marshal_cmd_BindImageTextures *cmd;
4463 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindImageTextures, cmd_size);
4464 cmd->first = first;
4465 cmd->count = count;
4466 char *variable_data = (char *) (cmd + 1);
4482 _mesa_unmarshal_BindVertexBuffers(struct gl_context *ctx, const struct marshal_cmd_BindVertexBuffers *cmd, const uint64_t *last)
4484 GLuint first = cmd->first;
4485 GLsizei count = cmd->count;
4489 const char *variable_data = (const char *) (cmd + 1);
4496 return cmd->cmd_base.cmd_size;
4506 struct marshal_cmd_BindVertexBuffers *cmd;
4512 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindVertexBuffers, cmd_size);
4513 cmd->first = first;
4514 cmd->count = count;
4515 char *variable_data = (char *) (cmd + 1);
4551 _mesa_unmarshal_MakeTextureHandleResidentARB(struct gl_context *ctx, const struct marshal_cmd_MakeTextureHandleResidentARB *cmd, const uint64_t *last)
4553 GLuint64 handle = cmd->handle;
4556 assert (cmd_size == cmd->cmd_base.cmd_size);
4564 struct marshal_cmd_MakeTextureHandleResidentARB *cmd;
4565 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MakeTextureHandleResidentARB, cmd_size);
4566 cmd->handle = handle;
4577 _mesa_unmarshal_MakeTextureHandleNonResidentARB(struct gl_context *ctx, const struct marshal_cmd_MakeTextureHandleNonResidentARB *cmd, const uint64_t *last)
4579 GLuint64 handle = cmd->handle;
4582 assert (cmd_size == cmd->cmd_base.cmd_size);
4590 struct marshal_cmd_MakeTextureHandleNonResidentARB *cmd;
4591 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MakeTextureHandleNonResidentARB, cmd_size);
4592 cmd->handle = handle;
4614 _mesa_unmarshal_MakeImageHandleResidentARB(struct gl_context *ctx, const struct marshal_cmd_MakeImageHandleResidentARB *cmd, const uint64_t *last)
4616 GLuint64 handle = cmd->handle;
4617 GLenum access = cmd->access;
4620 assert (cmd_size == cmd->cmd_base.cmd_size);
4628 struct marshal_cmd_MakeImageHandleResidentARB *cmd;
4629 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MakeImageHandleResidentARB, cmd_size);
4630 cmd->handle = handle;
4631 cmd->access = access;
4642 _mesa_unmarshal_MakeImageHandleNonResidentARB(struct gl_context *ctx, const struct marshal_cmd_MakeImageHandleNonResidentARB *cmd, const uint64_t *last)
4644 GLuint64 handle = cmd->handle;
4647 assert (cmd_size == cmd->cmd_base.cmd_size);
4655 struct marshal_cmd_MakeImageHandleNonResidentARB *cmd;
4656 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MakeImageHandleNonResidentARB, cmd_size);
4657 cmd->handle = handle;
4669 _mesa_unmarshal_UniformHandleui64ARB(struct gl_context *ctx, const struct marshal_cmd_UniformHandleui64ARB *cmd, const uint64_t *last)
4671 GLint location = cmd->location;
4672 GLuint64 value = cmd->value;
4675 assert (cmd_size == cmd->cmd_base.cmd_size);
4683 struct marshal_cmd_UniformHandleui64ARB *cmd;
4684 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformHandleui64ARB, cmd_size);
4685 cmd->location = location;
4686 cmd->value = value;
4699 _mesa_unmarshal_UniformHandleui64vARB(struct gl_context *ctx, const struct marshal_cmd_UniformHandleui64vARB *cmd, const uint64_t *last)
4701 GLint location = cmd->location;
4702 GLsizei count = cmd->count;
4704 const char *variable_data = (const char *) (cmd + 1);
4707 return cmd->cmd_base.cmd_size;
4715 struct marshal_cmd_UniformHandleui64vARB *cmd;
4721 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UniformHandleui64vARB, cmd_size);
4722 cmd->location = location;
4723 cmd->count = count;
4724 char *variable_data = (char *) (cmd + 1);
4738 _mesa_unmarshal_ProgramUniformHandleui64ARB(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformHandleui64ARB *cmd, const uint64_t *last)
4740 GLuint program = cmd->program;
4741 GLint location = cmd->location;
4742 GLuint64 value = cmd->value;
4745 assert (cmd_size == cmd->cmd_base.cmd_size);
4753 struct marshal_cmd_ProgramUniformHandleui64ARB *cmd;
4754 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformHandleui64ARB, cmd_size);
4755 cmd->program = program;
4756 cmd->location = location;
4757 cmd->value = value;
4771 _mesa_unmarshal_ProgramUniformHandleui64vARB(struct gl_context *ctx, const struct marshal_cmd_ProgramUniformHandleui64vARB *cmd, const uint64_t *last)
4773 GLuint program = cmd->program;
4774 GLint location = cmd->location;
4775 GLsizei count = cmd->count;
4777 const char *variable_data = (const char *) (cmd + 1);
4780 return cmd->cmd_base.cmd_size;
4788 struct marshal_cmd_ProgramUniformHandleui64vARB *cmd;
4794 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramUniformHandleui64vARB, cmd_size);
4795 cmd->program = program;
4796 cmd->location = location;
4797 cmd->count = count;
4798 char *variable_data = (char *) (cmd + 1);
4831 _mesa_unmarshal_VertexAttribL1ui64ARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL1ui64ARB *cmd, const uint64_t *last)
4833 GLuint index = cmd->index;
4834 GLuint64EXT x = cmd->x;
4837 assert (cmd_size == cmd->cmd_base.cmd_size);
4845 struct marshal_cmd_VertexAttribL1ui64ARB *cmd;
4846 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL1ui64ARB, cmd_size);
4847 cmd->index = index;
4848 cmd->x = x;
4860 _mesa_unmarshal_VertexAttribL1ui64vARB(struct gl_context *ctx, const struct marshal_cmd_VertexAttribL1ui64vARB *cmd, const uint64_t *last)
4862 GLuint index = cmd->index;
4863 const GLuint64EXT * v = cmd->v;
4866 assert (cmd_size == cmd->cmd_base.cmd_size);
4874 struct marshal_cmd_VertexAttribL1ui64vARB *cmd;
4875 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribL1ui64vARB, cmd_size);
4876 cmd->index = index;
4877 memcpy(cmd->v, v, 1 * sizeof(GLuint64EXT));
4903 _mesa_unmarshal_DispatchComputeGroupSizeARB(struct gl_context *ctx, const struct marshal_cmd_DispatchComputeGroupSizeARB *cmd, const uint64_t *last)
4905 GLuint num_groups_x = cmd->num_groups_x;
4906 GLuint num_groups_y = cmd->num_groups_y;
4907 GLuint num_groups_z = cmd->num_groups_z;
4908 GLuint group_size_x = cmd->group_size_x;
4909 GLuint group_size_y = cmd->group_size_y;
4910 GLuint group_size_z = cmd->group_size_z;
4913 assert (cmd_size == cmd->cmd_base.cmd_size);
4921 struct marshal_cmd_DispatchComputeGroupSizeARB *cmd;
4922 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DispatchComputeGroupSizeARB, cmd_size);
4923 cmd->num_groups_x = num_groups_x;
4924 cmd->num_groups_y = num_groups_y;
4925 cmd->num_groups_z = num_groups_z;
4926 cmd->group_size_x = group_size_x;
4927 cmd->group_size_y = group_size_y;
4928 cmd->group_size_z = group_size_z;
4943 _mesa_unmarshal_MultiDrawArraysIndirectCountARB(struct gl_context *ctx, const struct marshal_cmd_MultiDrawArraysIndirectCountARB *cmd, const uint64_t *last)
4945 GLenum mode = cmd->mode;
4946 GLintptr indirect = cmd->indirect;
4947 GLintptr drawcount = cmd->drawcount;
4948 GLsizei maxdrawcount = cmd->maxdrawcount;
4949 GLsizei stride = cmd->stride;
4952 assert (cmd_size == cmd->cmd_base.cmd_size);
4960 struct marshal_cmd_MultiDrawArraysIndirectCountARB *cmd;
4966 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiDrawArraysIndirectCountARB, cmd_size);
4967 cmd->mode = mode;
4968 cmd->indirect = indirect;
4969 cmd->drawcount = drawcount;
4970 cmd->maxdrawcount = maxdrawcount;
4971 cmd->stride = stride;
4987 _mesa_unmarshal_MultiDrawElementsIndirectCountARB(struct gl_context *ctx, const struct marshal_cmd_MultiDrawElementsIndirectCountARB *cmd, const uint64_t *last)
4989 GLenum mode = cmd->mode;
4990 GLenum type = cmd->type;
4991 GLintptr indirect = cmd->indirect;
4992 GLintptr drawcount = cmd->drawcount;
4993 GLsizei maxdrawcount = cmd->maxdrawcount;
4994 GLsizei stride = cmd->stride;
4997 assert (cmd_size == cmd->cmd_base.cmd_size);
5005 struct marshal_cmd_MultiDrawElementsIndirectCountARB *cmd;
5011 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiDrawElementsIndirectCountARB, cmd_size);
5012 cmd->mode = mode;
5013 cmd->type = type;
5014 cmd->indirect = indirect;
5015 cmd->drawcount = drawcount;
5016 cmd->maxdrawcount = maxdrawcount;
5017 cmd->stride = stride;
5029 _mesa_unmarshal_ClipControl(struct gl_context *ctx, const struct marshal_cmd_ClipControl *cmd, const uint64_t *last)
5031 GLenum origin = cmd->origin;
5032 GLenum depth = cmd->depth;
5035 assert (cmd_size == cmd->cmd_base.cmd_size);
5043 struct marshal_cmd_ClipControl *cmd;
5044 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClipControl, cmd_size);
5045 cmd->origin = origin;
5046 cmd->depth = depth;
5069 _mesa_unmarshal_TransformFeedbackBufferBase(struct gl_context *ctx, const struct marshal_cmd_TransformFeedbackBufferBase *cmd, const uint64_t *last)
5071 GLuint xfb = cmd->xfb;
5072 GLuint index = cmd->index;
5073 GLuint buffer = cmd->buffer;
5076 assert (cmd_size == cmd->cmd_base.cmd_size);
5084 struct marshal_cmd_TransformFeedbackBufferBase *cmd;
5085 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TransformFeedbackBufferBase, cmd_size);
5086 cmd->xfb = xfb;
5087 cmd->index = index;
5088 cmd->buffer = buffer;
5103 _mesa_unmarshal_TransformFeedbackBufferRange(struct gl_context *ctx, const struct marshal_cmd_TransformFeedbackBufferRange *cmd, const uint64_t *last)
5105 GLuint xfb = cmd->xfb;
5106 GLuint index = cmd->index;
5107 GLuint buffer = cmd->buffer;
5108 GLintptr offset = cmd->offset;
5109 GLsizeiptr size = cmd->size;
5112 assert (cmd_size == cmd->cmd_base.cmd_size);
5120 struct marshal_cmd_TransformFeedbackBufferRange *cmd;
5121 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TransformFeedbackBufferRange, cmd_size);
5122 cmd->xfb = xfb;
5123 cmd->index = index;
5124 cmd->buffer = buffer;
5125 cmd->offset = offset;
5126 cmd->size = size;
5191 _mesa_unmarshal_CopyNamedBufferSubData(struct gl_context *ctx, const struct marshal_cmd_CopyNamedBufferSubData *cmd, const uint64_t *last)
5193 GLuint readBuffer = cmd->readBuffer;
5194 GLuint writeBuffer = cmd->writeBuffer;
5195 GLintptr readOffset = cmd->readOffset;
5196 GLintptr writeOffset = cmd->writeOffset;
5197 GLsizeiptr size = cmd->size;
5200 assert (cmd_size == cmd->cmd_base.cmd_size);
5208 struct marshal_cmd_CopyNamedBufferSubData *cmd;
5209 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyNamedBufferSubData, cmd_size);
5210 cmd->readBuffer = readBuffer;
5211 cmd->writeBuffer = writeBuffer;
5212 cmd->readOffset = readOffset;
5213 cmd->writeOffset = writeOffset;
5214 cmd->size = size;
5265 _mesa_unmarshal_UnmapNamedBufferEXT(struct gl_context *ctx, const struct marshal_cmd_UnmapNamedBufferEXT *cmd, const uint64_t *last)
5267 GLuint buffer = cmd->buffer;
5270 assert (cmd_size == cmd->cmd_base.cmd_size);
5278 struct marshal_cmd_UnmapNamedBufferEXT *cmd;
5279 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_UnmapNamedBufferEXT, cmd_size);
5280 cmd->buffer = buffer;
5294 _mesa_unmarshal_FlushMappedNamedBufferRange(struct gl_context *ctx, const struct marshal_cmd_FlushMappedNamedBufferRange *cmd, const uint64_t *last)
5296 GLuint buffer = cmd->buffer;
5297 GLintptr offset = cmd->offset;
5298 GLsizeiptr length = cmd->length;
5301 assert (cmd_size == cmd->cmd_base.cmd_size);
5309 struct marshal_cmd_FlushMappedNamedBufferRange *cmd;
5310 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FlushMappedNamedBufferRange, cmd_size);
5311 cmd->buffer = buffer;
5312 cmd->offset = offset;
5313 cmd->length = length;
5377 _mesa_unmarshal_NamedFramebufferRenderbuffer(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferRenderbuffer *cmd, const uint64_t *last)
5379 GLuint framebuffer = cmd->framebuffer;
5380 GLenum attachment = cmd->attachment;
5381 GLenum renderbuffertarget = cmd->renderbuffertarget;
5382 GLuint renderbuffer = cmd->renderbuffer;
5385 assert (cmd_size == cmd->cmd_base.cmd_size);
5393 struct marshal_cmd_NamedFramebufferRenderbuffer *cmd;
5394 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferRenderbuffer, cmd_size);
5395 cmd->framebuffer = framebuffer;
5396 cmd->attachment = attachment;
5397 cmd->renderbuffertarget = renderbuffertarget;
5398 cmd->renderbuffer = renderbuffer;
5411 _mesa_unmarshal_NamedFramebufferParameteri(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferParameteri *cmd, const uint64_t *last)
5413 GLuint framebuffer = cmd->framebuffer;
5414 GLenum pname = cmd->pname;
5415 GLint param = cmd->param;
5418 assert (cmd_size == cmd->cmd_base.cmd_size);
5426 struct marshal_cmd_NamedFramebufferParameteri *cmd;
5427 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferParameteri, cmd_size);
5428 cmd->framebuffer = framebuffer;
5429 cmd->pname = pname;
5430 cmd->param = param;
5444 _mesa_unmarshal_NamedFramebufferTexture(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferTexture *cmd, const uint64_t *last)
5446 GLuint framebuffer = cmd->framebuffer;
5447 GLenum attachment = cmd->attachment;
5448 GLuint texture = cmd->texture;
5449 GLint level = cmd->level;
5452 assert (cmd_size == cmd->cmd_base.cmd_size);
5460 struct marshal_cmd_NamedFramebufferTexture *cmd;
5461 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferTexture, cmd_size);
5462 cmd->framebuffer = framebuffer;
5463 cmd->attachment = attachment;
5464 cmd->texture = texture;
5465 cmd->level = level;
5480 _mesa_unmarshal_NamedFramebufferTextureLayer(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferTextureLayer *cmd, const uint64_t *last)
5482 GLuint framebuffer = cmd->framebuffer;
5483 GLenum attachment = cmd->attachment;
5484 GLuint texture = cmd->texture;
5485 GLint level = cmd->level;
5486 GLint layer = cmd->layer;
5489 assert (cmd_size == cmd->cmd_base.cmd_size);
5497 struct marshal_cmd_NamedFramebufferTextureLayer *cmd;
5498 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferTextureLayer, cmd_size);
5499 cmd->framebuffer = framebuffer;
5500 cmd->attachment = attachment;
5501 cmd->texture = texture;
5502 cmd->level = level;
5503 cmd->layer = layer;
5515 _mesa_unmarshal_NamedFramebufferDrawBuffer(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferDrawBuffer *cmd, const uint64_t *last)
5517 GLuint framebuffer = cmd->framebuffer;
5518 GLenum buf = cmd->buf;
5521 assert (cmd_size == cmd->cmd_base.cmd_size);
5529 struct marshal_cmd_NamedFramebufferDrawBuffer *cmd;
5530 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferDrawBuffer, cmd_size);
5531 cmd->framebuffer = framebuffer;
5532 cmd->buf = buf;
5545 _mesa_unmarshal_NamedFramebufferDrawBuffers(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferDrawBuffers *cmd, const uint64_t *last)
5547 GLuint framebuffer = cmd->framebuffer;
5548 GLsizei n = cmd->n;
5550 const char *variable_data = (const char *) (cmd + 1);
5553 return cmd->cmd_base.cmd_size;
5561 struct marshal_cmd_NamedFramebufferDrawBuffers *cmd;
5567 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferDrawBuffers, cmd_size);
5568 cmd->framebuffer = framebuffer;
5569 cmd->n = n;
5570 char *variable_data = (char *) (cmd + 1);
5583 _mesa_unmarshal_NamedFramebufferReadBuffer(struct gl_context *ctx, const struct marshal_cmd_NamedFramebufferReadBuffer *cmd, const uint64_t *last)
5585 GLuint framebuffer = cmd->framebuffer;
5586 GLenum buf = cmd->buf;
5589 assert (cmd_size == cmd->cmd_base.cmd_size);
5597 struct marshal_cmd_NamedFramebufferReadBuffer *cmd;
5598 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedFramebufferReadBuffer, cmd_size);
5599 cmd->framebuffer = framebuffer;
5600 cmd->buf = buf;
5613 _mesa_unmarshal_InvalidateNamedFramebufferData(struct gl_context *ctx, const struct marshal_cmd_InvalidateNamedFramebufferData *cmd, const uint64_t *last)
5615 GLuint framebuffer = cmd->framebuffer;
5616 GLsizei numAttachments = cmd->numAttachments;
5618 const char *variable_data = (const char *) (cmd + 1);
5621 return cmd->cmd_base.cmd_size;
5629 struct marshal_cmd_InvalidateNamedFramebufferData *cmd;
5635 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateNamedFramebufferData, cmd_size);
5636 cmd->framebuffer = framebuffer;
5637 cmd->numAttachments = numAttachments;
5638 char *variable_data = (char *) (cmd + 1);
5656 _mesa_unmarshal_InvalidateNamedFramebufferSubData(struct gl_context *ctx, const struct marshal_cmd_InvalidateNamedFramebufferSubData *cmd, const uint64_t *last)
5658 GLuint framebuffer = cmd->framebuffer;
5659 GLsizei numAttachments = cmd->numAttachments;
5660 GLint x = cmd->x;
5661 GLint y = cmd->y;
5662 GLsizei width = cmd->width;
5663 GLsizei height = cmd->height;
5665 const char *variable_data = (const char *) (cmd + 1);
5668 return cmd->cmd_base.cmd_size;
5676 struct marshal_cmd_InvalidateNamedFramebufferSubData *cmd;
5682 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InvalidateNamedFramebufferSubData, cmd_size);
5683 cmd->framebuffer = framebuffer;
5684 cmd->numAttachments = numAttachments;
5685 cmd->x = x;
5686 cmd->y = y;
5687 cmd->width = width;
5688 cmd->height = height;
5689 char *variable_data = (char *) (cmd + 1);
5704 _mesa_unmarshal_ClearNamedFramebufferiv(struct gl_context *ctx, const struct marshal_cmd_ClearNamedFramebufferiv *cmd, const uint64_t *last)
5706 GLuint framebuffer = cmd->framebuffer;
5707 GLenum buffer = cmd->buffer;
5708 GLint drawbuffer = cmd->drawbuffer;
5710 const char *variable_data = (const char *) (cmd + 1);
5713 return cmd->cmd_base.cmd_size;
5721 struct marshal_cmd_ClearNamedFramebufferiv *cmd;
5727 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearNamedFramebufferiv, cmd_size);
5728 cmd->framebuffer = framebuffer;
5729 cmd->buffer = buffer;
5730 cmd->drawbuffer = drawbuffer;
5731 char *variable_data = (char *) (cmd + 1);
5746 _mesa_unmarshal_ClearNamedFramebufferuiv(struct gl_context *ctx, const struct marshal_cmd_ClearNamedFramebufferuiv *cmd, const uint64_t *last)
5748 GLuint framebuffer = cmd->framebuffer;
5749 GLenum buffer = cmd->buffer;
5750 GLint drawbuffer = cmd->drawbuffer;
5752 const char *variable_data = (const char *) (cmd + 1);
5755 return cmd->cmd_base.cmd_size;
5763 struct marshal_cmd_ClearNamedFramebufferuiv *cmd;
5769 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearNamedFramebufferuiv, cmd_size);
5770 cmd->framebuffer = framebuffer;
5771 cmd->buffer = buffer;
5772 cmd->drawbuffer = drawbuffer;
5773 char *variable_data = (char *) (cmd + 1);
5788 _mesa_unmarshal_ClearNamedFramebufferfv(struct gl_context *ctx, const struct marshal_cmd_ClearNamedFramebufferfv *cmd, const uint64_t *last)
5790 GLuint framebuffer = cmd->framebuffer;
5791 GLenum buffer = cmd->buffer;
5792 GLint drawbuffer = cmd->drawbuffer;
5794 const char *variable_data = (const char *) (cmd + 1);
5797 return cmd->cmd_base.cmd_size;
5805 struct marshal_cmd_ClearNamedFramebufferfv *cmd;
5811 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearNamedFramebufferfv, cmd_size);
5812 cmd->framebuffer = framebuffer;
5813 cmd->buffer = buffer;
5814 cmd->drawbuffer = drawbuffer;
5815 char *variable_data = (char *) (cmd + 1);
5831 _mesa_unmarshal_ClearNamedFramebufferfi(struct gl_context *ctx, const struct marshal_cmd_ClearNamedFramebufferfi *cmd, const uint64_t *last)
5833 GLuint framebuffer = cmd->framebuffer;
5834 GLenum buffer = cmd->buffer;
5835 GLint drawbuffer = cmd->drawbuffer;
5836 GLfloat depth = cmd->depth;
5837 GLint stencil = cmd->stencil;
5840 assert (cmd_size == cmd->cmd_base.cmd_size);
5848 struct marshal_cmd_ClearNamedFramebufferfi *cmd;
5849 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearNamedFramebufferfi, cmd_size);
5850 cmd->framebuffer = framebuffer;
5851 cmd->buffer = buffer;
5852 cmd->drawbuffer = drawbuffer;
5853 cmd->depth = depth;
5854 cmd->stencil = stencil;
5876 _mesa_unmarshal_BlitNamedFramebuffer(struct gl_context *ctx, const struct marshal_cmd_BlitNamedFramebuffer *cmd, const uint64_t *last)
5878 GLuint readFramebuffer = cmd->readFramebuffer;
5879 GLuint drawFramebuffer = cmd->drawFramebuffer;
5880 GLint srcX0 = cmd->srcX0;
5881 GLint srcY0 = cmd->srcY0;
5882 GLint srcX1 = cmd->srcX1;
5883 GLint srcY1 = cmd->srcY1;
5884 GLint dstX0 = cmd->dstX0;
5885 GLint dstY0 = cmd->dstY0;
5886 GLint dstX1 = cmd->dstX1;
5887 GLint dstY1 = cmd->dstY1;
5888 GLbitfield mask = cmd->mask;
5889 GLenum filter = cmd->filter;
5892 assert (cmd_size == cmd->cmd_base.cmd_size);
5900 struct marshal_cmd_BlitNamedFramebuffer *cmd;
5901 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BlitNamedFramebuffer, cmd_size);
5902 cmd->readFramebuffer = readFramebuffer;
5903 cmd->drawFramebuffer = drawFramebuffer;
5904 cmd->srcX0 = srcX0;
5905 cmd->srcY0 = srcY0;
5906 cmd->srcX1 = srcX1;
5907 cmd->srcY1 = srcY1;
5908 cmd->dstX0 = dstX0;
5909 cmd->dstY0 = dstY0;
5910 cmd->dstX1 = dstX1;
5911 cmd->dstY1 = dstY1;
5912 cmd->mask = mask;
5913 cmd->filter = filter;
5967 _mesa_unmarshal_NamedRenderbufferStorage(struct gl_context *ctx, const struct marshal_cmd_NamedRenderbufferStorage *cmd, const uint64_t *last)
5969 GLuint renderbuffer = cmd->renderbuffer;
5970 GLenum internalformat = cmd->internalformat;
5971 GLsizei width = cmd->width;
5972 GLsizei height = cmd->height;
5975 assert (cmd_size == cmd->cmd_base.cmd_size);
5983 struct marshal_cmd_NamedRenderbufferStorage *cmd;
5984 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedRenderbufferStorage, cmd_size);
5985 cmd->renderbuffer = renderbuffer;
5986 cmd->internalformat = internalformat;
5987 cmd->width = width;
5988 cmd->height = height;
6003 _mesa_unmarshal_NamedRenderbufferStorageMultisample(struct gl_context *ctx, const struct marshal_cmd_NamedRenderbufferStorageMultisample *cmd, const uint64_t *last)
6005 GLuint renderbuffer = cmd->renderbuffer;
6006 GLsizei samples = cmd->samples;
6007 GLenum internalformat = cmd->internalformat;
6008 GLsizei width = cmd->width;
6009 GLsizei height = cmd->height;
6012 assert (cmd_size == cmd->cmd_base.cmd_size);
6020 struct marshal_cmd_NamedRenderbufferStorageMultisample *cmd;
6021 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedRenderbufferStorageMultisample, cmd_size);
6022 cmd->renderbuffer = renderbuffer;
6023 cmd->samples = samples;
6024 cmd->internalformat = internalformat;
6025 cmd->width = width;
6026 cmd->height = height;
6059 _mesa_unmarshal_TextureBuffer(struct gl_context *ctx, const struct marshal_cmd_TextureBuffer *cmd, const uint64_t *last)
6061 GLuint texture = cmd->texture;
6062 GLenum internalformat = cmd->internalformat;
6063 GLuint buffer = cmd->buffer;
6066 assert (cmd_size == cmd->cmd_base.cmd_size);
6074 struct marshal_cmd_TextureBuffer *cmd;
6075 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureBuffer, cmd_size);
6076 cmd->texture = texture;
6077 cmd->internalformat = internalformat;
6078 cmd->buffer = buffer;
6093 _mesa_unmarshal_TextureBufferRange(struct gl_context *ctx, const struct marshal_cmd_TextureBufferRange *cmd, const uint64_t *last)
6095 GLuint texture = cmd->texture;
6096 GLenum internalformat = cmd->internalformat;
6097 GLuint buffer = cmd->buffer;
6098 GLintptr offset = cmd->offset;
6099 GLsizeiptr size = cmd->size;
6102 assert (cmd_size == cmd->cmd_base.cmd_size);
6110 struct marshal_cmd_TextureBufferRange *cmd;
6111 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureBufferRange, cmd_size);
6112 cmd->texture = texture;
6113 cmd->internalformat = internalformat;
6114 cmd->buffer = buffer;
6115 cmd->offset = offset;
6116 cmd->size = size;
6130 _mesa_unmarshal_TextureStorage1D(struct gl_context *ctx, const struct marshal_cmd_TextureStorage1D *cmd, const uint64_t *last)
6132 GLuint texture = cmd->texture;
6133 GLsizei levels = cmd->levels;
6134 GLenum internalformat = cmd->internalformat;
6135 GLsizei width = cmd->width;
6138 assert (cmd_size == cmd->cmd_base.cmd_size);
6146 struct marshal_cmd_TextureStorage1D *cmd;
6147 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage1D, cmd_size);
6148 cmd->texture = texture;
6149 cmd->levels = levels;
6150 cmd->internalformat = internalformat;
6151 cmd->width = width;
6166 _mesa_unmarshal_TextureStorage2D(struct gl_context *ctx, const struct marshal_cmd_TextureStorage2D *cmd, const uint64_t *last)
6168 GLuint texture = cmd->texture;
6169 GLsizei levels = cmd->levels;
6170 GLenum internalformat = cmd->internalformat;
6171 GLsizei width = cmd->width;
6172 GLsizei height = cmd->height;
6175 assert (cmd_size == cmd->cmd_base.cmd_size);
6183 struct marshal_cmd_TextureStorage2D *cmd;
6184 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage2D, cmd_size);
6185 cmd->texture = texture;
6186 cmd->levels = levels;
6187 cmd->internalformat = internalformat;
6188 cmd->width = width;
6189 cmd->height = height;
6205 _mesa_unmarshal_TextureStorage3D(struct gl_context *ctx, const struct marshal_cmd_TextureStorage3D *cmd, const uint64_t *last)
6207 GLuint texture = cmd->texture;
6208 GLsizei levels = cmd->levels;
6209 GLenum internalformat = cmd->internalformat;
6210 GLsizei width = cmd->width;
6211 GLsizei height = cmd->height;
6212 GLsizei depth = cmd->depth;
6215 assert (cmd_size == cmd->cmd_base.cmd_size);
6223 struct marshal_cmd_TextureStorage3D *cmd;
6224 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage3D, cmd_size);
6225 cmd->texture = texture;
6226 cmd->levels = levels;
6227 cmd->internalformat = internalformat;
6228 cmd->width = width;
6229 cmd->height = height;
6230 cmd->depth = depth;
6246 _mesa_unmarshal_TextureStorage2DMultisample(struct gl_context *ctx, const struct marshal_cmd_TextureStorage2DMultisample *cmd, const uint64_t *last)
6248 GLuint texture = cmd->texture;
6249 GLsizei samples = cmd->samples;
6250 GLenum internalformat = cmd->internalformat;
6251 GLsizei width = cmd->width;
6252 GLsizei height = cmd->height;
6253 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
6256 assert (cmd_size == cmd->cmd_base.cmd_size);
6264 struct marshal_cmd_TextureStorage2DMultisample *cmd;
6265 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage2DMultisample, cmd_size);
6266 cmd->texture = texture;
6267 cmd->samples = samples;
6268 cmd->internalformat = internalformat;
6269 cmd->width = width;
6270 cmd->height = height;
6271 cmd->fixedsamplelocations = fixedsamplelocations;
6288 _mesa_unmarshal_TextureStorage3DMultisample(struct gl_context *ctx, const struct marshal_cmd_TextureStorage3DMultisample *cmd, const uint64_t *last)
6290 GLuint texture = cmd->texture;
6291 GLsizei samples = cmd->samples;
6292 GLenum internalformat = cmd->internalformat;
6293 GLsizei width = cmd->width;
6294 GLsizei height = cmd->height;
6295 GLsizei depth = cmd->depth;
6296 GLboolean fixedsamplelocations = cmd->fixedsamplelocations;
6299 assert (cmd_size == cmd->cmd_base.cmd_size);
6307 struct marshal_cmd_TextureStorage3DMultisample *cmd;
6308 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorage3DMultisample, cmd_size);
6309 cmd->texture = texture;
6310 cmd->samples = samples;
6311 cmd->internalformat = internalformat;
6312 cmd->width = width;
6313 cmd->height = height;
6314 cmd->depth = depth;
6315 cmd->fixedsamplelocations = fixedsamplelocations;
6332 _mesa_unmarshal_TextureSubImage1D(struct gl_context *ctx, const struct marshal_cmd_TextureSubImage1D *cmd, const uint64_t *last)
6334 GLuint texture = cmd->texture;
6335 GLint level = cmd->level;
6336 GLint xoffset = cmd->xoffset;
6337 GLsizei width = cmd->width;
6338 GLenum format = cmd->format;
6339 GLenum type = cmd->type;
6340 const GLvoid * pixels = cmd->pixels;
6343 assert (cmd_size == cmd->cmd_base.cmd_size);
6351 struct marshal_cmd_TextureSubImage1D *cmd;
6357 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureSubImage1D, cmd_size);
6358 cmd->texture = texture;
6359 cmd->level = level;
6360 cmd->xoffset = xoffset;
6361 cmd->width = width;
6362 cmd->format = format;
6363 cmd->type = type;
6364 cmd->pixels = pixels;
6383 _mesa_unmarshal_TextureSubImage2D(struct gl_context *ctx, const struct marshal_cmd_TextureSubImage2D *cmd, const uint64_t *last)
6385 GLuint texture = cmd->texture;
6386 GLint level = cmd->level;
6387 GLint xoffset = cmd->xoffset;
6388 GLint yoffset = cmd->yoffset;
6389 GLsizei width = cmd->width;
6390 GLsizei height = cmd->height;
6391 GLenum format = cmd->format;
6392 GLenum type = cmd->type;
6393 const GLvoid * pixels = cmd->pixels;
6396 assert (cmd_size == cmd->cmd_base.cmd_size);
6404 struct marshal_cmd_TextureSubImage2D *cmd;
6410 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureSubImage2D, cmd_size);
6411 cmd->texture = texture;
6412 cmd->level = level;
6413 cmd->xoffset = xoffset;
6414 cmd->yoffset = yoffset;
6415 cmd->width = width;
6416 cmd->height = height;
6417 cmd->format = format;
6418 cmd->type = type;
6419 cmd->pixels = pixels;
6440 _mesa_unmarshal_TextureSubImage3D(struct gl_context *ctx, const struct marshal_cmd_TextureSubImage3D *cmd, const uint64_t *last)
6442 GLuint texture = cmd->texture;
6443 GLint level = cmd->level;
6444 GLint xoffset = cmd->xoffset;
6445 GLint yoffset = cmd->yoffset;
6446 GLint zoffset = cmd->zoffset;
6447 GLsizei width = cmd->width;
6448 GLsizei height = cmd->height;
6449 GLsizei depth = cmd->depth;
6450 GLenum format = cmd->format;
6451 GLenum type = cmd->type;
6452 const GLvoid * pixels = cmd->pixels;
6455 assert (cmd_size == cmd->cmd_base.cmd_size);
6463 struct marshal_cmd_TextureSubImage3D *cmd;
6469 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureSubImage3D, cmd_size);
6470 cmd->texture = texture;
6471 cmd->level = level;
6472 cmd->xoffset = xoffset;
6473 cmd->yoffset = yoffset;
6474 cmd->zoffset = zoffset;
6475 cmd->width = width;
6476 cmd->height = height;
6477 cmd->depth = depth;
6478 cmd->format = format;
6479 cmd->type = type;
6480 cmd->pixels = pixels;
6497 _mesa_unmarshal_CompressedTextureSubImage1D(struct gl_context *ctx, const struct marshal_cmd_CompressedTextureSubImage1D *cmd, const uint64_t *last)
6499 GLuint texture = cmd->texture;
6500 GLint level = cmd->level;
6501 GLint xoffset = cmd->xoffset;
6502 GLsizei width = cmd->width;
6503 GLenum format = cmd->format;
6504 GLsizei imageSize = cmd->imageSize;
6505 const GLvoid * data = cmd->data;
6508 assert (cmd_size == cmd->cmd_base.cmd_size);
6516 struct marshal_cmd_CompressedTextureSubImage1D *cmd;
6522 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTextureSubImage1D, cmd_size);
6523 cmd->texture = texture;
6524 cmd->level = level;
6525 cmd->xoffset = xoffset;
6526 cmd->width = width;
6527 cmd->format = format;
6528 cmd->imageSize = imageSize;
6529 cmd->data = data;
6548 _mesa_unmarshal_CompressedTextureSubImage2D(struct gl_context *ctx, const struct marshal_cmd_CompressedTextureSubImage2D *cmd, const uint64_t *last)
6550 GLuint texture = cmd->texture;
6551 GLint level = cmd->level;
6552 GLint xoffset = cmd->xoffset;
6553 GLint yoffset = cmd->yoffset;
6554 GLsizei width = cmd->width;
6555 GLsizei height = cmd->height;
6556 GLenum format = cmd->format;
6557 GLsizei imageSize = cmd->imageSize;
6558 const GLvoid * data = cmd->data;
6561 assert (cmd_size == cmd->cmd_base.cmd_size);
6569 struct marshal_cmd_CompressedTextureSubImage2D *cmd;
6575 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTextureSubImage2D, cmd_size);
6576 cmd->texture = texture;
6577 cmd->level = level;
6578 cmd->xoffset = xoffset;
6579 cmd->yoffset = yoffset;
6580 cmd->width = width;
6581 cmd->height = height;
6582 cmd->format = format;
6583 cmd->imageSize = imageSize;
6584 cmd->data = data;
6605 _mesa_unmarshal_CompressedTextureSubImage3D(struct gl_context *ctx, const struct marshal_cmd_CompressedTextureSubImage3D *cmd, const uint64_t *last)
6607 GLuint texture = cmd->texture;
6608 GLint level = cmd->level;
6609 GLint xoffset = cmd->xoffset;
6610 GLint yoffset = cmd->yoffset;
6611 GLint zoffset = cmd->zoffset;
6612 GLsizei width = cmd->width;
6613 GLsizei height = cmd->height;
6614 GLsizei depth = cmd->depth;
6615 GLenum format = cmd->format;
6616 GLsizei imageSize = cmd->imageSize;
6617 const GLvoid * data = cmd->data;
6620 assert (cmd_size == cmd->cmd_base.cmd_size);
6628 struct marshal_cmd_CompressedTextureSubImage3D *cmd;
6634 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CompressedTextureSubImage3D, cmd_size);
6635 cmd->texture = texture;
6636 cmd->level = level;
6637 cmd->xoffset = xoffset;
6638 cmd->yoffset = yoffset;
6639 cmd->zoffset = zoffset;
6640 cmd->width = width;
6641 cmd->height = height;
6642 cmd->depth = depth;
6643 cmd->format = format;
6644 cmd->imageSize = imageSize;
6645 cmd->data = data;
6661 _mesa_unmarshal_CopyTextureSubImage1D(struct gl_context *ctx, const struct marshal_cmd_CopyTextureSubImage1D *cmd, const uint64_t *last)
6663 GLuint texture = cmd->texture;
6664 GLint level = cmd->level;
6665 GLint xoffset = cmd->xoffset;
6666 GLint x = cmd->x;
6667 GLint y = cmd->y;
6668 GLsizei width = cmd->width;
6671 assert (cmd_size == cmd->cmd_base.cmd_size);
6679 struct marshal_cmd_CopyTextureSubImage1D *cmd;
6680 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTextureSubImage1D, cmd_size);
6681 cmd->texture = texture;
6682 cmd->level = level;
6683 cmd->xoffset = xoffset;
6684 cmd->x = x;
6685 cmd->y = y;
6686 cmd->width = width;
6704 _mesa_unmarshal_CopyTextureSubImage2D(struct gl_context *ctx, const struct marshal_cmd_CopyTextureSubImage2D *cmd, const uint64_t *last)
6706 GLuint texture = cmd->texture;
6707 GLint level = cmd->level;
6708 GLint xoffset = cmd->xoffset;
6709 GLint yoffset = cmd->yoffset;
6710 GLint x = cmd->x;
6711 GLint y = cmd->y;
6712 GLsizei width = cmd->width;
6713 GLsizei height = cmd->height;
6716 assert (cmd_size == cmd->cmd_base.cmd_size);
6724 struct marshal_cmd_CopyTextureSubImage2D *cmd;
6725 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTextureSubImage2D, cmd_size);
6726 cmd->texture = texture;
6727 cmd->level = level;
6728 cmd->xoffset = xoffset;
6729 cmd->yoffset = yoffset;
6730 cmd->x = x;
6731 cmd->y = y;
6732 cmd->width = width;
6733 cmd->height = height;
6752 _mesa_unmarshal_CopyTextureSubImage3D(struct gl_context *ctx, const struct marshal_cmd_CopyTextureSubImage3D *cmd, const uint64_t *last)
6754 GLuint texture = cmd->texture;
6755 GLint level = cmd->level;
6756 GLint xoffset = cmd->xoffset;
6757 GLint yoffset = cmd->yoffset;
6758 GLint zoffset = cmd->zoffset;
6759 GLint x = cmd->x;
6760 GLint y = cmd->y;
6761 GLsizei width = cmd->width;
6762 GLsizei height = cmd->height;
6765 assert (cmd_size == cmd->cmd_base.cmd_size);
6773 struct marshal_cmd_CopyTextureSubImage3D *cmd;
6774 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_CopyTextureSubImage3D, cmd_size);
6775 cmd->texture = texture;
6776 cmd->level = level;
6777 cmd->xoffset = xoffset;
6778 cmd->yoffset = yoffset;
6779 cmd->zoffset = zoffset;
6780 cmd->x = x;
6781 cmd->y = y;
6782 cmd->width = width;
6783 cmd->height = height;
6796 _mesa_unmarshal_TextureParameterf(struct gl_context *ctx, const struct marshal_cmd_TextureParameterf *cmd, const uint64_t *last)
6798 GLuint texture = cmd->texture;
6799 GLenum pname = cmd->pname;
6800 GLfloat param = cmd->param;
6803 assert (cmd_size == cmd->cmd_base.cmd_size);
6811 struct marshal_cmd_TextureParameterf *cmd;
6812 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameterf, cmd_size);
6813 cmd->texture = texture;
6814 cmd->pname = pname;
6815 cmd->param = param;
6828 _mesa_unmarshal_TextureParameterfv(struct gl_context *ctx, const struct marshal_cmd_TextureParameterfv *cmd, const uint64_t *last)
6830 GLuint texture = cmd->texture;
6831 GLenum pname = cmd->pname;
6833 const char *variable_data = (const char *) (cmd + 1);
6836 return cmd->cmd_base.cmd_size;
6844 struct marshal_cmd_TextureParameterfv *cmd;
6850 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameterfv, cmd_size);
6851 cmd->texture = texture;
6852 cmd->pname = pname;
6853 char *variable_data = (char *) (cmd + 1);
6867 _mesa_unmarshal_TextureParameteri(struct gl_context *ctx, const struct marshal_cmd_TextureParameteri *cmd, const uint64_t *last)
6869 GLuint texture = cmd->texture;
6870 GLenum pname = cmd->pname;
6871 GLint param = cmd->param;
6874 assert (cmd_size == cmd->cmd_base.cmd_size);
6882 struct marshal_cmd_TextureParameteri *cmd;
6883 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameteri, cmd_size);
6884 cmd->texture = texture;
6885 cmd->pname = pname;
6886 cmd->param = param;
6899 _mesa_unmarshal_TextureParameterIiv(struct gl_context *ctx, const struct marshal_cmd_TextureParameterIiv *cmd, const uint64_t *last)
6901 GLuint texture = cmd->texture;
6902 GLenum pname = cmd->pname;
6904 const char *variable_data = (const char *) (cmd + 1);
6907 return cmd->cmd_base.cmd_size;
6915 struct marshal_cmd_TextureParameterIiv *cmd;
6921 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameterIiv, cmd_size);
6922 cmd->texture = texture;
6923 cmd->pname = pname;
6924 char *variable_data = (char *) (cmd + 1);
6938 _mesa_unmarshal_TextureParameterIuiv(struct gl_context *ctx, const struct marshal_cmd_TextureParameterIuiv *cmd, const uint64_t *last)
6940 GLuint texture = cmd->texture;
6941 GLenum pname = cmd->pname;
6943 const char *variable_data = (const char *) (cmd + 1);
6946 return cmd->cmd_base.cmd_size;
6954 struct marshal_cmd_TextureParameterIuiv *cmd;
6960 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameterIuiv, cmd_size);
6961 cmd->texture = texture;
6962 cmd->pname = pname;
6963 char *variable_data = (char *) (cmd + 1);
6977 _mesa_unmarshal_TextureParameteriv(struct gl_context *ctx, const struct marshal_cmd_TextureParameteriv *cmd, const uint64_t *last)
6979 GLuint texture = cmd->texture;
6980 GLenum pname = cmd->pname;
6982 const char *variable_data = (const char *) (cmd + 1);
6985 return cmd->cmd_base.cmd_size;
6993 struct marshal_cmd_TextureParameteriv *cmd;
6999 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameteriv, cmd_size);
7000 cmd->texture = texture;
7001 cmd->pname = pname;
7002 char *variable_data = (char *) (cmd + 1);
7014 _mesa_unmarshal_GenerateTextureMipmap(struct gl_context *ctx, const struct marshal_cmd_GenerateTextureMipmap *cmd, const uint64_t *last)
7016 GLuint texture = cmd->texture;
7019 assert (cmd_size == cmd->cmd_base.cmd_size);
7027 struct marshal_cmd_GenerateTextureMipmap *cmd;
7028 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GenerateTextureMipmap, cmd_size);
7029 cmd->texture = texture;
7041 _mesa_unmarshal_BindTextureUnit(struct gl_context *ctx, const struct marshal_cmd_BindTextureUnit *cmd, const uint64_t *last)
7043 GLuint unit = cmd->unit;
7044 GLuint texture = cmd->texture;
7047 assert (cmd_size == cmd->cmd_base.cmd_size);
7055 struct marshal_cmd_BindTextureUnit *cmd;
7056 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindTextureUnit, cmd_size);
7057 cmd->unit = unit;
7058 cmd->texture = texture;
7074 _mesa_unmarshal_GetTextureImage(struct gl_context *ctx, const struct marshal_cmd_GetTextureImage *cmd, const uint64_t *last)
7076 GLuint texture = cmd->texture;
7077 GLint level = cmd->level;
7078 GLenum format = cmd->format;
7079 GLenum type = cmd->type;
7080 GLsizei bufSize = cmd->bufSize;
7081 GLvoid * pixels = cmd->pixels;
7084 assert (cmd_size == cmd->cmd_base.cmd_size);
7092 struct marshal_cmd_GetTextureImage *cmd;
7098 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetTextureImage, cmd_size);
7099 cmd->texture = texture;
7100 cmd->level = level;
7101 cmd->format = format;
7102 cmd->type = type;
7103 cmd->bufSize = bufSize;
7104 cmd->pixels = pixels;
7118 _mesa_unmarshal_GetCompressedTextureImage(struct gl_context *ctx, const struct marshal_cmd_GetCompressedTextureImage *cmd, const uint64_t *last)
7120 GLuint texture = cmd->texture;
7121 GLint level = cmd->level;
7122 GLsizei bufSize = cmd->bufSize;
7123 GLvoid * pixels = cmd->pixels;
7126 assert (cmd_size == cmd->cmd_base.cmd_size);
7134 struct marshal_cmd_GetCompressedTextureImage *cmd;
7140 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetCompressedTextureImage, cmd_size);
7141 cmd->texture = texture;
7142 cmd->level = level;
7143 cmd->bufSize = bufSize;
7144 cmd->pixels = pixels;
7227 _mesa_unmarshal_DisableVertexArrayAttrib(struct gl_context *ctx, const struct marshal_cmd_DisableVertexArrayAttrib *cmd, const uint64_t *last)
7229 GLuint vaobj = cmd->vaobj;
7230 GLuint index = cmd->index;
7233 assert (cmd_size == cmd->cmd_base.cmd_size);
7241 struct marshal_cmd_DisableVertexArrayAttrib *cmd;
7242 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DisableVertexArrayAttrib, cmd_size);
7243 cmd->vaobj = vaobj;
7244 cmd->index = index;
7257 _mesa_unmarshal_EnableVertexArrayAttrib(struct gl_context *ctx, const struct marshal_cmd_EnableVertexArrayAttrib *cmd, const uint64_t *last)
7259 GLuint vaobj = cmd->vaobj;
7260 GLuint index = cmd->index;
7263 assert (cmd_size == cmd->cmd_base.cmd_size);
7271 struct marshal_cmd_EnableVertexArrayAttrib *cmd;
7272 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EnableVertexArrayAttrib, cmd_size);
7273 cmd->vaobj = vaobj;
7274 cmd->index = index;
7287 _mesa_unmarshal_VertexArrayElementBuffer(struct gl_context *ctx, const struct marshal_cmd_VertexArrayElementBuffer *cmd, const uint64_t *last)
7289 GLuint vaobj = cmd->vaobj;
7290 GLuint buffer = cmd->buffer;
7293 assert (cmd_size == cmd->cmd_base.cmd_size);
7301 struct marshal_cmd_VertexArrayElementBuffer *cmd;
7302 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayElementBuffer, cmd_size);
7303 cmd->vaobj = vaobj;
7304 cmd->buffer = buffer;
7320 _mesa_unmarshal_VertexArrayVertexBuffer(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexBuffer *cmd, const uint64_t *last)
7322 GLuint vaobj = cmd->vaobj;
7323 GLuint bindingindex = cmd->bindingindex;
7324 GLuint buffer = cmd->buffer;
7325 GLintptr offset = cmd->offset;
7326 GLsizei stride = cmd->stride;
7329 assert (cmd_size == cmd->cmd_base.cmd_size);
7337 struct marshal_cmd_VertexArrayVertexBuffer *cmd;
7338 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexBuffer, cmd_size);
7339 cmd->vaobj = vaobj;
7340 cmd->bindingindex = bindingindex;
7341 cmd->buffer = buffer;
7342 cmd->offset = offset;
7343 cmd->stride = stride;
7360 _mesa_unmarshal_VertexArrayVertexBuffers(struct gl_context *ctx, const struct marshal_cmd_VertexArrayVertexBuffers *cmd, const uint64_t *last)
7362 GLuint vaobj = cmd->vaobj;
7363 GLuint first = cmd->first;
7364 GLsizei count = cmd->count;
7368 const char *variable_data = (const char *) (cmd + 1);
7375 return cmd->cmd_base.cmd_size;
7385 struct marshal_cmd_VertexArrayVertexBuffers *cmd;
7392 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayVertexBuffers, cmd_size);
7393 cmd->vaobj = vaobj;
7394 cmd->first = first;
7395 cmd->count = count;
7396 char *variable_data = (char *) (cmd + 1);
7418 _mesa_unmarshal_VertexArrayAttribFormat(struct gl_context *ctx, const struct marshal_cmd_VertexArrayAttribFormat *cmd, const uint64_t *last)
7420 GLuint vaobj = cmd->vaobj;
7421 GLuint attribindex = cmd->attribindex;
7422 GLint size = cmd->size;
7423 GLenum type = cmd->type;
7424 GLboolean normalized = cmd->normalized;
7425 GLuint relativeoffset = cmd->relativeoffset;
7428 assert (cmd_size == cmd->cmd_base.cmd_size);
7436 struct marshal_cmd_VertexArrayAttribFormat *cmd;
7437 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayAttribFormat, cmd_size);
7438 cmd->vaobj = vaobj;
7439 cmd->attribindex = attribindex;
7440 cmd->size = size;
7441 cmd->type = type;
7442 cmd->normalized = normalized;
7443 cmd->relativeoffset = relativeoffset;
7459 _mesa_unmarshal_VertexArrayAttribIFormat(struct gl_context *ctx, const struct marshal_cmd_VertexArrayAttribIFormat *cmd, const uint64_t *last)
7461 GLuint vaobj = cmd->vaobj;
7462 GLuint attribindex = cmd->attribindex;
7463 GLint size = cmd->size;
7464 GLenum type = cmd->type;
7465 GLuint relativeoffset = cmd->relativeoffset;
7468 assert (cmd_size == cmd->cmd_base.cmd_size);
7476 struct marshal_cmd_VertexArrayAttribIFormat *cmd;
7477 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayAttribIFormat, cmd_size);
7478 cmd->vaobj = vaobj;
7479 cmd->attribindex = attribindex;
7480 cmd->size = size;
7481 cmd->type = type;
7482 cmd->relativeoffset = relativeoffset;
7498 _mesa_unmarshal_VertexArrayAttribLFormat(struct gl_context *ctx, const struct marshal_cmd_VertexArrayAttribLFormat *cmd, const uint64_t *last)
7500 GLuint vaobj = cmd->vaobj;
7501 GLuint attribindex = cmd->attribindex;
7502 GLint size = cmd->size;
7503 GLenum type = cmd->type;
7504 GLuint relativeoffset = cmd->relativeoffset;
7507 assert (cmd_size == cmd->cmd_base.cmd_size);
7515 struct marshal_cmd_VertexArrayAttribLFormat *cmd;
7516 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayAttribLFormat, cmd_size);
7517 cmd->vaobj = vaobj;
7518 cmd->attribindex = attribindex;
7519 cmd->size = size;
7520 cmd->type = type;
7521 cmd->relativeoffset = relativeoffset;
7535 _mesa_unmarshal_VertexArrayAttribBinding(struct gl_context *ctx, const struct marshal_cmd_VertexArrayAttribBinding *cmd, const uint64_t *last)
7537 GLuint vaobj = cmd->vaobj;
7538 GLuint attribindex = cmd->attribindex;
7539 GLuint bindingindex = cmd->bindingindex;
7542 assert (cmd_size == cmd->cmd_base.cmd_size);
7550 struct marshal_cmd_VertexArrayAttribBinding *cmd;
7551 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayAttribBinding, cmd_size);
7552 cmd->vaobj = vaobj;
7553 cmd->attribindex = attribindex;
7554 cmd->bindingindex = bindingindex;
7568 _mesa_unmarshal_VertexArrayBindingDivisor(struct gl_context *ctx, const struct marshal_cmd_VertexArrayBindingDivisor *cmd, const uint64_t *last)
7570 GLuint vaobj = cmd->vaobj;
7571 GLuint bindingindex = cmd->bindingindex;
7572 GLuint divisor = cmd->divisor;
7575 assert (cmd_size == cmd->cmd_base.cmd_size);
7583 struct marshal_cmd_VertexArrayBindingDivisor *cmd;
7584 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexArrayBindingDivisor, cmd_size);
7585 cmd->vaobj = vaobj;
7586 cmd->bindingindex = bindingindex;
7587 cmd->divisor = divisor;
7662 _mesa_unmarshal_GetQueryBufferObjectiv(struct gl_context *ctx, const struct marshal_cmd_GetQueryBufferObjectiv *cmd, const uint64_t *last)
7664 GLuint id = cmd->id;
7665 GLuint buffer = cmd->buffer;
7666 GLenum pname = cmd->pname;
7667 GLintptr offset = cmd->offset;
7670 assert (cmd_size == cmd->cmd_base.cmd_size);
7678 struct marshal_cmd_GetQueryBufferObjectiv *cmd;
7679 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetQueryBufferObjectiv, cmd_size);
7680 cmd->id = id;
7681 cmd->buffer = buffer;
7682 cmd->pname = pname;
7683 cmd->offset = offset;
7697 _mesa_unmarshal_GetQueryBufferObjectuiv(struct gl_context *ctx, const struct marshal_cmd_GetQueryBufferObjectuiv *cmd, const uint64_t *last)
7699 GLuint id = cmd->id;
7700 GLuint buffer = cmd->buffer;
7701 GLenum pname = cmd->pname;
7702 GLintptr offset = cmd->offset;
7705 assert (cmd_size == cmd->cmd_base.cmd_size);
7713 struct marshal_cmd_GetQueryBufferObjectuiv *cmd;
7714 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetQueryBufferObjectuiv, cmd_size);
7715 cmd->id = id;
7716 cmd->buffer = buffer;
7717 cmd->pname = pname;
7718 cmd->offset = offset;
7732 _mesa_unmarshal_GetQueryBufferObjecti64v(struct gl_context *ctx, const struct marshal_cmd_GetQueryBufferObjecti64v *cmd, const uint64_t *last)
7734 GLuint id = cmd->id;
7735 GLuint buffer = cmd->buffer;
7736 GLenum pname = cmd->pname;
7737 GLintptr offset = cmd->offset;
7740 assert (cmd_size == cmd->cmd_base.cmd_size);
7748 struct marshal_cmd_GetQueryBufferObjecti64v *cmd;
7749 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetQueryBufferObjecti64v, cmd_size);
7750 cmd->id = id;
7751 cmd->buffer = buffer;
7752 cmd->pname = pname;
7753 cmd->offset = offset;
7767 _mesa_unmarshal_GetQueryBufferObjectui64v(struct gl_context *ctx, const struct marshal_cmd_GetQueryBufferObjectui64v *cmd, const uint64_t *last)
7769 GLuint id = cmd->id;
7770 GLuint buffer = cmd->buffer;
7771 GLenum pname = cmd->pname;
7772 GLintptr offset = cmd->offset;
7775 assert (cmd_size == cmd->cmd_base.cmd_size);
7783 struct marshal_cmd_GetQueryBufferObjectui64v *cmd;
7784 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetQueryBufferObjectui64v, cmd_size);
7785 cmd->id = id;
7786 cmd->buffer = buffer;
7787 cmd->pname = pname;
7788 cmd->offset = offset;
7810 _mesa_unmarshal_GetTextureSubImage(struct gl_context *ctx, const struct marshal_cmd_GetTextureSubImage *cmd, const uint64_t *last)
7812 GLuint texture = cmd->texture;
7813 GLint level = cmd->level;
7814 GLint xoffset = cmd->xoffset;
7815 GLint yoffset = cmd->yoffset;
7816 GLint zoffset = cmd->zoffset;
7817 GLsizei width = cmd->width;
7818 GLsizei height = cmd->height;
7819 GLsizei depth = cmd->depth;
7820 GLenum format = cmd->format;
7821 GLenum type = cmd->type;
7822 GLsizei bufSize = cmd->bufSize;
7823 GLvoid * pixels = cmd->pixels;
7826 assert (cmd_size == cmd->cmd_base.cmd_size);
7834 struct marshal_cmd_GetTextureSubImage *cmd;
7840 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetTextureSubImage, cmd_size);
7841 cmd->texture = texture;
7842 cmd->level = level;
7843 cmd->xoffset = xoffset;
7844 cmd->yoffset = yoffset;
7845 cmd->zoffset = zoffset;
7846 cmd->width = width;
7847 cmd->height = height;
7848 cmd->depth = depth;
7849 cmd->format = format;
7850 cmd->type = type;
7851 cmd->bufSize = bufSize;
7852 cmd->pixels = pixels;
7872 _mesa_unmarshal_GetCompressedTextureSubImage(struct gl_context *ctx, const struct marshal_cmd_GetCompressedTextureSubImage *cmd, const uint64_t *last)
7874 GLuint texture = cmd->texture;
7875 GLint level = cmd->level;
7876 GLint xoffset = cmd->xoffset;
7877 GLint yoffset = cmd->yoffset;
7878 GLint zoffset = cmd->zoffset;
7879 GLsizei width = cmd->width;
7880 GLsizei height = cmd->height;
7881 GLsizei depth = cmd->depth;
7882 GLsizei bufSize = cmd->bufSize;
7883 GLvoid * pixels = cmd->pixels;
7886 assert (cmd_size == cmd->cmd_base.cmd_size);
7894 struct marshal_cmd_GetCompressedTextureSubImage *cmd;
7900 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_GetCompressedTextureSubImage, cmd_size);
7901 cmd->texture = texture;
7902 cmd->level = level;
7903 cmd->xoffset = xoffset;
7904 cmd->yoffset = yoffset;
7905 cmd->zoffset = zoffset;
7906 cmd->width = width;
7907 cmd->height = height;
7908 cmd->depth = depth;
7909 cmd->bufSize = bufSize;
7910 cmd->pixels = pixels;
7920 _mesa_unmarshal_TextureBarrierNV(struct gl_context *ctx, const struct marshal_cmd_TextureBarrierNV *cmd, const uint64_t *last)
7924 assert (cmd_size == cmd->cmd_base.cmd_size);
7932 struct marshal_cmd_TextureBarrierNV *cmd;
7933 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureBarrierNV, cmd_size);
7934 (void) cmd;