Lines Matching refs:cmd
67 _mesa_unmarshal_NamedProgramLocalParameter4fEXT(struct gl_context *ctx, const struct marshal_cmd_NamedProgramLocalParameter4fEXT *cmd, const uint64_t *last)
69 GLuint program = cmd->program;
70 GLenum target = cmd->target;
71 GLuint index = cmd->index;
72 GLfloat x = cmd->x;
73 GLfloat y = cmd->y;
74 GLfloat z = cmd->z;
75 GLfloat w = cmd->w;
78 assert (cmd_size == cmd->cmd_base.cmd_size);
86 struct marshal_cmd_NamedProgramLocalParameter4fEXT *cmd;
87 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedProgramLocalParameter4fEXT, cmd_size);
88 cmd->program = program;
89 cmd->target = target;
90 cmd->index = index;
91 cmd->x = x;
92 cmd->y = y;
93 cmd->z = z;
94 cmd->w = w;
108 _mesa_unmarshal_NamedProgramLocalParameter4fvEXT(struct gl_context *ctx, const struct marshal_cmd_NamedProgramLocalParameter4fvEXT *cmd, const uint64_t *last)
110 GLuint program = cmd->program;
111 GLenum target = cmd->target;
112 GLuint index = cmd->index;
113 const GLfloat * params = cmd->params;
116 assert (cmd_size == cmd->cmd_base.cmd_size);
124 struct marshal_cmd_NamedProgramLocalParameter4fvEXT *cmd;
125 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedProgramLocalParameter4fvEXT, cmd_size);
126 cmd->program = program;
127 cmd->target = target;
128 cmd->index = index;
129 memcpy(cmd->params, params, 4 * sizeof(GLfloat));
156 _mesa_unmarshal_NamedProgramLocalParameter4dEXT(struct gl_context *ctx, const struct marshal_cmd_NamedProgramLocalParameter4dEXT *cmd, const uint64_t *last)
158 GLuint program = cmd->program;
159 GLenum target = cmd->target;
160 GLuint index = cmd->index;
161 GLdouble x = cmd->x;
162 GLdouble y = cmd->y;
163 GLdouble z = cmd->z;
164 GLdouble w = cmd->w;
167 assert (cmd_size == cmd->cmd_base.cmd_size);
175 struct marshal_cmd_NamedProgramLocalParameter4dEXT *cmd;
176 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedProgramLocalParameter4dEXT, cmd_size);
177 cmd->program = program;
178 cmd->target = target;
179 cmd->index = index;
180 cmd->x = x;
181 cmd->y = y;
182 cmd->z = z;
183 cmd->w = w;
197 _mesa_unmarshal_NamedProgramLocalParameter4dvEXT(struct gl_context *ctx, const struct marshal_cmd_NamedProgramLocalParameter4dvEXT *cmd, const uint64_t *last)
199 GLuint program = cmd->program;
200 GLenum target = cmd->target;
201 GLuint index = cmd->index;
202 const GLdouble * params = cmd->params;
205 assert (cmd_size == cmd->cmd_base.cmd_size);
213 struct marshal_cmd_NamedProgramLocalParameter4dvEXT *cmd;
214 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedProgramLocalParameter4dvEXT, cmd_size);
215 cmd->program = program;
216 cmd->target = target;
217 cmd->index = index;
218 memcpy(cmd->params, params, 4 * sizeof(GLdouble));
252 _mesa_unmarshal_TextureBufferEXT(struct gl_context *ctx, const struct marshal_cmd_TextureBufferEXT *cmd, const uint64_t *last)
254 GLuint texture = cmd->texture;
255 GLenum target = cmd->target;
256 GLenum internalformat = cmd->internalformat;
257 GLuint buffer = cmd->buffer;
260 assert (cmd_size == cmd->cmd_base.cmd_size);
268 struct marshal_cmd_TextureBufferEXT *cmd;
269 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureBufferEXT, cmd_size);
270 cmd->texture = texture;
271 cmd->target = target;
272 cmd->internalformat = internalformat;
273 cmd->buffer = buffer;
287 _mesa_unmarshal_MultiTexBufferEXT(struct gl_context *ctx, const struct marshal_cmd_MultiTexBufferEXT *cmd, const uint64_t *last)
289 GLenum texunit = cmd->texunit;
290 GLenum target = cmd->target;
291 GLenum internalformat = cmd->internalformat;
292 GLuint buffer = cmd->buffer;
295 assert (cmd_size == cmd->cmd_base.cmd_size);
303 struct marshal_cmd_MultiTexBufferEXT *cmd;
304 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexBufferEXT, cmd_size);
305 cmd->texunit = texunit;
306 cmd->target = target;
307 cmd->internalformat = internalformat;
308 cmd->buffer = buffer;
322 _mesa_unmarshal_TextureParameterIivEXT(struct gl_context *ctx, const struct marshal_cmd_TextureParameterIivEXT *cmd, const uint64_t *last)
324 GLuint texture = cmd->texture;
325 GLenum target = cmd->target;
326 GLenum pname = cmd->pname;
328 const char *variable_data = (const char *) (cmd + 1);
331 return cmd->cmd_base.cmd_size;
339 struct marshal_cmd_TextureParameterIivEXT *cmd;
345 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameterIivEXT, cmd_size);
346 cmd->texture = texture;
347 cmd->target = target;
348 cmd->pname = pname;
349 char *variable_data = (char *) (cmd + 1);
364 _mesa_unmarshal_TextureParameterIuivEXT(struct gl_context *ctx, const struct marshal_cmd_TextureParameterIuivEXT *cmd, const uint64_t *last)
366 GLuint texture = cmd->texture;
367 GLenum target = cmd->target;
368 GLenum pname = cmd->pname;
370 const char *variable_data = (const char *) (cmd + 1);
373 return cmd->cmd_base.cmd_size;
381 struct marshal_cmd_TextureParameterIuivEXT *cmd;
387 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureParameterIuivEXT, cmd_size);
388 cmd->texture = texture;
389 cmd->target = target;
390 cmd->pname = pname;
391 char *variable_data = (char *) (cmd + 1);
426 _mesa_unmarshal_MultiTexParameterIivEXT(struct gl_context *ctx, const struct marshal_cmd_MultiTexParameterIivEXT *cmd, const uint64_t *last)
428 GLenum texunit = cmd->texunit;
429 GLenum target = cmd->target;
430 GLenum pname = cmd->pname;
432 const char *variable_data = (const char *) (cmd + 1);
435 return cmd->cmd_base.cmd_size;
443 struct marshal_cmd_MultiTexParameterIivEXT *cmd;
449 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexParameterIivEXT, cmd_size);
450 cmd->texunit = texunit;
451 cmd->target = target;
452 cmd->pname = pname;
453 char *variable_data = (char *) (cmd + 1);
468 _mesa_unmarshal_MultiTexParameterIuivEXT(struct gl_context *ctx, const struct marshal_cmd_MultiTexParameterIuivEXT *cmd, const uint64_t *last)
470 GLenum texunit = cmd->texunit;
471 GLenum target = cmd->target;
472 GLenum pname = cmd->pname;
474 const char *variable_data = (const char *) (cmd + 1);
477 return cmd->cmd_base.cmd_size;
485 struct marshal_cmd_MultiTexParameterIuivEXT *cmd;
491 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexParameterIuivEXT, cmd_size);
492 cmd->texunit = texunit;
493 cmd->target = target;
494 cmd->pname = pname;
495 char *variable_data = (char *) (cmd + 1);
531 _mesa_unmarshal_NamedProgramLocalParameters4fvEXT(struct gl_context *ctx, const struct marshal_cmd_NamedProgramLocalParameters4fvEXT *cmd, const uint64_t *last)
533 GLuint program = cmd->program;
534 GLenum target = cmd->target;
535 GLuint index = cmd->index;
536 GLsizei count = cmd->count;
537 const GLfloat * params = cmd->params;
540 assert (cmd_size == cmd->cmd_base.cmd_size);
548 struct marshal_cmd_NamedProgramLocalParameters4fvEXT *cmd;
549 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedProgramLocalParameters4fvEXT, cmd_size);
550 cmd->program = program;
551 cmd->target = target;
552 cmd->index = index;
553 cmd->count = count;
554 memcpy(cmd->params, params, 4 * sizeof(GLfloat));
571 _mesa_unmarshal_BindImageTextureEXT(struct gl_context *ctx, const struct marshal_cmd_BindImageTextureEXT *cmd, const uint64_t *last)
573 GLuint index = cmd->index;
574 GLuint texture = cmd->texture;
575 GLint level = cmd->level;
576 GLboolean layered = cmd->layered;
577 GLint layer = cmd->layer;
578 GLenum access = cmd->access;
579 GLint format = cmd->format;
582 assert (cmd_size == cmd->cmd_base.cmd_size);
590 struct marshal_cmd_BindImageTextureEXT *cmd;
591 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindImageTextureEXT, cmd_size);
592 cmd->index = index;
593 cmd->texture = texture;
594 cmd->level = level;
595 cmd->layered = layered;
596 cmd->layer = layer;
597 cmd->access = access;
598 cmd->format = format;
610 _mesa_unmarshal_SubpixelPrecisionBiasNV(struct gl_context *ctx, const struct marshal_cmd_SubpixelPrecisionBiasNV *cmd, const uint64_t *last)
612 GLuint xbits = cmd->xbits;
613 GLuint ybits = cmd->ybits;
616 assert (cmd_size == cmd->cmd_base.cmd_size);
624 struct marshal_cmd_SubpixelPrecisionBiasNV *cmd;
625 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SubpixelPrecisionBiasNV, cmd_size);
626 cmd->xbits = xbits;
627 cmd->ybits = ybits;
639 _mesa_unmarshal_ConservativeRasterParameterfNV(struct gl_context *ctx, const struct marshal_cmd_ConservativeRasterParameterfNV *cmd, const uint64_t *last)
641 GLenum pname = cmd->pname;
642 GLfloat param = cmd->param;
645 assert (cmd_size == cmd->cmd_base.cmd_size);
653 struct marshal_cmd_ConservativeRasterParameterfNV *cmd;
654 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ConservativeRasterParameterfNV, cmd_size);
655 cmd->pname = pname;
656 cmd->param = param;
668 _mesa_unmarshal_ConservativeRasterParameteriNV(struct gl_context *ctx, const struct marshal_cmd_ConservativeRasterParameteriNV *cmd, const uint64_t *last)
670 GLenum pname = cmd->pname;
671 GLint param = cmd->param;
674 assert (cmd_size == cmd->cmd_base.cmd_size);
682 struct marshal_cmd_ConservativeRasterParameteriNV *cmd;
683 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ConservativeRasterParameteriNV, cmd_size);
684 cmd->pname = pname;
685 cmd->param = param;
756 _mesa_unmarshal_DeletePerfQueryINTEL(struct gl_context *ctx, const struct marshal_cmd_DeletePerfQueryINTEL *cmd, const uint64_t *last)
758 GLuint queryHandle = cmd->queryHandle;
761 assert (cmd_size == cmd->cmd_base.cmd_size);
769 struct marshal_cmd_DeletePerfQueryINTEL *cmd;
770 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeletePerfQueryINTEL, cmd_size);
771 cmd->queryHandle = queryHandle;
782 _mesa_unmarshal_BeginPerfQueryINTEL(struct gl_context *ctx, const struct marshal_cmd_BeginPerfQueryINTEL *cmd, const uint64_t *last)
784 GLuint queryHandle = cmd->queryHandle;
787 assert (cmd_size == cmd->cmd_base.cmd_size);
795 struct marshal_cmd_BeginPerfQueryINTEL *cmd;
796 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BeginPerfQueryINTEL, cmd_size);
797 cmd->queryHandle = queryHandle;
808 _mesa_unmarshal_EndPerfQueryINTEL(struct gl_context *ctx, const struct marshal_cmd_EndPerfQueryINTEL *cmd, const uint64_t *last)
810 GLuint queryHandle = cmd->queryHandle;
813 assert (cmd_size == cmd->cmd_base.cmd_size);
821 struct marshal_cmd_EndPerfQueryINTEL *cmd;
822 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EndPerfQueryINTEL, cmd_size);
823 cmd->queryHandle = queryHandle;
844 _mesa_unmarshal_AlphaToCoverageDitherControlNV(struct gl_context *ctx, const struct marshal_cmd_AlphaToCoverageDitherControlNV *cmd, const uint64_t *last)
846 GLenum mode = cmd->mode;
849 assert (cmd_size == cmd->cmd_base.cmd_size);
857 struct marshal_cmd_AlphaToCoverageDitherControlNV *cmd;
858 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_AlphaToCoverageDitherControlNV, cmd_size);
859 cmd->mode = mode;
872 _mesa_unmarshal_PolygonOffsetClampEXT(struct gl_context *ctx, const struct marshal_cmd_PolygonOffsetClampEXT *cmd, const uint64_t *last)
874 GLfloat factor = cmd->factor;
875 GLfloat units = cmd->units;
876 GLfloat clamp = cmd->clamp;
879 assert (cmd_size == cmd->cmd_base.cmd_size);
887 struct marshal_cmd_PolygonOffsetClampEXT *cmd;
888 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PolygonOffsetClampEXT, cmd_size);
889 cmd->factor = factor;
890 cmd->units = units;
891 cmd->clamp = clamp;
904 _mesa_unmarshal_WindowRectanglesEXT(struct gl_context *ctx, const struct marshal_cmd_WindowRectanglesEXT *cmd, const uint64_t *last)
906 GLenum mode = cmd->mode;
907 GLsizei count = cmd->count;
909 const char *variable_data = (const char *) (cmd + 1);
912 return cmd->cmd_base.cmd_size;
920 struct marshal_cmd_WindowRectanglesEXT *cmd;
926 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WindowRectanglesEXT, cmd_size);
927 cmd->mode = mode;
928 cmd->count = count;
929 char *variable_data = (char *) (cmd + 1);
940 _mesa_unmarshal_FramebufferFetchBarrierEXT(struct gl_context *ctx, const struct marshal_cmd_FramebufferFetchBarrierEXT *cmd, const uint64_t *last)
944 assert (cmd_size == cmd->cmd_base.cmd_size);
952 struct marshal_cmd_FramebufferFetchBarrierEXT *cmd;
953 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferFetchBarrierEXT, cmd_size);
954 (void) cmd;
970 _mesa_unmarshal_RenderbufferStorageMultisampleAdvancedAMD(struct gl_context *ctx, const struct marshal_cmd_RenderbufferStorageMultisampleAdvancedAMD *cmd, const uint64_t *last)
972 GLenum target = cmd->target;
973 GLsizei samples = cmd->samples;
974 GLsizei storageSamples = cmd->storageSamples;
975 GLenum internalformat = cmd->internalformat;
976 GLsizei width = cmd->width;
977 GLsizei height = cmd->height;
980 assert (cmd_size == cmd->cmd_base.cmd_size);
988 struct marshal_cmd_RenderbufferStorageMultisampleAdvancedAMD *cmd;
989 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_RenderbufferStorageMultisampleAdvancedAMD, cmd_size);
990 cmd->target = target;
991 cmd->samples = samples;
992 cmd->storageSamples = storageSamples;
993 cmd->internalformat = internalformat;
994 cmd->width = width;
995 cmd->height = height;
1011 _mesa_unmarshal_NamedRenderbufferStorageMultisampleAdvancedAMD(struct gl_context *ctx, const struct marshal_cmd_NamedRenderbufferStorageMultisampleAdvancedAMD *cmd, const uint64_t *last)
1013 GLuint renderbuffer = cmd->renderbuffer;
1014 GLsizei samples = cmd->samples;
1015 GLsizei storageSamples = cmd->storageSamples;
1016 GLenum internalformat = cmd->internalformat;
1017 GLsizei width = cmd->width;
1018 GLsizei height = cmd->height;
1021 assert (cmd_size == cmd->cmd_base.cmd_size);
1029 struct marshal_cmd_NamedRenderbufferStorageMultisampleAdvancedAMD *cmd;
1030 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedRenderbufferStorageMultisampleAdvancedAMD, cmd_size);
1031 cmd->renderbuffer = renderbuffer;
1032 cmd->samples = samples;
1033 cmd->storageSamples = storageSamples;
1034 cmd->internalformat = internalformat;
1035 cmd->width = width;
1036 cmd->height = height;
1050 _mesa_unmarshal_StencilFuncSeparateATI(struct gl_context *ctx, const struct marshal_cmd_StencilFuncSeparateATI *cmd, const uint64_t *last)
1052 GLenum frontfunc = cmd->frontfunc;
1053 GLenum backfunc = cmd->backfunc;
1054 GLint ref = cmd->ref;
1055 GLuint mask = cmd->mask;
1058 assert (cmd_size == cmd->cmd_base.cmd_size);
1066 struct marshal_cmd_StencilFuncSeparateATI *cmd;
1067 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_StencilFuncSeparateATI, cmd_size);
1068 cmd->frontfunc = frontfunc;
1069 cmd->backfunc = backfunc;
1070 cmd->ref = ref;
1071 cmd->mask = mask;
1085 _mesa_unmarshal_ProgramEnvParameters4fvEXT(struct gl_context *ctx, const struct marshal_cmd_ProgramEnvParameters4fvEXT *cmd, const uint64_t *last)
1087 GLenum target = cmd->target;
1088 GLuint index = cmd->index;
1089 GLsizei count = cmd->count;
1090 const GLfloat * params = cmd->params;
1093 assert (cmd_size == cmd->cmd_base.cmd_size);
1101 struct marshal_cmd_ProgramEnvParameters4fvEXT *cmd;
1102 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramEnvParameters4fvEXT, cmd_size);
1103 cmd->target = target;
1104 cmd->index = index;
1105 cmd->count = count;
1106 memcpy(cmd->params, params, 4 * sizeof(GLfloat));
1120 _mesa_unmarshal_ProgramLocalParameters4fvEXT(struct gl_context *ctx, const struct marshal_cmd_ProgramLocalParameters4fvEXT *cmd, const uint64_t *last)
1122 GLenum target = cmd->target;
1123 GLuint index = cmd->index;
1124 GLsizei count = cmd->count;
1125 const GLfloat * params = cmd->params;
1128 assert (cmd_size == cmd->cmd_base.cmd_size);
1136 struct marshal_cmd_ProgramLocalParameters4fvEXT *cmd;
1137 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ProgramLocalParameters4fvEXT, cmd_size);
1138 cmd->target = target;
1139 cmd->index = index;
1140 cmd->count = count;
1141 memcpy(cmd->params, params, 4 * sizeof(GLfloat));
1158 _mesa_unmarshal_InternalBufferSubDataCopyMESA(struct gl_context *ctx, const struct marshal_cmd_InternalBufferSubDataCopyMESA *cmd, const uint64_t *last)
1160 GLintptr srcBuffer = cmd->srcBuffer;
1161 GLuint srcOffset = cmd->srcOffset;
1162 GLuint dstTargetOrName = cmd->dstTargetOrName;
1163 GLintptr dstOffset = cmd->dstOffset;
1164 GLsizeiptr size = cmd->size;
1165 GLboolean named = cmd->named;
1166 GLboolean ext_dsa = cmd->ext_dsa;
1169 assert (cmd_size == cmd->cmd_base.cmd_size);
1177 struct marshal_cmd_InternalBufferSubDataCopyMESA *cmd;
1178 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InternalBufferSubDataCopyMESA, cmd_size);
1179 cmd->srcBuffer = srcBuffer;
1180 cmd->srcOffset = srcOffset;
1181 cmd->dstTargetOrName = dstTargetOrName;
1182 cmd->dstOffset = dstOffset;
1183 cmd->size = size;
1184 cmd->named = named;
1185 cmd->ext_dsa = ext_dsa;
1196 _mesa_unmarshal_InternalSetError(struct gl_context *ctx, const struct marshal_cmd_InternalSetError *cmd, const uint64_t *last)
1198 GLenum error = cmd->error;
1201 assert (cmd_size == cmd->cmd_base.cmd_size);
1209 struct marshal_cmd_InternalSetError *cmd;
1210 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_InternalSetError, cmd_size);
1211 cmd->error = error;
1265 _mesa_unmarshal_ClearColorIiEXT(struct gl_context *ctx, const struct marshal_cmd_ClearColorIiEXT *cmd, const uint64_t *last)
1267 GLint r = cmd->r;
1268 GLint g = cmd->g;
1269 GLint b = cmd->b;
1270 GLint a = cmd->a;
1273 assert (cmd_size == cmd->cmd_base.cmd_size);
1281 struct marshal_cmd_ClearColorIiEXT *cmd;
1282 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearColorIiEXT, cmd_size);
1283 cmd->r = r;
1284 cmd->g = g;
1285 cmd->b = b;
1286 cmd->a = a;
1300 _mesa_unmarshal_ClearColorIuiEXT(struct gl_context *ctx, const struct marshal_cmd_ClearColorIuiEXT *cmd, const uint64_t *last)
1302 GLuint r = cmd->r;
1303 GLuint g = cmd->g;
1304 GLuint b = cmd->b;
1305 GLuint a = cmd->a;
1308 assert (cmd_size == cmd->cmd_base.cmd_size);
1316 struct marshal_cmd_ClearColorIuiEXT *cmd;
1317 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearColorIuiEXT, cmd_size);
1318 cmd->r = r;
1319 cmd->g = g;
1320 cmd->b = b;
1321 cmd->a = a;
1334 _mesa_unmarshal_TexParameterIiv(struct gl_context *ctx, const struct marshal_cmd_TexParameterIiv *cmd, const uint64_t *last)
1336 GLenum target = cmd->target;
1337 GLenum pname = cmd->pname;
1339 const char *variable_data = (const char *) (cmd + 1);
1342 return cmd->cmd_base.cmd_size;
1350 struct marshal_cmd_TexParameterIiv *cmd;
1356 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameterIiv, cmd_size);
1357 cmd->target = target;
1358 cmd->pname = pname;
1359 char *variable_data = (char *) (cmd + 1);
1373 _mesa_unmarshal_TexParameterIuiv(struct gl_context *ctx, const struct marshal_cmd_TexParameterIuiv *cmd, const uint64_t *last)
1375 GLenum target = cmd->target;
1376 GLenum pname = cmd->pname;
1378 const char *variable_data = (const char *) (cmd + 1);
1381 return cmd->cmd_base.cmd_size;
1389 struct marshal_cmd_TexParameterIuiv *cmd;
1395 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameterIuiv, cmd_size);
1396 cmd->target = target;
1397 cmd->pname = pname;
1398 char *variable_data = (char *) (cmd + 1);
1431 _mesa_unmarshal_VertexAttribI1iEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI1iEXT *cmd, const uint64_t *last)
1433 GLuint index = cmd->index;
1434 GLint x = cmd->x;
1437 assert (cmd_size == cmd->cmd_base.cmd_size);
1445 struct marshal_cmd_VertexAttribI1iEXT *cmd;
1446 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI1iEXT, cmd_size);
1447 cmd->index = index;
1448 cmd->x = x;
1461 _mesa_unmarshal_VertexAttribI2iEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI2iEXT *cmd, const uint64_t *last)
1463 GLuint index = cmd->index;
1464 GLint x = cmd->x;
1465 GLint y = cmd->y;
1468 assert (cmd_size == cmd->cmd_base.cmd_size);
1476 struct marshal_cmd_VertexAttribI2iEXT *cmd;
1477 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI2iEXT, cmd_size);
1478 cmd->index = index;
1479 cmd->x = x;
1480 cmd->y = y;
1494 _mesa_unmarshal_VertexAttribI3iEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI3iEXT *cmd, const uint64_t *last)
1496 GLuint index = cmd->index;
1497 GLint x = cmd->x;
1498 GLint y = cmd->y;
1499 GLint z = cmd->z;
1502 assert (cmd_size == cmd->cmd_base.cmd_size);
1510 struct marshal_cmd_VertexAttribI3iEXT *cmd;
1511 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI3iEXT, cmd_size);
1512 cmd->index = index;
1513 cmd->x = x;
1514 cmd->y = y;
1515 cmd->z = z;
1530 _mesa_unmarshal_VertexAttribI4iEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4iEXT *cmd, const uint64_t *last)
1532 GLuint index = cmd->index;
1533 GLint x = cmd->x;
1534 GLint y = cmd->y;
1535 GLint z = cmd->z;
1536 GLint w = cmd->w;
1539 assert (cmd_size == cmd->cmd_base.cmd_size);
1547 struct marshal_cmd_VertexAttribI4iEXT *cmd;
1548 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4iEXT, cmd_size);
1549 cmd->index = index;
1550 cmd->x = x;
1551 cmd->y = y;
1552 cmd->z = z;
1553 cmd->w = w;
1565 _mesa_unmarshal_VertexAttribI1uiEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI1uiEXT *cmd, const uint64_t *last)
1567 GLuint index = cmd->index;
1568 GLuint x = cmd->x;
1571 assert (cmd_size == cmd->cmd_base.cmd_size);
1579 struct marshal_cmd_VertexAttribI1uiEXT *cmd;
1580 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI1uiEXT, cmd_size);
1581 cmd->index = index;
1582 cmd->x = x;
1595 _mesa_unmarshal_VertexAttribI2uiEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI2uiEXT *cmd, const uint64_t *last)
1597 GLuint index = cmd->index;
1598 GLuint x = cmd->x;
1599 GLuint y = cmd->y;
1602 assert (cmd_size == cmd->cmd_base.cmd_size);
1610 struct marshal_cmd_VertexAttribI2uiEXT *cmd;
1611 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI2uiEXT, cmd_size);
1612 cmd->index = index;
1613 cmd->x = x;
1614 cmd->y = y;
1628 _mesa_unmarshal_VertexAttribI3uiEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI3uiEXT *cmd, const uint64_t *last)
1630 GLuint index = cmd->index;
1631 GLuint x = cmd->x;
1632 GLuint y = cmd->y;
1633 GLuint z = cmd->z;
1636 assert (cmd_size == cmd->cmd_base.cmd_size);
1644 struct marshal_cmd_VertexAttribI3uiEXT *cmd;
1645 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI3uiEXT, cmd_size);
1646 cmd->index = index;
1647 cmd->x = x;
1648 cmd->y = y;
1649 cmd->z = z;
1664 _mesa_unmarshal_VertexAttribI4uiEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4uiEXT *cmd, const uint64_t *last)
1666 GLuint index = cmd->index;
1667 GLuint x = cmd->x;
1668 GLuint y = cmd->y;
1669 GLuint z = cmd->z;
1670 GLuint w = cmd->w;
1673 assert (cmd_size == cmd->cmd_base.cmd_size);
1681 struct marshal_cmd_VertexAttribI4uiEXT *cmd;
1682 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4uiEXT, cmd_size);
1683 cmd->index = index;
1684 cmd->x = x;
1685 cmd->y = y;
1686 cmd->z = z;
1687 cmd->w = w;
1699 _mesa_unmarshal_VertexAttribI1iv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI1iv *cmd, const uint64_t *last)
1701 GLuint index = cmd->index;
1702 const GLint * v = cmd->v;
1705 assert (cmd_size == cmd->cmd_base.cmd_size);
1713 struct marshal_cmd_VertexAttribI1iv *cmd;
1714 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI1iv, cmd_size);
1715 cmd->index = index;
1716 memcpy(cmd->v, v, 1 * sizeof(GLint));
1728 _mesa_unmarshal_VertexAttribI2ivEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI2ivEXT *cmd, const uint64_t *last)
1730 GLuint index = cmd->index;
1731 const GLint * v = cmd->v;
1734 assert (cmd_size == cmd->cmd_base.cmd_size);
1742 struct marshal_cmd_VertexAttribI2ivEXT *cmd;
1743 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI2ivEXT, cmd_size);
1744 cmd->index = index;
1745 memcpy(cmd->v, v, 2 * sizeof(GLint));
1757 _mesa_unmarshal_VertexAttribI3ivEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI3ivEXT *cmd, const uint64_t *last)
1759 GLuint index = cmd->index;
1760 const GLint * v = cmd->v;
1763 assert (cmd_size == cmd->cmd_base.cmd_size);
1771 struct marshal_cmd_VertexAttribI3ivEXT *cmd;
1772 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI3ivEXT, cmd_size);
1773 cmd->index = index;
1774 memcpy(cmd->v, v, 3 * sizeof(GLint));
1786 _mesa_unmarshal_VertexAttribI4ivEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4ivEXT *cmd, const uint64_t *last)
1788 GLuint index = cmd->index;
1789 const GLint * v = cmd->v;
1792 assert (cmd_size == cmd->cmd_base.cmd_size);
1800 struct marshal_cmd_VertexAttribI4ivEXT *cmd;
1801 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4ivEXT, cmd_size);
1802 cmd->index = index;
1803 memcpy(cmd->v, v, 4 * sizeof(GLint));
1815 _mesa_unmarshal_VertexAttribI1uiv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI1uiv *cmd, const uint64_t *last)
1817 GLuint index = cmd->index;
1818 const GLuint * v = cmd->v;
1821 assert (cmd_size == cmd->cmd_base.cmd_size);
1829 struct marshal_cmd_VertexAttribI1uiv *cmd;
1830 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI1uiv, cmd_size);
1831 cmd->index = index;
1832 memcpy(cmd->v, v, 1 * sizeof(GLuint));
1844 _mesa_unmarshal_VertexAttribI2uivEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI2uivEXT *cmd, const uint64_t *last)
1846 GLuint index = cmd->index;
1847 const GLuint * v = cmd->v;
1850 assert (cmd_size == cmd->cmd_base.cmd_size);
1858 struct marshal_cmd_VertexAttribI2uivEXT *cmd;
1859 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI2uivEXT, cmd_size);
1860 cmd->index = index;
1861 memcpy(cmd->v, v, 2 * sizeof(GLuint));
1873 _mesa_unmarshal_VertexAttribI3uivEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI3uivEXT *cmd, const uint64_t *last)
1875 GLuint index = cmd->index;
1876 const GLuint * v = cmd->v;
1879 assert (cmd_size == cmd->cmd_base.cmd_size);
1887 struct marshal_cmd_VertexAttribI3uivEXT *cmd;
1888 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI3uivEXT, cmd_size);
1889 cmd->index = index;
1890 memcpy(cmd->v, v, 3 * sizeof(GLuint));
1902 _mesa_unmarshal_VertexAttribI4uivEXT(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4uivEXT *cmd, const uint64_t *last)
1904 GLuint index = cmd->index;
1905 const GLuint * v = cmd->v;
1908 assert (cmd_size == cmd->cmd_base.cmd_size);
1916 struct marshal_cmd_VertexAttribI4uivEXT *cmd;
1917 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4uivEXT, cmd_size);
1918 cmd->index = index;
1919 memcpy(cmd->v, v, 4 * sizeof(GLuint));
1931 _mesa_unmarshal_VertexAttribI4bv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4bv *cmd, const uint64_t *last)
1933 GLuint index = cmd->index;
1934 const GLbyte * v = cmd->v;
1937 assert (cmd_size == cmd->cmd_base.cmd_size);
1945 struct marshal_cmd_VertexAttribI4bv *cmd;
1946 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4bv, cmd_size);
1947 cmd->index = index;
1948 memcpy(cmd->v, v, 4 * sizeof(GLbyte));
1960 _mesa_unmarshal_VertexAttribI4sv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4sv *cmd, const uint64_t *last)
1962 GLuint index = cmd->index;
1963 const GLshort * v = cmd->v;
1966 assert (cmd_size == cmd->cmd_base.cmd_size);
1974 struct marshal_cmd_VertexAttribI4sv *cmd;
1975 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4sv, cmd_size);
1976 cmd->index = index;
1977 memcpy(cmd->v, v, 4 * sizeof(GLshort));
1989 _mesa_unmarshal_VertexAttribI4ubv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4ubv *cmd, const uint64_t *last)
1991 GLuint index = cmd->index;
1992 const GLubyte * v = cmd->v;
1995 assert (cmd_size == cmd->cmd_base.cmd_size);
2003 struct marshal_cmd_VertexAttribI4ubv *cmd;
2004 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4ubv, cmd_size);
2005 cmd->index = index;
2006 memcpy(cmd->v, v, 4 * sizeof(GLubyte));
2018 _mesa_unmarshal_VertexAttribI4usv(struct gl_context *ctx, const struct marshal_cmd_VertexAttribI4usv *cmd, const uint64_t *last)
2020 GLuint index = cmd->index;
2021 const GLushort * v = cmd->v;
2024 assert (cmd_size == cmd->cmd_base.cmd_size);
2032 struct marshal_cmd_VertexAttribI4usv *cmd;
2033 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribI4usv, cmd_size);
2034 cmd->index = index;
2035 memcpy(cmd->v, v, 4 * sizeof(GLushort));
2050 _mesa_unmarshal_VertexAttribIPointer(struct gl_context *ctx, const struct marshal_cmd_VertexAttribIPointer *cmd, const uint64_t *last)
2052 GLuint index = cmd->index;
2053 GLint size = cmd->size;
2054 GLenum type = cmd->type;
2055 GLsizei stride = cmd->stride;
2056 const GLvoid * pointer = cmd->pointer;
2059 assert (cmd_size == cmd->cmd_base.cmd_size);
2067 struct marshal_cmd_VertexAttribIPointer *cmd;
2068 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribIPointer, cmd_size);
2069 cmd->index = index;
2070 cmd->size = size;
2071 cmd->type = type;
2072 cmd->stride = stride;
2073 cmd->pointer = pointer;
2106 _mesa_unmarshal_Uniform1ui(struct gl_context *ctx, const struct marshal_cmd_Uniform1ui *cmd, const uint64_t *last)
2108 GLint location = cmd->location;
2109 GLuint x = cmd->x;
2112 assert (cmd_size == cmd->cmd_base.cmd_size);
2120 struct marshal_cmd_Uniform1ui *cmd;
2121 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1ui, cmd_size);
2122 cmd->location = location;
2123 cmd->x = x;
2136 _mesa_unmarshal_Uniform2ui(struct gl_context *ctx, const struct marshal_cmd_Uniform2ui *cmd, const uint64_t *last)
2138 GLint location = cmd->location;
2139 GLuint x = cmd->x;
2140 GLuint y = cmd->y;
2143 assert (cmd_size == cmd->cmd_base.cmd_size);
2151 struct marshal_cmd_Uniform2ui *cmd;
2152 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2ui, cmd_size);
2153 cmd->location = location;
2154 cmd->x = x;
2155 cmd->y = y;
2169 _mesa_unmarshal_Uniform3ui(struct gl_context *ctx, const struct marshal_cmd_Uniform3ui *cmd, const uint64_t *last)
2171 GLint location = cmd->location;
2172 GLuint x = cmd->x;
2173 GLuint y = cmd->y;
2174 GLuint z = cmd->z;
2177 assert (cmd_size == cmd->cmd_base.cmd_size);
2185 struct marshal_cmd_Uniform3ui *cmd;
2186 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3ui, cmd_size);
2187 cmd->location = location;
2188 cmd->x = x;
2189 cmd->y = y;
2190 cmd->z = z;
2205 _mesa_unmarshal_Uniform4ui(struct gl_context *ctx, const struct marshal_cmd_Uniform4ui *cmd, const uint64_t *last)
2207 GLint location = cmd->location;
2208 GLuint x = cmd->x;
2209 GLuint y = cmd->y;
2210 GLuint z = cmd->z;
2211 GLuint w = cmd->w;
2214 assert (cmd_size == cmd->cmd_base.cmd_size);
2222 struct marshal_cmd_Uniform4ui *cmd;
2223 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4ui, cmd_size);
2224 cmd->location = location;
2225 cmd->x = x;
2226 cmd->y = y;
2227 cmd->z = z;
2228 cmd->w = w;
2241 _mesa_unmarshal_Uniform1uiv(struct gl_context *ctx, const struct marshal_cmd_Uniform1uiv *cmd, const uint64_t *last)
2243 GLint location = cmd->location;
2244 GLsizei count = cmd->count;
2246 const char *variable_data = (const char *) (cmd + 1);
2249 return cmd->cmd_base.cmd_size;
2257 struct marshal_cmd_Uniform1uiv *cmd;
2263 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform1uiv, cmd_size);
2264 cmd->location = location;
2265 cmd->count = count;
2266 char *variable_data = (char *) (cmd + 1);
2280 _mesa_unmarshal_Uniform2uiv(struct gl_context *ctx, const struct marshal_cmd_Uniform2uiv *cmd, const uint64_t *last)
2282 GLint location = cmd->location;
2283 GLsizei count = cmd->count;
2285 const char *variable_data = (const char *) (cmd + 1);
2288 return cmd->cmd_base.cmd_size;
2296 struct marshal_cmd_Uniform2uiv *cmd;
2302 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform2uiv, cmd_size);
2303 cmd->location = location;
2304 cmd->count = count;
2305 char *variable_data = (char *) (cmd + 1);
2319 _mesa_unmarshal_Uniform3uiv(struct gl_context *ctx, const struct marshal_cmd_Uniform3uiv *cmd, const uint64_t *last)
2321 GLint location = cmd->location;
2322 GLsizei count = cmd->count;
2324 const char *variable_data = (const char *) (cmd + 1);
2327 return cmd->cmd_base.cmd_size;
2335 struct marshal_cmd_Uniform3uiv *cmd;
2341 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform3uiv, cmd_size);
2342 cmd->location = location;
2343 cmd->count = count;
2344 char *variable_data = (char *) (cmd + 1);
2358 _mesa_unmarshal_Uniform4uiv(struct gl_context *ctx, const struct marshal_cmd_Uniform4uiv *cmd, const uint64_t *last)
2360 GLint location = cmd->location;
2361 GLsizei count = cmd->count;
2363 const char *variable_data = (const char *) (cmd + 1);
2366 return cmd->cmd_base.cmd_size;
2374 struct marshal_cmd_Uniform4uiv *cmd;
2380 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Uniform4uiv, cmd_size);
2381 cmd->location = location;
2382 cmd->count = count;
2383 char *variable_data = (char *) (cmd + 1);
2407 _mesa_unmarshal_BindFragDataLocation(struct gl_context *ctx, const struct marshal_cmd_BindFragDataLocation *cmd, const uint64_t *last)
2409 GLuint program = cmd->program;
2410 GLuint colorNumber = cmd->colorNumber;
2412 const char *variable_data = (const char *) (cmd + 1);
2415 return cmd->cmd_base.cmd_size;
2423 struct marshal_cmd_BindFragDataLocation *cmd;
2429 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindFragDataLocation, cmd_size);
2430 cmd->program = program;
2431 cmd->colorNumber = colorNumber;
2432 char *variable_data = (char *) (cmd + 1);
2456 _mesa_unmarshal_ClearBufferiv(struct gl_context *ctx, const struct marshal_cmd_ClearBufferiv *cmd, const uint64_t *last)
2458 GLenum buffer = cmd->buffer;
2459 GLint drawbuffer = cmd->drawbuffer;
2461 const char *variable_data = (const char *) (cmd + 1);
2464 return cmd->cmd_base.cmd_size;
2472 struct marshal_cmd_ClearBufferiv *cmd;
2478 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearBufferiv, cmd_size);
2479 cmd->buffer = buffer;
2480 cmd->drawbuffer = drawbuffer;
2481 char *variable_data = (char *) (cmd + 1);
2495 _mesa_unmarshal_ClearBufferuiv(struct gl_context *ctx, const struct marshal_cmd_ClearBufferuiv *cmd, const uint64_t *last)
2497 GLenum buffer = cmd->buffer;
2498 GLint drawbuffer = cmd->drawbuffer;
2500 const char *variable_data = (const char *) (cmd + 1);
2503 return cmd->cmd_base.cmd_size;
2511 struct marshal_cmd_ClearBufferuiv *cmd;
2517 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearBufferuiv, cmd_size);
2518 cmd->buffer = buffer;
2519 cmd->drawbuffer = drawbuffer;
2520 char *variable_data = (char *) (cmd + 1);
2534 _mesa_unmarshal_ClearBufferfv(struct gl_context *ctx, const struct marshal_cmd_ClearBufferfv *cmd, const uint64_t *last)
2536 GLenum buffer = cmd->buffer;
2537 GLint drawbuffer = cmd->drawbuffer;
2539 const char *variable_data = (const char *) (cmd + 1);
2542 return cmd->cmd_base.cmd_size;
2550 struct marshal_cmd_ClearBufferfv *cmd;
2556 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearBufferfv, cmd_size);
2557 cmd->buffer = buffer;
2558 cmd->drawbuffer = drawbuffer;
2559 char *variable_data = (char *) (cmd + 1);
2574 _mesa_unmarshal_ClearBufferfi(struct gl_context *ctx, const struct marshal_cmd_ClearBufferfi *cmd, const uint64_t *last)
2576 GLenum buffer = cmd->buffer;
2577 GLint drawbuffer = cmd->drawbuffer;
2578 GLfloat depth = cmd->depth;
2579 GLint stencil = cmd->stencil;
2582 assert (cmd_size == cmd->cmd_base.cmd_size);
2590 struct marshal_cmd_ClearBufferfi *cmd;
2591 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearBufferfi, cmd_size);
2592 cmd->buffer = buffer;
2593 cmd->drawbuffer = drawbuffer;
2594 cmd->depth = depth;
2595 cmd->stencil = stencil;
2616 _mesa_unmarshal_BeginTransformFeedback(struct gl_context *ctx, const struct marshal_cmd_BeginTransformFeedback *cmd, const uint64_t *last)
2618 GLenum mode = cmd->mode;
2621 assert (cmd_size == cmd->cmd_base.cmd_size);
2629 struct marshal_cmd_BeginTransformFeedback *cmd;
2630 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BeginTransformFeedback, cmd_size);
2631 cmd->mode = mode;
2641 _mesa_unmarshal_EndTransformFeedback(struct gl_context *ctx, const struct marshal_cmd_EndTransformFeedback *cmd, const uint64_t *last)
2645 assert (cmd_size == cmd->cmd_base.cmd_size);
2653 struct marshal_cmd_EndTransformFeedback *cmd;
2654 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EndTransformFeedback, cmd_size);
2655 (void) cmd;
2670 _mesa_unmarshal_BindBufferRange(struct gl_context *ctx, const struct marshal_cmd_BindBufferRange *cmd, const uint64_t *last)
2672 GLenum target = cmd->target;
2673 GLuint index = cmd->index;
2674 GLuint buffer = cmd->buffer;
2675 GLintptr offset = cmd->offset;
2676 GLsizeiptr size = cmd->size;
2679 assert (cmd_size == cmd->cmd_base.cmd_size);
2687 struct marshal_cmd_BindBufferRange *cmd;
2688 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindBufferRange, cmd_size);
2689 cmd->target = target;
2690 cmd->index = index;
2691 cmd->buffer = buffer;
2692 cmd->offset = offset;
2693 cmd->size = size;
2706 _mesa_unmarshal_BindBufferBase(struct gl_context *ctx, const struct marshal_cmd_BindBufferBase *cmd, const uint64_t *last)
2708 GLenum target = cmd->target;
2709 GLuint index = cmd->index;
2710 GLuint buffer = cmd->buffer;
2713 assert (cmd_size == cmd->cmd_base.cmd_size);
2721 struct marshal_cmd_BindBufferBase *cmd;
2722 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindBufferBase, cmd_size);
2723 cmd->target = target;
2724 cmd->index = index;
2725 cmd->buffer = buffer;
2757 _mesa_unmarshal_BeginConditionalRender(struct gl_context *ctx, const struct marshal_cmd_BeginConditionalRender *cmd, const uint64_t *last)
2759 GLuint query = cmd->query;
2760 GLenum mode = cmd->mode;
2763 assert (cmd_size == cmd->cmd_base.cmd_size);
2771 struct marshal_cmd_BeginConditionalRender *cmd;
2772 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BeginConditionalRender, cmd_size);
2773 cmd->query = query;
2774 cmd->mode = mode;
2784 _mesa_unmarshal_EndConditionalRender(struct gl_context *ctx, const struct marshal_cmd_EndConditionalRender *cmd, const uint64_t *last)
2788 assert (cmd_size == cmd->cmd_base.cmd_size);
2796 struct marshal_cmd_EndConditionalRender *cmd;
2797 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_EndConditionalRender, cmd_size);
2798 (void) cmd;
2809 _mesa_unmarshal_PrimitiveRestartIndex(struct gl_context *ctx, const struct marshal_cmd_PrimitiveRestartIndex *cmd, const uint64_t *last)
2811 GLuint index = cmd->index;
2814 assert (cmd_size == cmd->cmd_base.cmd_size);
2822 struct marshal_cmd_PrimitiveRestartIndex *cmd;
2823 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PrimitiveRestartIndex, cmd_size);
2824 cmd->index = index;
2859 _mesa_unmarshal_FramebufferTexture(struct gl_context *ctx, const struct marshal_cmd_FramebufferTexture *cmd, const uint64_t *last)
2861 GLenum target = cmd->target;
2862 GLenum attachment = cmd->attachment;
2863 GLuint texture = cmd->texture;
2864 GLint level = cmd->level;
2867 assert (cmd_size == cmd->cmd_base.cmd_size);
2875 struct marshal_cmd_FramebufferTexture *cmd;
2876 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferTexture, cmd_size);
2877 cmd->target = target;
2878 cmd->attachment = attachment;
2879 cmd->texture = texture;
2880 cmd->level = level;
2890 _mesa_unmarshal_PrimitiveRestartNV(struct gl_context *ctx, const struct marshal_cmd_PrimitiveRestartNV *cmd, const uint64_t *last)
2894 assert (cmd_size == cmd->cmd_base.cmd_size);
2902 struct marshal_cmd_PrimitiveRestartNV *cmd;
2903 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PrimitiveRestartNV, cmd_size);
2904 (void) cmd;
2918 _mesa_unmarshal_BindBufferOffsetEXT(struct gl_context *ctx, const struct marshal_cmd_BindBufferOffsetEXT *cmd, const uint64_t *last)
2920 GLenum target = cmd->target;
2921 GLuint index = cmd->index;
2922 GLuint buffer = cmd->buffer;
2923 GLintptr offset = cmd->offset;
2926 assert (cmd_size == cmd->cmd_base.cmd_size);
2934 struct marshal_cmd_BindBufferOffsetEXT *cmd;
2935 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindBufferOffsetEXT, cmd_size);
2936 cmd->target = target;
2937 cmd->index = index;
2938 cmd->buffer = buffer;
2939 cmd->offset = offset;
2951 _mesa_unmarshal_BindTransformFeedback(struct gl_context *ctx, const struct marshal_cmd_BindTransformFeedback *cmd, const uint64_t *last)
2953 GLenum target = cmd->target;
2954 GLuint id = cmd->id;
2957 assert (cmd_size == cmd->cmd_base.cmd_size);
2965 struct marshal_cmd_BindTransformFeedback *cmd;
2966 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindTransformFeedback, cmd_size);
2967 cmd->target = target;
2968 cmd->id = id;
2980 _mesa_unmarshal_DeleteTransformFeedbacks(struct gl_context *ctx, const struct marshal_cmd_DeleteTransformFeedbacks *cmd, const uint64_t *last)
2982 GLsizei n = cmd->n;
2984 const char *variable_data = (const char *) (cmd + 1);
2987 return cmd->cmd_base.cmd_size;
2995 struct marshal_cmd_DeleteTransformFeedbacks *cmd;
3001 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteTransformFeedbacks, cmd_size);
3002 cmd->n = n;
3003 char *variable_data = (char *) (cmd + 1);
3034 _mesa_unmarshal_PauseTransformFeedback(struct gl_context *ctx, const struct marshal_cmd_PauseTransformFeedback *cmd, const uint64_t *last)
3038 assert (cmd_size == cmd->cmd_base.cmd_size);
3046 struct marshal_cmd_PauseTransformFeedback *cmd;
3047 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PauseTransformFeedback, cmd_size);
3048 (void) cmd;
3058 _mesa_unmarshal_ResumeTransformFeedback(struct gl_context *ctx, const struct marshal_cmd_ResumeTransformFeedback *cmd, const uint64_t *last)
3062 assert (cmd_size == cmd->cmd_base.cmd_size);
3070 struct marshal_cmd_ResumeTransformFeedback *cmd;
3071 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ResumeTransformFeedback, cmd_size);
3072 (void) cmd;
3084 _mesa_unmarshal_DrawTransformFeedback(struct gl_context *ctx, const struct marshal_cmd_DrawTransformFeedback *cmd, const uint64_t *last)
3086 GLenum mode = cmd->mode;
3087 GLuint id = cmd->id;
3090 assert (cmd_size == cmd->cmd_base.cmd_size);
3098 struct marshal_cmd_DrawTransformFeedback *cmd;
3099 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTransformFeedback, cmd_size);
3100 cmd->mode = mode;
3101 cmd->id = id;
3121 _mesa_unmarshal_VDPAUFiniNV(struct gl_context *ctx, const struct marshal_cmd_VDPAUFiniNV *cmd, const uint64_t *last)
3125 assert (cmd_size == cmd->cmd_base.cmd_size);
3133 struct marshal_cmd_VDPAUFiniNV *cmd;
3134 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VDPAUFiniNV, cmd_size);
3135 (void) cmd;
3176 _mesa_unmarshal_VDPAUUnregisterSurfaceNV(struct gl_context *ctx, const struct marshal_cmd_VDPAUUnregisterSurfaceNV *cmd, const uint64_t *last)
3178 GLintptr surface = cmd->surface;
3181 assert (cmd_size == cmd->cmd_base.cmd_size);
3189 struct marshal_cmd_VDPAUUnregisterSurfaceNV *cmd;
3190 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VDPAUUnregisterSurfaceNV, cmd_size);
3191 cmd->surface = surface;
3213 _mesa_unmarshal_VDPAUSurfaceAccessNV(struct gl_context *ctx, const struct marshal_cmd_VDPAUSurfaceAccessNV *cmd, const uint64_t *last)
3215 GLintptr surface = cmd->surface;
3216 GLenum access = cmd->access;
3219 assert (cmd_size == cmd->cmd_base.cmd_size);
3227 struct marshal_cmd_VDPAUSurfaceAccessNV *cmd;
3228 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VDPAUSurfaceAccessNV, cmd_size);
3229 cmd->surface = surface;
3230 cmd->access = access;
3242 _mesa_unmarshal_VDPAUMapSurfacesNV(struct gl_context *ctx, const struct marshal_cmd_VDPAUMapSurfacesNV *cmd, const uint64_t *last)
3244 GLsizei numSurfaces = cmd->numSurfaces;
3246 const char *variable_data = (const char *) (cmd + 1);
3249 return cmd->cmd_base.cmd_size;
3257 struct marshal_cmd_VDPAUMapSurfacesNV *cmd;
3263 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VDPAUMapSurfacesNV, cmd_size);
3264 cmd->numSurfaces = numSurfaces;
3265 char *variable_data = (char *) (cmd + 1);
3278 _mesa_unmarshal_VDPAUUnmapSurfacesNV(struct gl_context *ctx, const struct marshal_cmd_VDPAUUnmapSurfacesNV *cmd, const uint64_t *last)
3280 GLsizei numSurfaces = cmd->numSurfaces;
3282 const char *variable_data = (const char *) (cmd + 1);
3285 return cmd->cmd_base.cmd_size;
3293 struct marshal_cmd_VDPAUUnmapSurfacesNV *cmd;
3299 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VDPAUUnmapSurfacesNV, cmd_size);
3300 cmd->numSurfaces = numSurfaces;
3301 char *variable_data = (char *) (cmd + 1);
3334 _mesa_unmarshal_DeleteMemoryObjectsEXT(struct gl_context *ctx, const struct marshal_cmd_DeleteMemoryObjectsEXT *cmd, const uint64_t *last)
3336 GLsizei n = cmd->n;
3338 const char *variable_data = (const char *) (cmd + 1);
3341 return cmd->cmd_base.cmd_size;
3349 struct marshal_cmd_DeleteMemoryObjectsEXT *cmd;
3355 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteMemoryObjectsEXT, cmd_size);
3356 cmd->n = n;
3357 char *variable_data = (char *) (cmd + 1);
3391 _mesa_unmarshal_MemoryObjectParameterivEXT(struct gl_context *ctx, const struct marshal_cmd_MemoryObjectParameterivEXT *cmd, const uint64_t *last)
3393 GLuint memoryObject = cmd->memoryObject;
3394 GLenum pname = cmd->pname;
3396 const char *variable_data = (const char *) (cmd + 1);
3399 return cmd->cmd_base.cmd_size;
3407 struct marshal_cmd_MemoryObjectParameterivEXT *cmd;
3413 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MemoryObjectParameterivEXT, cmd_size);
3414 cmd->memoryObject = memoryObject;
3415 cmd->pname = pname;
3416 char *variable_data = (char *) (cmd + 1);
3444 _mesa_unmarshal_TexStorageMem2DEXT(struct gl_context *ctx, const struct marshal_cmd_TexStorageMem2DEXT *cmd, const uint64_t *last)
3446 GLenum target = cmd->target;
3447 GLsizei levels = cmd->levels;
3448 GLenum internalFormat = cmd->internalFormat;
3449 GLsizei width = cmd->width;
3450 GLsizei height = cmd->height;
3451 GLuint memory = cmd->memory;
3452 GLuint64 offset = cmd->offset;
3455 assert (cmd_size == cmd->cmd_base.cmd_size);
3463 struct marshal_cmd_TexStorageMem2DEXT *cmd;
3464 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorageMem2DEXT, cmd_size);
3465 cmd->target = target;
3466 cmd->levels = levels;
3467 cmd->internalFormat = internalFormat;
3468 cmd->width = width;
3469 cmd->height = height;
3470 cmd->memory = memory;
3471 cmd->offset = offset;
3489 _mesa_unmarshal_TexStorageMem2DMultisampleEXT(struct gl_context *ctx, const struct marshal_cmd_TexStorageMem2DMultisampleEXT *cmd, const uint64_t *last)
3491 GLenum target = cmd->target;
3492 GLsizei samples = cmd->samples;
3493 GLenum internalFormat = cmd->internalFormat;
3494 GLsizei width = cmd->width;
3495 GLsizei height = cmd->height;
3496 GLboolean fixedSampleLocations = cmd->fixedSampleLocations;
3497 GLuint memory = cmd->memory;
3498 GLuint64 offset = cmd->offset;
3501 assert (cmd_size == cmd->cmd_base.cmd_size);
3509 struct marshal_cmd_TexStorageMem2DMultisampleEXT *cmd;
3510 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorageMem2DMultisampleEXT, cmd_size);
3511 cmd->target = target;
3512 cmd->samples = samples;
3513 cmd->internalFormat = internalFormat;
3514 cmd->width = width;
3515 cmd->height = height;
3516 cmd->fixedSampleLocations = fixedSampleLocations;
3517 cmd->memory = memory;
3518 cmd->offset = offset;
3536 _mesa_unmarshal_TexStorageMem3DEXT(struct gl_context *ctx, const struct marshal_cmd_TexStorageMem3DEXT *cmd, const uint64_t *last)
3538 GLenum target = cmd->target;
3539 GLsizei levels = cmd->levels;
3540 GLenum internalFormat = cmd->internalFormat;
3541 GLsizei width = cmd->width;
3542 GLsizei height = cmd->height;
3543 GLsizei depth = cmd->depth;
3544 GLuint memory = cmd->memory;
3545 GLuint64 offset = cmd->offset;
3548 assert (cmd_size == cmd->cmd_base.cmd_size);
3556 struct marshal_cmd_TexStorageMem3DEXT *cmd;
3557 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorageMem3DEXT, cmd_size);
3558 cmd->target = target;
3559 cmd->levels = levels;
3560 cmd->internalFormat = internalFormat;
3561 cmd->width = width;
3562 cmd->height = height;
3563 cmd->depth = depth;
3564 cmd->memory = memory;
3565 cmd->offset = offset;
3584 _mesa_unmarshal_TexStorageMem3DMultisampleEXT(struct gl_context *ctx, const struct marshal_cmd_TexStorageMem3DMultisampleEXT *cmd, const uint64_t *last)
3586 GLenum target = cmd->target;
3587 GLsizei samples = cmd->samples;
3588 GLenum internalFormat = cmd->internalFormat;
3589 GLsizei width = cmd->width;
3590 GLsizei height = cmd->height;
3591 GLsizei depth = cmd->depth;
3592 GLboolean fixedSampleLocations = cmd->fixedSampleLocations;
3593 GLuint memory = cmd->memory;
3594 GLuint64 offset = cmd->offset;
3597 assert (cmd_size == cmd->cmd_base.cmd_size);
3605 struct marshal_cmd_TexStorageMem3DMultisampleEXT *cmd;
3606 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorageMem3DMultisampleEXT, cmd_size);
3607 cmd->target = target;
3608 cmd->samples = samples;
3609 cmd->internalFormat = internalFormat;
3610 cmd->width = width;
3611 cmd->height = height;
3612 cmd->depth = depth;
3613 cmd->fixedSampleLocations = fixedSampleLocations;
3614 cmd->memory = memory;
3615 cmd->offset = offset;
3629 _mesa_unmarshal_BufferStorageMemEXT(struct gl_context *ctx, const struct marshal_cmd_BufferStorageMemEXT *cmd, const uint64_t *last)
3631 GLenum target = cmd->target;
3632 GLsizeiptr size = cmd->size;
3633 GLuint memory = cmd->memory;
3634 GLuint64 offset = cmd->offset;
3637 assert (cmd_size == cmd->cmd_base.cmd_size);
3645 struct marshal_cmd_BufferStorageMemEXT *cmd;
3646 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BufferStorageMemEXT, cmd_size);
3647 cmd->target = target;
3648 cmd->size = size;
3649 cmd->memory = memory;
3650 cmd->offset = offset;
3667 _mesa_unmarshal_TextureStorageMem2DEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorageMem2DEXT *cmd, const uint64_t *last)
3669 GLenum texture = cmd->texture;
3670 GLsizei levels = cmd->levels;
3671 GLenum internalFormat = cmd->internalFormat;
3672 GLsizei width = cmd->width;
3673 GLsizei height = cmd->height;
3674 GLuint memory = cmd->memory;
3675 GLuint64 offset = cmd->offset;
3678 assert (cmd_size == cmd->cmd_base.cmd_size);
3686 struct marshal_cmd_TextureStorageMem2DEXT *cmd;
3687 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorageMem2DEXT, cmd_size);
3688 cmd->texture = texture;
3689 cmd->levels = levels;
3690 cmd->internalFormat = internalFormat;
3691 cmd->width = width;
3692 cmd->height = height;
3693 cmd->memory = memory;
3694 cmd->offset = offset;
3712 _mesa_unmarshal_TextureStorageMem2DMultisampleEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorageMem2DMultisampleEXT *cmd, const uint64_t *last)
3714 GLuint texture = cmd->texture;
3715 GLsizei samples = cmd->samples;
3716 GLenum internalFormat = cmd->internalFormat;
3717 GLsizei width = cmd->width;
3718 GLsizei height = cmd->height;
3719 GLboolean fixedSampleLocations = cmd->fixedSampleLocations;
3720 GLuint memory = cmd->memory;
3721 GLuint64 offset = cmd->offset;
3724 assert (cmd_size == cmd->cmd_base.cmd_size);
3732 struct marshal_cmd_TextureStorageMem2DMultisampleEXT *cmd;
3733 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorageMem2DMultisampleEXT, cmd_size);
3734 cmd->texture = texture;
3735 cmd->samples = samples;
3736 cmd->internalFormat = internalFormat;
3737 cmd->width = width;
3738 cmd->height = height;
3739 cmd->fixedSampleLocations = fixedSampleLocations;
3740 cmd->memory = memory;
3741 cmd->offset = offset;
3759 _mesa_unmarshal_TextureStorageMem3DEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorageMem3DEXT *cmd, const uint64_t *last)
3761 GLuint texture = cmd->texture;
3762 GLsizei levels = cmd->levels;
3763 GLenum internalFormat = cmd->internalFormat;
3764 GLsizei width = cmd->width;
3765 GLsizei height = cmd->height;
3766 GLsizei depth = cmd->depth;
3767 GLuint memory = cmd->memory;
3768 GLuint64 offset = cmd->offset;
3771 assert (cmd_size == cmd->cmd_base.cmd_size);
3779 struct marshal_cmd_TextureStorageMem3DEXT *cmd;
3780 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorageMem3DEXT, cmd_size);
3781 cmd->texture = texture;
3782 cmd->levels = levels;
3783 cmd->internalFormat = internalFormat;
3784 cmd->width = width;
3785 cmd->height = height;
3786 cmd->depth = depth;
3787 cmd->memory = memory;
3788 cmd->offset = offset;
3807 _mesa_unmarshal_TextureStorageMem3DMultisampleEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorageMem3DMultisampleEXT *cmd, const uint64_t *last)
3809 GLuint texture = cmd->texture;
3810 GLsizei samples = cmd->samples;
3811 GLenum internalFormat = cmd->internalFormat;
3812 GLsizei width = cmd->width;
3813 GLsizei height = cmd->height;
3814 GLsizei depth = cmd->depth;
3815 GLboolean fixedSampleLocations = cmd->fixedSampleLocations;
3816 GLuint memory = cmd->memory;
3817 GLuint64 offset = cmd->offset;
3820 assert (cmd_size == cmd->cmd_base.cmd_size);
3828 struct marshal_cmd_TextureStorageMem3DMultisampleEXT *cmd;
3829 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorageMem3DMultisampleEXT, cmd_size);
3830 cmd->texture = texture;
3831 cmd->samples = samples;
3832 cmd->internalFormat = internalFormat;
3833 cmd->width = width;
3834 cmd->height = height;
3835 cmd->depth = depth;
3836 cmd->fixedSampleLocations = fixedSampleLocations;
3837 cmd->memory = memory;
3838 cmd->offset = offset;
3852 _mesa_unmarshal_NamedBufferStorageMemEXT(struct gl_context *ctx, const struct marshal_cmd_NamedBufferStorageMemEXT *cmd, const uint64_t *last)
3854 GLuint buffer = cmd->buffer;
3855 GLsizeiptr size = cmd->size;
3856 GLuint memory = cmd->memory;
3857 GLuint64 offset = cmd->offset;
3860 assert (cmd_size == cmd->cmd_base.cmd_size);
3868 struct marshal_cmd_NamedBufferStorageMemEXT *cmd;
3869 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_NamedBufferStorageMemEXT, cmd_size);
3870 cmd->buffer = buffer;
3871 cmd->size = size;
3872 cmd->memory = memory;
3873 cmd->offset = offset;
3889 _mesa_unmarshal_TexStorageMem1DEXT(struct gl_context *ctx, const struct marshal_cmd_TexStorageMem1DEXT *cmd, const uint64_t *last)
3891 GLenum target = cmd->target;
3892 GLsizei levels = cmd->levels;
3893 GLenum internalFormat = cmd->internalFormat;
3894 GLsizei width = cmd->width;
3895 GLuint memory = cmd->memory;
3896 GLuint64 offset = cmd->offset;
3899 assert (cmd_size == cmd->cmd_base.cmd_size);
3907 struct marshal_cmd_TexStorageMem1DEXT *cmd;
3908 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexStorageMem1DEXT, cmd_size);
3909 cmd->target = target;
3910 cmd->levels = levels;
3911 cmd->internalFormat = internalFormat;
3912 cmd->width = width;
3913 cmd->memory = memory;
3914 cmd->offset = offset;
3930 _mesa_unmarshal_TextureStorageMem1DEXT(struct gl_context *ctx, const struct marshal_cmd_TextureStorageMem1DEXT *cmd, const uint64_t *last)
3932 GLuint texture = cmd->texture;
3933 GLsizei levels = cmd->levels;
3934 GLenum internalFormat = cmd->internalFormat;
3935 GLsizei width = cmd->width;
3936 GLuint memory = cmd->memory;
3937 GLuint64 offset = cmd->offset;
3940 assert (cmd_size == cmd->cmd_base.cmd_size);
3948 struct marshal_cmd_TextureStorageMem1DEXT *cmd;
3949 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TextureStorageMem1DEXT, cmd_size);
3950 cmd->texture = texture;
3951 cmd->levels = levels;
3952 cmd->internalFormat = internalFormat;
3953 cmd->width = width;
3954 cmd->memory = memory;
3955 cmd->offset = offset;
3977 _mesa_unmarshal_DeleteSemaphoresEXT(struct gl_context *ctx, const struct marshal_cmd_DeleteSemaphoresEXT *cmd, const uint64_t *last)
3979 GLsizei n = cmd->n;
3981 const char *variable_data = (const char *) (cmd + 1);
3984 return cmd->cmd_base.cmd_size;
3992 struct marshal_cmd_DeleteSemaphoresEXT *cmd;
3998 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DeleteSemaphoresEXT, cmd_size);
3999 cmd->n = n;
4000 char *variable_data = (char *) (cmd + 1);
4024 _mesa_unmarshal_SemaphoreParameterui64vEXT(struct gl_context *ctx, const struct marshal_cmd_SemaphoreParameterui64vEXT *cmd, const uint64_t *last)
4026 GLuint semaphore = cmd->semaphore;
4027 GLenum pname = cmd->pname;
4029 const char *variable_data = (const char *) (cmd + 1);
4032 return cmd->cmd_base.cmd_size;
4040 struct marshal_cmd_SemaphoreParameterui64vEXT *cmd;
4046 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SemaphoreParameterui64vEXT, cmd_size);
4047 cmd->semaphore = semaphore;
4048 cmd->pname = pname;
4049 char *variable_data = (char *) (cmd + 1);
4076 _mesa_unmarshal_WaitSemaphoreEXT(struct gl_context *ctx, const struct marshal_cmd_WaitSemaphoreEXT *cmd, const uint64_t *last)
4078 GLuint semaphore = cmd->semaphore;
4079 GLuint numBufferBarriers = cmd->numBufferBarriers;
4080 GLuint numTextureBarriers = cmd->numTextureBarriers;
4084 const char *variable_data = (const char *) (cmd + 1);
4091 return cmd->cmd_base.cmd_size;
4101 struct marshal_cmd_WaitSemaphoreEXT *cmd;
4107 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_WaitSemaphoreEXT, cmd_size);
4108 cmd->semaphore = semaphore;
4109 cmd->numBufferBarriers = numBufferBarriers;
4110 cmd->numTextureBarriers = numTextureBarriers;
4111 char *variable_data = (char *) (cmd + 1);
4132 _mesa_unmarshal_SignalSemaphoreEXT(struct gl_context *ctx, const struct marshal_cmd_SignalSemaphoreEXT *cmd, const uint64_t *last)
4134 GLuint semaphore = cmd->semaphore;
4135 GLuint numBufferBarriers = cmd->numBufferBarriers;
4136 GLuint numTextureBarriers = cmd->numTextureBarriers;
4140 const char *variable_data = (const char *) (cmd + 1);
4147 return cmd->cmd_base.cmd_size;
4157 struct marshal_cmd_SignalSemaphoreEXT *cmd;
4163 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SignalSemaphoreEXT, cmd_size);
4164 cmd->semaphore = semaphore;
4165 cmd->numBufferBarriers = numBufferBarriers;
4166 cmd->numTextureBarriers = numTextureBarriers;
4167 char *variable_data = (char *) (cmd + 1);
4186 _mesa_unmarshal_ImportMemoryFdEXT(struct gl_context *ctx, const struct marshal_cmd_ImportMemoryFdEXT *cmd, const uint64_t *last)
4188 GLuint memory = cmd->memory;
4189 GLuint64 size = cmd->size;
4190 GLenum handleType = cmd->handleType;
4191 GLint fd = cmd->fd;
4194 assert (cmd_size == cmd->cmd_base.cmd_size);
4202 struct marshal_cmd_ImportMemoryFdEXT *cmd;
4203 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ImportMemoryFdEXT, cmd_size);
4204 cmd->memory = memory;
4205 cmd->size = size;
4206 cmd->handleType = handleType;
4207 cmd->fd = fd;
4220 _mesa_unmarshal_ImportSemaphoreFdEXT(struct gl_context *ctx, const struct marshal_cmd_ImportSemaphoreFdEXT *cmd, const uint64_t *last)
4222 GLuint semaphore = cmd->semaphore;
4223 GLenum handleType = cmd->handleType;
4224 GLint fd = cmd->fd;
4227 assert (cmd_size == cmd->cmd_base.cmd_size);
4235 struct marshal_cmd_ImportSemaphoreFdEXT *cmd;
4236 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ImportSemaphoreFdEXT, cmd_size);
4237 cmd->semaphore = semaphore;
4238 cmd->handleType = handleType;
4239 cmd->fd = fd;
4254 _mesa_unmarshal_ViewportSwizzleNV(struct gl_context *ctx, const struct marshal_cmd_ViewportSwizzleNV *cmd, const uint64_t *last)
4256 GLuint index = cmd->index;
4257 GLenum swizzlex = cmd->swizzlex;
4258 GLenum swizzley = cmd->swizzley;
4259 GLenum swizzlez = cmd->swizzlez;
4260 GLenum swizzlew = cmd->swizzlew;
4263 assert (cmd_size == cmd->cmd_base.cmd_size);
4271 struct marshal_cmd_ViewportSwizzleNV *cmd;
4272 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ViewportSwizzleNV, cmd_size);
4273 cmd->index = index;
4274 cmd->swizzlex = swizzlex;
4275 cmd->swizzley = swizzley;
4276 cmd->swizzlez = swizzlez;
4277 cmd->swizzlew = swizzlew;
4289 _mesa_unmarshal_Vertex2hNV(struct gl_context *ctx, const struct marshal_cmd_Vertex2hNV *cmd, const uint64_t *last)
4291 GLhalfNV x = cmd->x;
4292 GLhalfNV y = cmd->y;
4295 assert (cmd_size == cmd->cmd_base.cmd_size);
4303 struct marshal_cmd_Vertex2hNV *cmd;
4304 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2hNV, cmd_size);
4305 cmd->x = x;
4306 cmd->y = y;
4317 _mesa_unmarshal_Vertex2hvNV(struct gl_context *ctx, const struct marshal_cmd_Vertex2hvNV *cmd, const uint64_t *last)
4319 const GLhalfNV * v = cmd->v;
4322 assert (cmd_size == cmd->cmd_base.cmd_size);
4330 struct marshal_cmd_Vertex2hvNV *cmd;
4331 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex2hvNV, cmd_size);
4332 memcpy(cmd->v, v, 2 * sizeof(GLhalfNV));
4345 _mesa_unmarshal_Vertex3hNV(struct gl_context *ctx, const struct marshal_cmd_Vertex3hNV *cmd, const uint64_t *last)
4347 GLhalfNV x = cmd->x;
4348 GLhalfNV y = cmd->y;
4349 GLhalfNV z = cmd->z;
4352 assert (cmd_size == cmd->cmd_base.cmd_size);
4360 struct marshal_cmd_Vertex3hNV *cmd;
4361 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3hNV, cmd_size);
4362 cmd->x = x;
4363 cmd->y = y;
4364 cmd->z = z;
4375 _mesa_unmarshal_Vertex3hvNV(struct gl_context *ctx, const struct marshal_cmd_Vertex3hvNV *cmd, const uint64_t *last)
4377 const GLhalfNV * v = cmd->v;
4380 assert (cmd_size == cmd->cmd_base.cmd_size);
4388 struct marshal_cmd_Vertex3hvNV *cmd;
4389 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex3hvNV, cmd_size);
4390 memcpy(cmd->v, v, 3 * sizeof(GLhalfNV));
4404 _mesa_unmarshal_Vertex4hNV(struct gl_context *ctx, const struct marshal_cmd_Vertex4hNV *cmd, const uint64_t *last)
4406 GLhalfNV x = cmd->x;
4407 GLhalfNV y = cmd->y;
4408 GLhalfNV z = cmd->z;
4409 GLhalfNV w = cmd->w;
4412 assert (cmd_size == cmd->cmd_base.cmd_size);
4420 struct marshal_cmd_Vertex4hNV *cmd;
4421 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4hNV, cmd_size);
4422 cmd->x = x;
4423 cmd->y = y;
4424 cmd->z = z;
4425 cmd->w = w;
4436 _mesa_unmarshal_Vertex4hvNV(struct gl_context *ctx, const struct marshal_cmd_Vertex4hvNV *cmd, const uint64_t *last)
4438 const GLhalfNV * v = cmd->v;
4441 assert (cmd_size == cmd->cmd_base.cmd_size);
4449 struct marshal_cmd_Vertex4hvNV *cmd;
4450 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Vertex4hvNV, cmd_size);
4451 memcpy(cmd->v, v, 4 * sizeof(GLhalfNV));
4464 _mesa_unmarshal_Normal3hNV(struct gl_context *ctx, const struct marshal_cmd_Normal3hNV *cmd, const uint64_t *last)
4466 GLhalfNV nx = cmd->nx;
4467 GLhalfNV ny = cmd->ny;
4468 GLhalfNV nz = cmd->nz;
4471 assert (cmd_size == cmd->cmd_base.cmd_size);
4479 struct marshal_cmd_Normal3hNV *cmd;
4480 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3hNV, cmd_size);
4481 cmd->nx = nx;
4482 cmd->ny = ny;
4483 cmd->nz = nz;
4494 _mesa_unmarshal_Normal3hvNV(struct gl_context *ctx, const struct marshal_cmd_Normal3hvNV *cmd, const uint64_t *last)
4496 const GLhalfNV * v = cmd->v;
4499 assert (cmd_size == cmd->cmd_base.cmd_size);
4507 struct marshal_cmd_Normal3hvNV *cmd;
4508 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3hvNV, cmd_size);
4509 memcpy(cmd->v, v, 3 * sizeof(GLhalfNV));
4522 _mesa_unmarshal_Color3hNV(struct gl_context *ctx, const struct marshal_cmd_Color3hNV *cmd, const uint64_t *last)
4524 GLhalfNV red = cmd->red;
4525 GLhalfNV green = cmd->green;
4526 GLhalfNV blue = cmd->blue;
4529 assert (cmd_size == cmd->cmd_base.cmd_size);
4537 struct marshal_cmd_Color3hNV *cmd;
4538 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3hNV, cmd_size);
4539 cmd->red = red;
4540 cmd->green = green;
4541 cmd->blue = blue;
4552 _mesa_unmarshal_Color3hvNV(struct gl_context *ctx, const struct marshal_cmd_Color3hvNV *cmd, const uint64_t *last)
4554 const GLhalfNV * v = cmd->v;
4557 assert (cmd_size == cmd->cmd_base.cmd_size);
4565 struct marshal_cmd_Color3hvNV *cmd;
4566 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color3hvNV, cmd_size);
4567 memcpy(cmd->v, v, 3 * sizeof(GLhalfNV));
4581 _mesa_unmarshal_Color4hNV(struct gl_context *ctx, const struct marshal_cmd_Color4hNV *cmd, const uint64_t *last)
4583 GLhalfNV red = cmd->red;
4584 GLhalfNV green = cmd->green;
4585 GLhalfNV blue = cmd->blue;
4586 GLhalfNV alpha = cmd->alpha;
4589 assert (cmd_size == cmd->cmd_base.cmd_size);
4597 struct marshal_cmd_Color4hNV *cmd;
4598 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4hNV, cmd_size);
4599 cmd->red = red;
4600 cmd->green = green;
4601 cmd->blue = blue;
4602 cmd->alpha = alpha;
4613 _mesa_unmarshal_Color4hvNV(struct gl_context *ctx, const struct marshal_cmd_Color4hvNV *cmd, const uint64_t *last)
4615 const GLhalfNV * v = cmd->v;
4618 assert (cmd_size == cmd->cmd_base.cmd_size);
4626 struct marshal_cmd_Color4hvNV *cmd;
4627 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4hvNV, cmd_size);
4628 memcpy(cmd->v, v, 4 * sizeof(GLhalfNV));
4639 _mesa_unmarshal_TexCoord1hNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord1hNV *cmd, const uint64_t *last)
4641 GLhalfNV s = cmd->s;
4644 assert (cmd_size == cmd->cmd_base.cmd_size);
4652 struct marshal_cmd_TexCoord1hNV *cmd;
4653 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1hNV, cmd_size);
4654 cmd->s = s;
4665 _mesa_unmarshal_TexCoord1hvNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord1hvNV *cmd, const uint64_t *last)
4667 const GLhalfNV * v = cmd->v;
4670 assert (cmd_size == cmd->cmd_base.cmd_size);
4678 struct marshal_cmd_TexCoord1hvNV *cmd;
4679 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord1hvNV, cmd_size);
4680 memcpy(cmd->v, v, 1 * sizeof(GLhalfNV));
4692 _mesa_unmarshal_TexCoord2hNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord2hNV *cmd, const uint64_t *last)
4694 GLhalfNV s = cmd->s;
4695 GLhalfNV t = cmd->t;
4698 assert (cmd_size == cmd->cmd_base.cmd_size);
4706 struct marshal_cmd_TexCoord2hNV *cmd;
4707 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2hNV, cmd_size);
4708 cmd->s = s;
4709 cmd->t = t;
4720 _mesa_unmarshal_TexCoord2hvNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord2hvNV *cmd, const uint64_t *last)
4722 const GLhalfNV * v = cmd->v;
4725 assert (cmd_size == cmd->cmd_base.cmd_size);
4733 struct marshal_cmd_TexCoord2hvNV *cmd;
4734 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord2hvNV, cmd_size);
4735 memcpy(cmd->v, v, 2 * sizeof(GLhalfNV));
4748 _mesa_unmarshal_TexCoord3hNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord3hNV *cmd, const uint64_t *last)
4750 GLhalfNV s = cmd->s;
4751 GLhalfNV t = cmd->t;
4752 GLhalfNV r = cmd->r;
4755 assert (cmd_size == cmd->cmd_base.cmd_size);
4763 struct marshal_cmd_TexCoord3hNV *cmd;
4764 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3hNV, cmd_size);
4765 cmd->s = s;
4766 cmd->t = t;
4767 cmd->r = r;
4778 _mesa_unmarshal_TexCoord3hvNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord3hvNV *cmd, const uint64_t *last)
4780 const GLhalfNV * v = cmd->v;
4783 assert (cmd_size == cmd->cmd_base.cmd_size);
4791 struct marshal_cmd_TexCoord3hvNV *cmd;
4792 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord3hvNV, cmd_size);
4793 memcpy(cmd->v, v, 3 * sizeof(GLhalfNV));
4807 _mesa_unmarshal_TexCoord4hNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord4hNV *cmd, const uint64_t *last)
4809 GLhalfNV s = cmd->s;
4810 GLhalfNV t = cmd->t;
4811 GLhalfNV r = cmd->r;
4812 GLhalfNV q = cmd->q;
4815 assert (cmd_size == cmd->cmd_base.cmd_size);
4823 struct marshal_cmd_TexCoord4hNV *cmd;
4824 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4hNV, cmd_size);
4825 cmd->s = s;
4826 cmd->t = t;
4827 cmd->r = r;
4828 cmd->q = q;
4839 _mesa_unmarshal_TexCoord4hvNV(struct gl_context *ctx, const struct marshal_cmd_TexCoord4hvNV *cmd, const uint64_t *last)
4841 const GLhalfNV * v = cmd->v;
4844 assert (cmd_size == cmd->cmd_base.cmd_size);
4852 struct marshal_cmd_TexCoord4hvNV *cmd;
4853 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexCoord4hvNV, cmd_size);
4854 memcpy(cmd->v, v, 4 * sizeof(GLhalfNV));
4866 _mesa_unmarshal_MultiTexCoord1hNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1hNV *cmd, const uint64_t *last)
4868 GLenum target = cmd->target;
4869 GLhalfNV s = cmd->s;
4872 assert (cmd_size == cmd->cmd_base.cmd_size);
4880 struct marshal_cmd_MultiTexCoord1hNV *cmd;
4881 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1hNV, cmd_size);
4882 cmd->target = target;
4883 cmd->s = s;
4895 _mesa_unmarshal_MultiTexCoord1hvNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord1hvNV *cmd, const uint64_t *last)
4897 GLenum target = cmd->target;
4898 const GLhalfNV * v = cmd->v;
4901 assert (cmd_size == cmd->cmd_base.cmd_size);
4909 struct marshal_cmd_MultiTexCoord1hvNV *cmd;
4910 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord1hvNV, cmd_size);
4911 cmd->target = target;
4912 memcpy(cmd->v, v, 1 * sizeof(GLhalfNV));
4925 _mesa_unmarshal_MultiTexCoord2hNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2hNV *cmd, const uint64_t *last)
4927 GLenum target = cmd->target;
4928 GLhalfNV s = cmd->s;
4929 GLhalfNV t = cmd->t;
4932 assert (cmd_size == cmd->cmd_base.cmd_size);
4940 struct marshal_cmd_MultiTexCoord2hNV *cmd;
4941 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2hNV, cmd_size);
4942 cmd->target = target;
4943 cmd->s = s;
4944 cmd->t = t;
4956 _mesa_unmarshal_MultiTexCoord2hvNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord2hvNV *cmd, const uint64_t *last)
4958 GLenum target = cmd->target;
4959 const GLhalfNV * v = cmd->v;
4962 assert (cmd_size == cmd->cmd_base.cmd_size);
4970 struct marshal_cmd_MultiTexCoord2hvNV *cmd;
4971 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord2hvNV, cmd_size);
4972 cmd->target = target;
4973 memcpy(cmd->v, v, 2 * sizeof(GLhalfNV));
4987 _mesa_unmarshal_MultiTexCoord3hNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3hNV *cmd, const uint64_t *last)
4989 GLenum target = cmd->target;
4990 GLhalfNV s = cmd->s;
4991 GLhalfNV t = cmd->t;
4992 GLhalfNV r = cmd->r;
4995 assert (cmd_size == cmd->cmd_base.cmd_size);
5003 struct marshal_cmd_MultiTexCoord3hNV *cmd;
5004 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3hNV, cmd_size);
5005 cmd->target = target;
5006 cmd->s = s;
5007 cmd->t = t;
5008 cmd->r = r;
5020 _mesa_unmarshal_MultiTexCoord3hvNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord3hvNV *cmd, const uint64_t *last)
5022 GLenum target = cmd->target;
5023 const GLhalfNV * v = cmd->v;
5026 assert (cmd_size == cmd->cmd_base.cmd_size);
5034 struct marshal_cmd_MultiTexCoord3hvNV *cmd;
5035 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord3hvNV, cmd_size);
5036 cmd->target = target;
5037 memcpy(cmd->v, v, 3 * sizeof(GLhalfNV));
5052 _mesa_unmarshal_MultiTexCoord4hNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4hNV *cmd, const uint64_t *last)
5054 GLenum target = cmd->target;
5055 GLhalfNV s = cmd->s;
5056 GLhalfNV t = cmd->t;
5057 GLhalfNV r = cmd->r;
5058 GLhalfNV q = cmd->q;
5061 assert (cmd_size == cmd->cmd_base.cmd_size);
5069 struct marshal_cmd_MultiTexCoord4hNV *cmd;
5070 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4hNV, cmd_size);
5071 cmd->target = target;
5072 cmd->s = s;
5073 cmd->t = t;
5074 cmd->r = r;
5075 cmd->q = q;
5087 _mesa_unmarshal_MultiTexCoord4hvNV(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4hvNV *cmd, const uint64_t *last)
5089 GLenum target = cmd->target;
5090 const GLhalfNV * v = cmd->v;
5093 assert (cmd_size == cmd->cmd_base.cmd_size);
5101 struct marshal_cmd_MultiTexCoord4hvNV *cmd;
5102 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4hvNV, cmd_size);
5103 cmd->target = target;
5104 memcpy(cmd->v, v, 4 * sizeof(GLhalfNV));
5116 _mesa_unmarshal_VertexAttrib1hNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1hNV *cmd, const uint64_t *last)
5118 GLuint index = cmd->index;
5119 GLhalfNV x = cmd->x;
5122 assert (cmd_size == cmd->cmd_base.cmd_size);
5130 struct marshal_cmd_VertexAttrib1hNV *cmd;
5131 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1hNV, cmd_size);
5132 cmd->index = index;
5133 cmd->x = x;
5145 _mesa_unmarshal_VertexAttrib1hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib1hvNV *cmd, const uint64_t *last)
5147 GLuint index = cmd->index;
5148 const GLhalfNV * v = cmd->v;
5151 assert (cmd_size == cmd->cmd_base.cmd_size);
5159 struct marshal_cmd_VertexAttrib1hvNV *cmd;
5160 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib1hvNV, cmd_size);
5161 cmd->index = index;
5162 memcpy(cmd->v, v, 1 * sizeof(GLhalfNV));
5175 _mesa_unmarshal_VertexAttrib2hNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2hNV *cmd, const uint64_t *last)
5177 GLuint index = cmd->index;
5178 GLhalfNV x = cmd->x;
5179 GLhalfNV y = cmd->y;
5182 assert (cmd_size == cmd->cmd_base.cmd_size);
5190 struct marshal_cmd_VertexAttrib2hNV *cmd;
5191 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2hNV, cmd_size);
5192 cmd->index = index;
5193 cmd->x = x;
5194 cmd->y = y;
5206 _mesa_unmarshal_VertexAttrib2hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib2hvNV *cmd, const uint64_t *last)
5208 GLuint index = cmd->index;
5209 const GLhalfNV * v = cmd->v;
5212 assert (cmd_size == cmd->cmd_base.cmd_size);
5220 struct marshal_cmd_VertexAttrib2hvNV *cmd;
5221 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib2hvNV, cmd_size);
5222 cmd->index = index;
5223 memcpy(cmd->v, v, 2 * sizeof(GLhalfNV));
5237 _mesa_unmarshal_VertexAttrib3hNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3hNV *cmd, const uint64_t *last)
5239 GLuint index = cmd->index;
5240 GLhalfNV x = cmd->x;
5241 GLhalfNV y = cmd->y;
5242 GLhalfNV z = cmd->z;
5245 assert (cmd_size == cmd->cmd_base.cmd_size);
5253 struct marshal_cmd_VertexAttrib3hNV *cmd;
5254 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3hNV, cmd_size);
5255 cmd->index = index;
5256 cmd->x = x;
5257 cmd->y = y;
5258 cmd->z = z;
5270 _mesa_unmarshal_VertexAttrib3hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib3hvNV *cmd, const uint64_t *last)
5272 GLuint index = cmd->index;
5273 const GLhalfNV * v = cmd->v;
5276 assert (cmd_size == cmd->cmd_base.cmd_size);
5284 struct marshal_cmd_VertexAttrib3hvNV *cmd;
5285 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib3hvNV, cmd_size);
5286 cmd->index = index;
5287 memcpy(cmd->v, v, 3 * sizeof(GLhalfNV));
5302 _mesa_unmarshal_VertexAttrib4hNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4hNV *cmd, const uint64_t *last)
5304 GLuint index = cmd->index;
5305 GLhalfNV x = cmd->x;
5306 GLhalfNV y = cmd->y;
5307 GLhalfNV z = cmd->z;
5308 GLhalfNV w = cmd->w;
5311 assert (cmd_size == cmd->cmd_base.cmd_size);
5319 struct marshal_cmd_VertexAttrib4hNV *cmd;
5320 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4hNV, cmd_size);
5321 cmd->index = index;
5322 cmd->x = x;
5323 cmd->y = y;
5324 cmd->z = z;
5325 cmd->w = w;
5337 _mesa_unmarshal_VertexAttrib4hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttrib4hvNV *cmd, const uint64_t *last)
5339 GLuint index = cmd->index;
5340 const GLhalfNV * v = cmd->v;
5343 assert (cmd_size == cmd->cmd_base.cmd_size);
5351 struct marshal_cmd_VertexAttrib4hvNV *cmd;
5352 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttrib4hvNV, cmd_size);
5353 cmd->index = index;
5354 memcpy(cmd->v, v, 4 * sizeof(GLhalfNV));
5367 _mesa_unmarshal_VertexAttribs1hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttribs1hvNV *cmd, const uint64_t *last)
5369 GLuint index = cmd->index;
5370 GLsizei n = cmd->n;
5372 const char *variable_data = (const char *) (cmd + 1);
5375 return cmd->cmd_base.cmd_size;
5383 struct marshal_cmd_VertexAttribs1hvNV *cmd;
5389 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribs1hvNV, cmd_size);
5390 cmd->index = index;
5391 cmd->n = n;
5392 char *variable_data = (char *) (cmd + 1);
5406 _mesa_unmarshal_VertexAttribs2hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttribs2hvNV *cmd, const uint64_t *last)
5408 GLuint index = cmd->index;
5409 GLsizei n = cmd->n;
5411 const char *variable_data = (const char *) (cmd + 1);
5414 return cmd->cmd_base.cmd_size;
5422 struct marshal_cmd_VertexAttribs2hvNV *cmd;
5428 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribs2hvNV, cmd_size);
5429 cmd->index = index;
5430 cmd->n = n;
5431 char *variable_data = (char *) (cmd + 1);
5445 _mesa_unmarshal_VertexAttribs3hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttribs3hvNV *cmd, const uint64_t *last)
5447 GLuint index = cmd->index;
5448 GLsizei n = cmd->n;
5450 const char *variable_data = (const char *) (cmd + 1);
5453 return cmd->cmd_base.cmd_size;
5461 struct marshal_cmd_VertexAttribs3hvNV *cmd;
5467 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribs3hvNV, cmd_size);
5468 cmd->index = index;
5469 cmd->n = n;
5470 char *variable_data = (char *) (cmd + 1);
5484 _mesa_unmarshal_VertexAttribs4hvNV(struct gl_context *ctx, const struct marshal_cmd_VertexAttribs4hvNV *cmd, const uint64_t *last)
5486 GLuint index = cmd->index;
5487 GLsizei n = cmd->n;
5489 const char *variable_data = (const char *) (cmd + 1);
5492 return cmd->cmd_base.cmd_size;
5500 struct marshal_cmd_VertexAttribs4hvNV *cmd;
5506 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_VertexAttribs4hvNV, cmd_size);
5507 cmd->index = index;
5508 cmd->n = n;
5509 char *variable_data = (char *) (cmd + 1);
5521 _mesa_unmarshal_FogCoordhNV(struct gl_context *ctx, const struct marshal_cmd_FogCoordhNV *cmd, const uint64_t *last)
5523 GLhalfNV x = cmd->x;
5526 assert (cmd_size == cmd->cmd_base.cmd_size);
5534 struct marshal_cmd_FogCoordhNV *cmd;
5535 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FogCoordhNV, cmd_size);
5536 cmd->x = x;
5547 _mesa_unmarshal_FogCoordhvNV(struct gl_context *ctx, const struct marshal_cmd_FogCoordhvNV *cmd, const uint64_t *last)
5549 const GLhalfNV * v = cmd->v;
5552 assert (cmd_size == cmd->cmd_base.cmd_size);
5560 struct marshal_cmd_FogCoordhvNV *cmd;
5561 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FogCoordhvNV, cmd_size);
5562 memcpy(cmd->v, v, 1 * sizeof(GLhalfNV));
5575 _mesa_unmarshal_SecondaryColor3hNV(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3hNV *cmd, const uint64_t *last)
5577 GLhalfNV red = cmd->red;
5578 GLhalfNV green = cmd->green;
5579 GLhalfNV blue = cmd->blue;
5582 assert (cmd_size == cmd->cmd_base.cmd_size);
5590 struct marshal_cmd_SecondaryColor3hNV *cmd;
5591 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3hNV, cmd_size);
5592 cmd->red = red;
5593 cmd->green = green;
5594 cmd->blue = blue;
5605 _mesa_unmarshal_SecondaryColor3hvNV(struct gl_context *ctx, const struct marshal_cmd_SecondaryColor3hvNV *cmd, const uint64_t *last)
5607 const GLhalfNV * v = cmd->v;
5610 assert (cmd_size == cmd->cmd_base.cmd_size);
5618 struct marshal_cmd_SecondaryColor3hvNV *cmd;
5619 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SecondaryColor3hvNV, cmd_size);
5620 memcpy(cmd->v, v, 3 * sizeof(GLhalfNV));
5631 _mesa_unmarshal_MemoryBarrierByRegion(struct gl_context *ctx, const struct marshal_cmd_MemoryBarrierByRegion *cmd, const uint64_t *last)
5633 GLbitfield barriers = cmd->barriers;
5636 assert (cmd_size == cmd->cmd_base.cmd_size);
5644 struct marshal_cmd_MemoryBarrierByRegion *cmd;
5645 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MemoryBarrierByRegion, cmd_size);
5646 cmd->barriers = barriers;
5658 _mesa_unmarshal_AlphaFuncx(struct gl_context *ctx, const struct marshal_cmd_AlphaFuncx *cmd, const uint64_t *last)
5660 GLenum func = cmd->func;
5661 GLclampx ref = cmd->ref;
5664 assert (cmd_size == cmd->cmd_base.cmd_size);
5672 struct marshal_cmd_AlphaFuncx *cmd;
5673 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_AlphaFuncx, cmd_size);
5674 cmd->func = func;
5675 cmd->ref = ref;
5689 _mesa_unmarshal_ClearColorx(struct gl_context *ctx, const struct marshal_cmd_ClearColorx *cmd, const uint64_t *last)
5691 GLclampx red = cmd->red;
5692 GLclampx green = cmd->green;
5693 GLclampx blue = cmd->blue;
5694 GLclampx alpha = cmd->alpha;
5697 assert (cmd_size == cmd->cmd_base.cmd_size);
5705 struct marshal_cmd_ClearColorx *cmd;
5706 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearColorx, cmd_size);
5707 cmd->red = red;
5708 cmd->green = green;
5709 cmd->blue = blue;
5710 cmd->alpha = alpha;
5721 _mesa_unmarshal_ClearDepthx(struct gl_context *ctx, const struct marshal_cmd_ClearDepthx *cmd, const uint64_t *last)
5723 GLclampx depth = cmd->depth;
5726 assert (cmd_size == cmd->cmd_base.cmd_size);
5734 struct marshal_cmd_ClearDepthx *cmd;
5735 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClearDepthx, cmd_size);
5736 cmd->depth = depth;
5750 _mesa_unmarshal_Color4x(struct gl_context *ctx, const struct marshal_cmd_Color4x *cmd, const uint64_t *last)
5752 GLfixed red = cmd->red;
5753 GLfixed green = cmd->green;
5754 GLfixed blue = cmd->blue;
5755 GLfixed alpha = cmd->alpha;
5758 assert (cmd_size == cmd->cmd_base.cmd_size);
5766 struct marshal_cmd_Color4x *cmd;
5767 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Color4x, cmd_size);
5768 cmd->red = red;
5769 cmd->green = green;
5770 cmd->blue = blue;
5771 cmd->alpha = alpha;
5783 _mesa_unmarshal_DepthRangex(struct gl_context *ctx, const struct marshal_cmd_DepthRangex *cmd, const uint64_t *last)
5785 GLclampx zNear = cmd->zNear;
5786 GLclampx zFar = cmd->zFar;
5789 assert (cmd_size == cmd->cmd_base.cmd_size);
5797 struct marshal_cmd_DepthRangex *cmd;
5798 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DepthRangex, cmd_size);
5799 cmd->zNear = zNear;
5800 cmd->zFar = zFar;
5812 _mesa_unmarshal_Fogx(struct gl_context *ctx, const struct marshal_cmd_Fogx *cmd, const uint64_t *last)
5814 GLenum pname = cmd->pname;
5815 GLfixed param = cmd->param;
5818 assert (cmd_size == cmd->cmd_base.cmd_size);
5826 struct marshal_cmd_Fogx *cmd;
5827 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Fogx, cmd_size);
5828 cmd->pname = pname;
5829 cmd->param = param;
5841 _mesa_unmarshal_Fogxv(struct gl_context *ctx, const struct marshal_cmd_Fogxv *cmd, const uint64_t *last)
5843 GLenum pname = cmd->pname;
5845 const char *variable_data = (const char *) (cmd + 1);
5848 return cmd->cmd_base.cmd_size;
5856 struct marshal_cmd_Fogxv *cmd;
5862 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Fogxv, cmd_size);
5863 cmd->pname = pname;
5864 char *variable_data = (char *) (cmd + 1);
5881 _mesa_unmarshal_Frustumx(struct gl_context *ctx, const struct marshal_cmd_Frustumx *cmd, const uint64_t *last)
5883 GLfixed left = cmd->left;
5884 GLfixed right = cmd->right;
5885 GLfixed bottom = cmd->bottom;
5886 GLfixed top = cmd->top;
5887 GLfixed zNear = cmd->zNear;
5888 GLfixed zFar = cmd->zFar;
5891 assert (cmd_size == cmd->cmd_base.cmd_size);
5899 struct marshal_cmd_Frustumx *cmd;
5900 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Frustumx, cmd_size);
5901 cmd->left = left;
5902 cmd->right = right;
5903 cmd->bottom = bottom;
5904 cmd->top = top;
5905 cmd->zNear = zNear;
5906 cmd->zFar = zFar;
5918 _mesa_unmarshal_LightModelx(struct gl_context *ctx, const struct marshal_cmd_LightModelx *cmd, const uint64_t *last)
5920 GLenum pname = cmd->pname;
5921 GLfixed param = cmd->param;
5924 assert (cmd_size == cmd->cmd_base.cmd_size);
5932 struct marshal_cmd_LightModelx *cmd;
5933 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LightModelx, cmd_size);
5934 cmd->pname = pname;
5935 cmd->param = param;
5947 _mesa_unmarshal_LightModelxv(struct gl_context *ctx, const struct marshal_cmd_LightModelxv *cmd, const uint64_t *last)
5949 GLenum pname = cmd->pname;
5951 const char *variable_data = (const char *) (cmd + 1);
5954 return cmd->cmd_base.cmd_size;
5962 struct marshal_cmd_LightModelxv *cmd;
5968 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LightModelxv, cmd_size);
5969 cmd->pname = pname;
5970 char *variable_data = (char *) (cmd + 1);
5984 _mesa_unmarshal_Lightx(struct gl_context *ctx, const struct marshal_cmd_Lightx *cmd, const uint64_t *last)
5986 GLenum light = cmd->light;
5987 GLenum pname = cmd->pname;
5988 GLfixed param = cmd->param;
5991 assert (cmd_size == cmd->cmd_base.cmd_size);
5999 struct marshal_cmd_Lightx *cmd;
6000 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Lightx, cmd_size);
6001 cmd->light = light;
6002 cmd->pname = pname;
6003 cmd->param = param;
6016 _mesa_unmarshal_Lightxv(struct gl_context *ctx, const struct marshal_cmd_Lightxv *cmd, const uint64_t *last)
6018 GLenum light = cmd->light;
6019 GLenum pname = cmd->pname;
6021 const char *variable_data = (const char *) (cmd + 1);
6024 return cmd->cmd_base.cmd_size;
6032 struct marshal_cmd_Lightxv *cmd;
6038 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Lightxv, cmd_size);
6039 cmd->light = light;
6040 cmd->pname = pname;
6041 char *variable_data = (char *) (cmd + 1);
6053 _mesa_unmarshal_LineWidthx(struct gl_context *ctx, const struct marshal_cmd_LineWidthx *cmd, const uint64_t *last)
6055 GLfixed width = cmd->width;
6058 assert (cmd_size == cmd->cmd_base.cmd_size);
6066 struct marshal_cmd_LineWidthx *cmd;
6067 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LineWidthx, cmd_size);
6068 cmd->width = width;
6079 _mesa_unmarshal_LoadMatrixx(struct gl_context *ctx, const struct marshal_cmd_LoadMatrixx *cmd, const uint64_t *last)
6081 const GLfixed * m = cmd->m;
6084 assert (cmd_size == cmd->cmd_base.cmd_size);
6092 struct marshal_cmd_LoadMatrixx *cmd;
6093 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_LoadMatrixx, cmd_size);
6094 memcpy(cmd->m, m, 16 * sizeof(GLfixed));
6107 _mesa_unmarshal_Materialx(struct gl_context *ctx, const struct marshal_cmd_Materialx *cmd, const uint64_t *last)
6109 GLenum face = cmd->face;
6110 GLenum pname = cmd->pname;
6111 GLfixed param = cmd->param;
6114 assert (cmd_size == cmd->cmd_base.cmd_size);
6122 struct marshal_cmd_Materialx *cmd;
6123 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Materialx, cmd_size);
6124 cmd->face = face;
6125 cmd->pname = pname;
6126 cmd->param = param;
6139 _mesa_unmarshal_Materialxv(struct gl_context *ctx, const struct marshal_cmd_Materialxv *cmd, const uint64_t *last)
6141 GLenum face = cmd->face;
6142 GLenum pname = cmd->pname;
6144 const char *variable_data = (const char *) (cmd + 1);
6147 return cmd->cmd_base.cmd_size;
6155 struct marshal_cmd_Materialxv *cmd;
6161 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Materialxv, cmd_size);
6162 cmd->face = face;
6163 cmd->pname = pname;
6164 char *variable_data = (char *) (cmd + 1);
6176 _mesa_unmarshal_MultMatrixx(struct gl_context *ctx, const struct marshal_cmd_MultMatrixx *cmd, const uint64_t *last)
6178 const GLfixed * m = cmd->m;
6181 assert (cmd_size == cmd->cmd_base.cmd_size);
6189 struct marshal_cmd_MultMatrixx *cmd;
6190 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultMatrixx, cmd_size);
6191 memcpy(cmd->m, m, 16 * sizeof(GLfixed));
6206 _mesa_unmarshal_MultiTexCoord4x(struct gl_context *ctx, const struct marshal_cmd_MultiTexCoord4x *cmd, const uint64_t *last)
6208 GLenum target = cmd->target;
6209 GLfixed s = cmd->s;
6210 GLfixed t = cmd->t;
6211 GLfixed r = cmd->r;
6212 GLfixed q = cmd->q;
6215 assert (cmd_size == cmd->cmd_base.cmd_size);
6223 struct marshal_cmd_MultiTexCoord4x *cmd;
6224 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_MultiTexCoord4x, cmd_size);
6225 cmd->target = target;
6226 cmd->s = s;
6227 cmd->t = t;
6228 cmd->r = r;
6229 cmd->q = q;
6242 _mesa_unmarshal_Normal3x(struct gl_context *ctx, const struct marshal_cmd_Normal3x *cmd, const uint64_t *last)
6244 GLfixed nx = cmd->nx;
6245 GLfixed ny = cmd->ny;
6246 GLfixed nz = cmd->nz;
6249 assert (cmd_size == cmd->cmd_base.cmd_size);
6257 struct marshal_cmd_Normal3x *cmd;
6258 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Normal3x, cmd_size);
6259 cmd->nx = nx;
6260 cmd->ny = ny;
6261 cmd->nz = nz;
6277 _mesa_unmarshal_Orthox(struct gl_context *ctx, const struct marshal_cmd_Orthox *cmd, const uint64_t *last)
6279 GLfixed left = cmd->left;
6280 GLfixed right = cmd->right;
6281 GLfixed bottom = cmd->bottom;
6282 GLfixed top = cmd->top;
6283 GLfixed zNear = cmd->zNear;
6284 GLfixed zFar = cmd->zFar;
6287 assert (cmd_size == cmd->cmd_base.cmd_size);
6295 struct marshal_cmd_Orthox *cmd;
6296 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Orthox, cmd_size);
6297 cmd->left = left;
6298 cmd->right = right;
6299 cmd->bottom = bottom;
6300 cmd->top = top;
6301 cmd->zNear = zNear;
6302 cmd->zFar = zFar;
6313 _mesa_unmarshal_PointSizex(struct gl_context *ctx, const struct marshal_cmd_PointSizex *cmd, const uint64_t *last)
6315 GLfixed size = cmd->size;
6318 assert (cmd_size == cmd->cmd_base.cmd_size);
6326 struct marshal_cmd_PointSizex *cmd;
6327 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointSizex, cmd_size);
6328 cmd->size = size;
6340 _mesa_unmarshal_PolygonOffsetx(struct gl_context *ctx, const struct marshal_cmd_PolygonOffsetx *cmd, const uint64_t *last)
6342 GLfixed factor = cmd->factor;
6343 GLfixed units = cmd->units;
6346 assert (cmd_size == cmd->cmd_base.cmd_size);
6354 struct marshal_cmd_PolygonOffsetx *cmd;
6355 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PolygonOffsetx, cmd_size);
6356 cmd->factor = factor;
6357 cmd->units = units;
6371 _mesa_unmarshal_Rotatex(struct gl_context *ctx, const struct marshal_cmd_Rotatex *cmd, const uint64_t *last)
6373 GLfixed angle = cmd->angle;
6374 GLfixed x = cmd->x;
6375 GLfixed y = cmd->y;
6376 GLfixed z = cmd->z;
6379 assert (cmd_size == cmd->cmd_base.cmd_size);
6387 struct marshal_cmd_Rotatex *cmd;
6388 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Rotatex, cmd_size);
6389 cmd->angle = angle;
6390 cmd->x = x;
6391 cmd->y = y;
6392 cmd->z = z;
6404 _mesa_unmarshal_SampleCoveragex(struct gl_context *ctx, const struct marshal_cmd_SampleCoveragex *cmd, const uint64_t *last)
6406 GLclampx value = cmd->value;
6407 GLboolean invert = cmd->invert;
6410 assert (cmd_size == cmd->cmd_base.cmd_size);
6418 struct marshal_cmd_SampleCoveragex *cmd;
6419 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_SampleCoveragex, cmd_size);
6420 cmd->value = value;
6421 cmd->invert = invert;
6434 _mesa_unmarshal_Scalex(struct gl_context *ctx, const struct marshal_cmd_Scalex *cmd, const uint64_t *last)
6436 GLfixed x = cmd->x;
6437 GLfixed y = cmd->y;
6438 GLfixed z = cmd->z;
6441 assert (cmd_size == cmd->cmd_base.cmd_size);
6449 struct marshal_cmd_Scalex *cmd;
6450 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Scalex, cmd_size);
6451 cmd->x = x;
6452 cmd->y = y;
6453 cmd->z = z;
6466 _mesa_unmarshal_TexEnvx(struct gl_context *ctx, const struct marshal_cmd_TexEnvx *cmd, const uint64_t *last)
6468 GLenum target = cmd->target;
6469 GLenum pname = cmd->pname;
6470 GLfixed param = cmd->param;
6473 assert (cmd_size == cmd->cmd_base.cmd_size);
6481 struct marshal_cmd_TexEnvx *cmd;
6482 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexEnvx, cmd_size);
6483 cmd->target = target;
6484 cmd->pname = pname;
6485 cmd->param = param;
6498 _mesa_unmarshal_TexEnvxv(struct gl_context *ctx, const struct marshal_cmd_TexEnvxv *cmd, const uint64_t *last)
6500 GLenum target = cmd->target;
6501 GLenum pname = cmd->pname;
6503 const char *variable_data = (const char *) (cmd + 1);
6506 return cmd->cmd_base.cmd_size;
6514 struct marshal_cmd_TexEnvxv *cmd;
6520 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexEnvxv, cmd_size);
6521 cmd->target = target;
6522 cmd->pname = pname;
6523 char *variable_data = (char *) (cmd + 1);
6537 _mesa_unmarshal_TexParameterx(struct gl_context *ctx, const struct marshal_cmd_TexParameterx *cmd, const uint64_t *last)
6539 GLenum target = cmd->target;
6540 GLenum pname = cmd->pname;
6541 GLfixed param = cmd->param;
6544 assert (cmd_size == cmd->cmd_base.cmd_size);
6552 struct marshal_cmd_TexParameterx *cmd;
6553 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameterx, cmd_size);
6554 cmd->target = target;
6555 cmd->pname = pname;
6556 cmd->param = param;
6569 _mesa_unmarshal_Translatex(struct gl_context *ctx, const struct marshal_cmd_Translatex *cmd, const uint64_t *last)
6571 GLfixed x = cmd->x;
6572 GLfixed y = cmd->y;
6573 GLfixed z = cmd->z;
6576 assert (cmd_size == cmd->cmd_base.cmd_size);
6584 struct marshal_cmd_Translatex *cmd;
6585 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Translatex, cmd_size);
6586 cmd->x = x;
6587 cmd->y = y;
6588 cmd->z = z;
6600 _mesa_unmarshal_ClipPlanex(struct gl_context *ctx, const struct marshal_cmd_ClipPlanex *cmd, const uint64_t *last)
6602 GLenum plane = cmd->plane;
6603 const GLfixed * equation = cmd->equation;
6606 assert (cmd_size == cmd->cmd_base.cmd_size);
6614 struct marshal_cmd_ClipPlanex *cmd;
6615 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClipPlanex, cmd_size);
6616 cmd->plane = plane;
6617 memcpy(cmd->equation, equation, 4 * sizeof(GLfixed));
6689 _mesa_unmarshal_PointParameterx(struct gl_context *ctx, const struct marshal_cmd_PointParameterx *cmd, const uint64_t *last)
6691 GLenum pname = cmd->pname;
6692 GLfixed param = cmd->param;
6695 assert (cmd_size == cmd->cmd_base.cmd_size);
6703 struct marshal_cmd_PointParameterx *cmd;
6704 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointParameterx, cmd_size);
6705 cmd->pname = pname;
6706 cmd->param = param;
6718 _mesa_unmarshal_PointParameterxv(struct gl_context *ctx, const struct marshal_cmd_PointParameterxv *cmd, const uint64_t *last)
6720 GLenum pname = cmd->pname;
6722 const char *variable_data = (const char *) (cmd + 1);
6725 return cmd->cmd_base.cmd_size;
6733 struct marshal_cmd_PointParameterxv *cmd;
6739 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointParameterxv, cmd_size);
6740 cmd->pname = pname;
6741 char *variable_data = (char *) (cmd + 1);
6755 _mesa_unmarshal_TexParameterxv(struct gl_context *ctx, const struct marshal_cmd_TexParameterxv *cmd, const uint64_t *last)
6757 GLenum target = cmd->target;
6758 GLenum pname = cmd->pname;
6760 const char *variable_data = (const char *) (cmd + 1);
6763 return cmd->cmd_base.cmd_size;
6771 struct marshal_cmd_TexParameterxv *cmd;
6777 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexParameterxv, cmd_size);
6778 cmd->target = target;
6779 cmd->pname = pname;
6780 char *variable_data = (char *) (cmd + 1);
6804 _mesa_unmarshal_TexGenxOES(struct gl_context *ctx, const struct marshal_cmd_TexGenxOES *cmd, const uint64_t *last)
6806 GLenum coord = cmd->coord;
6807 GLenum pname = cmd->pname;
6808 GLint param = cmd->param;
6811 assert (cmd_size == cmd->cmd_base.cmd_size);
6819 struct marshal_cmd_TexGenxOES *cmd;
6820 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGenxOES, cmd_size);
6821 cmd->coord = coord;
6822 cmd->pname = pname;
6823 cmd->param = param;
6836 _mesa_unmarshal_TexGenxvOES(struct gl_context *ctx, const struct marshal_cmd_TexGenxvOES *cmd, const uint64_t *last)
6838 GLenum coord = cmd->coord;
6839 GLenum pname = cmd->pname;
6841 const char *variable_data = (const char *) (cmd + 1);
6844 return cmd->cmd_base.cmd_size;
6852 struct marshal_cmd_TexGenxvOES *cmd;
6858 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_TexGenxvOES, cmd_size);
6859 cmd->coord = coord;
6860 cmd->pname = pname;
6861 char *variable_data = (char *) (cmd + 1);
6874 _mesa_unmarshal_ClipPlanef(struct gl_context *ctx, const struct marshal_cmd_ClipPlanef *cmd, const uint64_t *last)
6876 GLenum plane = cmd->plane;
6877 const GLfloat * equation = cmd->equation;
6880 assert (cmd_size == cmd->cmd_base.cmd_size);
6888 struct marshal_cmd_ClipPlanef *cmd;
6889 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_ClipPlanef, cmd_size);
6890 cmd->plane = plane;
6891 memcpy(cmd->equation, equation, 4 * sizeof(GLfloat));
6917 _mesa_unmarshal_Frustumf(struct gl_context *ctx, const struct marshal_cmd_Frustumf *cmd, const uint64_t *last)
6919 GLfloat left = cmd->left;
6920 GLfloat right = cmd->right;
6921 GLfloat bottom = cmd->bottom;
6922 GLfloat top = cmd->top;
6923 GLfloat zNear = cmd->zNear;
6924 GLfloat zFar = cmd->zFar;
6927 assert (cmd_size == cmd->cmd_base.cmd_size);
6935 struct marshal_cmd_Frustumf *cmd;
6936 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Frustumf, cmd_size);
6937 cmd->left = left;
6938 cmd->right = right;
6939 cmd->bottom = bottom;
6940 cmd->top = top;
6941 cmd->zNear = zNear;
6942 cmd->zFar = zFar;
6958 _mesa_unmarshal_Orthof(struct gl_context *ctx, const struct marshal_cmd_Orthof *cmd, const uint64_t *last)
6960 GLfloat left = cmd->left;
6961 GLfloat right = cmd->right;
6962 GLfloat bottom = cmd->bottom;
6963 GLfloat top = cmd->top;
6964 GLfloat zNear = cmd->zNear;
6965 GLfloat zFar = cmd->zFar;
6968 assert (cmd_size == cmd->cmd_base.cmd_size);
6976 struct marshal_cmd_Orthof *cmd;
6977 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Orthof, cmd_size);
6978 cmd->left = left;
6979 cmd->right = right;
6980 cmd->bottom = bottom;
6981 cmd->top = top;
6982 cmd->zNear = zNear;
6983 cmd->zFar = zFar;
6998 _mesa_unmarshal_DrawTexiOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexiOES *cmd, const uint64_t *last)
7000 GLint x = cmd->x;
7001 GLint y = cmd->y;
7002 GLint z = cmd->z;
7003 GLint width = cmd->width;
7004 GLint height = cmd->height;
7007 assert (cmd_size == cmd->cmd_base.cmd_size);
7015 struct marshal_cmd_DrawTexiOES *cmd;
7016 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexiOES, cmd_size);
7017 cmd->x = x;
7018 cmd->y = y;
7019 cmd->z = z;
7020 cmd->width = width;
7021 cmd->height = height;
7032 _mesa_unmarshal_DrawTexivOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexivOES *cmd, const uint64_t *last)
7034 const GLint * coords = cmd->coords;
7037 assert (cmd_size == cmd->cmd_base.cmd_size);
7045 struct marshal_cmd_DrawTexivOES *cmd;
7046 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexivOES, cmd_size);
7047 memcpy(cmd->coords, coords, 5 * sizeof(GLint));
7062 _mesa_unmarshal_DrawTexfOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexfOES *cmd, const uint64_t *last)
7064 GLfloat x = cmd->x;
7065 GLfloat y = cmd->y;
7066 GLfloat z = cmd->z;
7067 GLfloat width = cmd->width;
7068 GLfloat height = cmd->height;
7071 assert (cmd_size == cmd->cmd_base.cmd_size);
7079 struct marshal_cmd_DrawTexfOES *cmd;
7080 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexfOES, cmd_size);
7081 cmd->x = x;
7082 cmd->y = y;
7083 cmd->z = z;
7084 cmd->width = width;
7085 cmd->height = height;
7096 _mesa_unmarshal_DrawTexfvOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexfvOES *cmd, const uint64_t *last)
7098 const GLfloat * coords = cmd->coords;
7101 assert (cmd_size == cmd->cmd_base.cmd_size);
7109 struct marshal_cmd_DrawTexfvOES *cmd;
7110 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexfvOES, cmd_size);
7111 memcpy(cmd->coords, coords, 5 * sizeof(GLfloat));
7126 _mesa_unmarshal_DrawTexsOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexsOES *cmd, const uint64_t *last)
7128 GLshort x = cmd->x;
7129 GLshort y = cmd->y;
7130 GLshort z = cmd->z;
7131 GLshort width = cmd->width;
7132 GLshort height = cmd->height;
7135 assert (cmd_size == cmd->cmd_base.cmd_size);
7143 struct marshal_cmd_DrawTexsOES *cmd;
7144 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexsOES, cmd_size);
7145 cmd->x = x;
7146 cmd->y = y;
7147 cmd->z = z;
7148 cmd->width = width;
7149 cmd->height = height;
7160 _mesa_unmarshal_DrawTexsvOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexsvOES *cmd, const uint64_t *last)
7162 const GLshort * coords = cmd->coords;
7165 assert (cmd_size == cmd->cmd_base.cmd_size);
7173 struct marshal_cmd_DrawTexsvOES *cmd;
7174 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexsvOES, cmd_size);
7175 memcpy(cmd->coords, coords, 5 * sizeof(GLshort));
7190 _mesa_unmarshal_DrawTexxOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexxOES *cmd, const uint64_t *last)
7192 GLfixed x = cmd->x;
7193 GLfixed y = cmd->y;
7194 GLfixed z = cmd->z;
7195 GLfixed width = cmd->width;
7196 GLfixed height = cmd->height;
7199 assert (cmd_size == cmd->cmd_base.cmd_size);
7207 struct marshal_cmd_DrawTexxOES *cmd;
7208 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexxOES, cmd_size);
7209 cmd->x = x;
7210 cmd->y = y;
7211 cmd->z = z;
7212 cmd->width = width;
7213 cmd->height = height;
7224 _mesa_unmarshal_DrawTexxvOES(struct gl_context *ctx, const struct marshal_cmd_DrawTexxvOES *cmd, const uint64_t *last)
7226 const GLfixed * coords = cmd->coords;
7229 assert (cmd_size == cmd->cmd_base.cmd_size);
7237 struct marshal_cmd_DrawTexxvOES *cmd;
7238 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DrawTexxvOES, cmd_size);
7239 memcpy(cmd->coords, coords, 5 * sizeof(GLfixed));
7252 _mesa_unmarshal_PointSizePointerOES(struct gl_context *ctx, const struct marshal_cmd_PointSizePointerOES *cmd, const uint64_t *last)
7254 GLenum type = cmd->type;
7255 GLsizei stride = cmd->stride;
7256 const GLvoid * pointer = cmd->pointer;
7259 assert (cmd_size == cmd->cmd_base.cmd_size);
7267 struct marshal_cmd_PointSizePointerOES *cmd;
7268 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_PointSizePointerOES, cmd_size);
7269 cmd->type = type;
7270 cmd->stride = stride;
7271 cmd->pointer = pointer;
7295 _mesa_unmarshal_DiscardFramebufferEXT(struct gl_context *ctx, const struct marshal_cmd_DiscardFramebufferEXT *cmd, const uint64_t *last)
7297 GLenum target = cmd->target;
7298 GLsizei numAttachments = cmd->numAttachments;
7300 const char *variable_data = (const char *) (cmd + 1);
7303 return cmd->cmd_base.cmd_size;
7311 struct marshal_cmd_DiscardFramebufferEXT *cmd;
7317 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DiscardFramebufferEXT, cmd_size);
7318 cmd->target = target;
7319 cmd->numAttachments = numAttachments;
7320 char *variable_data = (char *) (cmd + 1);
7337 _mesa_unmarshal_FramebufferTexture2DMultisampleEXT(struct gl_context *ctx, const struct marshal_cmd_FramebufferTexture2DMultisampleEXT *cmd, const uint64_t *last)
7339 GLenum target = cmd->target;
7340 GLenum attachment = cmd->attachment;
7341 GLenum textarget = cmd->textarget;
7342 GLuint texture = cmd->texture;
7343 GLint level = cmd->level;
7344 GLsizei samples = cmd->samples;
7347 assert (cmd_size == cmd->cmd_base.cmd_size);
7355 struct marshal_cmd_FramebufferTexture2DMultisampleEXT *cmd;
7356 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferTexture2DMultisampleEXT, cmd_size);
7357 cmd->target = target;
7358 cmd->attachment = attachment;
7359 cmd->textarget = textarget;
7360 cmd->texture = texture;
7361 cmd->level = level;
7362 cmd->samples = samples;
7375 _mesa_unmarshal_DepthRangeArrayfvOES(struct gl_context *ctx, const struct marshal_cmd_DepthRangeArrayfvOES *cmd, const uint64_t *last)
7377 GLuint first = cmd->first;
7378 GLsizei count = cmd->count;
7380 const char *variable_data = (const char *) (cmd + 1);
7383 return cmd->cmd_base.cmd_size;
7391 struct marshal_cmd_DepthRangeArrayfvOES *cmd;
7397 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DepthRangeArrayfvOES, cmd_size);
7398 cmd->first = first;
7399 cmd->count = count;
7400 char *variable_data = (char *) (cmd + 1);
7414 _mesa_unmarshal_DepthRangeIndexedfOES(struct gl_context *ctx, const struct marshal_cmd_DepthRangeIndexedfOES *cmd, const uint64_t *last)
7416 GLuint index = cmd->index;
7417 GLfloat n = cmd->n;
7418 GLfloat f = cmd->f;
7421 assert (cmd_size == cmd->cmd_base.cmd_size);
7429 struct marshal_cmd_DepthRangeIndexedfOES *cmd;
7430 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_DepthRangeIndexedfOES, cmd_size);
7431 cmd->index = index;
7432 cmd->n = n;
7433 cmd->f = f;
7446 _mesa_unmarshal_FramebufferParameteriMESA(struct gl_context *ctx, const struct marshal_cmd_FramebufferParameteriMESA *cmd, const uint64_t *last)
7448 GLenum target = cmd->target;
7449 GLenum pname = cmd->pname;
7450 GLint param = cmd->param;
7453 assert (cmd_size == cmd->cmd_base.cmd_size);
7461 struct marshal_cmd_FramebufferParameteriMESA *cmd;
7462 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_FramebufferParameteriMESA, cmd_size);
7463 cmd->target = target;
7464 cmd->pname = pname;
7465 cmd->param = param;