Lines Matching refs:cmd
44 const struct marshal_cmd_Flush *cmd) in _mesa_unmarshal_Flush() argument
54 struct marshal_cmd_Flush *cmd = in _mesa_marshal_Flush() local
57 (void) cmd; in _mesa_marshal_Flush()
77 const struct marshal_cmd_Enable *cmd) in _mesa_unmarshal_Enable() argument
79 const GLenum cap = cmd->cap; in _mesa_unmarshal_Enable()
87 struct marshal_cmd_Enable *cmd; in _mesa_marshal_Enable() local
94 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_Enable, in _mesa_marshal_Enable()
95 sizeof(*cmd)); in _mesa_marshal_Enable()
96 cmd->cap = cap; in _mesa_marshal_Enable()
119 const struct marshal_cmd_ShaderSource *cmd) in _mesa_unmarshal_ShaderSource() argument
121 const GLint *cmd_length = (const GLint *) (cmd + 1); in _mesa_unmarshal_ShaderSource()
122 const GLchar *cmd_strings = (const GLchar *) (cmd_length + cmd->count); in _mesa_unmarshal_ShaderSource()
124 const GLchar * *string = malloc(cmd->count * sizeof(const GLchar *)); in _mesa_unmarshal_ShaderSource()
127 for (i = 0; i < cmd->count; ++i) { in _mesa_unmarshal_ShaderSource()
132 (cmd->shader, cmd->count, string, cmd_length)); in _mesa_unmarshal_ShaderSource()
174 struct marshal_cmd_ShaderSource *cmd = in _mesa_marshal_ShaderSource() local
177 GLint *cmd_length = (GLint *) (cmd + 1); in _mesa_marshal_ShaderSource()
181 cmd->shader = shader; in _mesa_marshal_ShaderSource()
182 cmd->count = count; in _mesa_marshal_ShaderSource()
263 const struct marshal_cmd_BindBuffer *cmd) in _mesa_unmarshal_BindBuffer() argument
265 const GLenum target = cmd->target; in _mesa_unmarshal_BindBuffer()
266 const GLuint buffer = cmd->buffer; in _mesa_unmarshal_BindBuffer()
274 struct marshal_cmd_BindBuffer *cmd; in _mesa_marshal_BindBuffer() local
280 cmd = _mesa_glthread_allocate_command(ctx, DISPATCH_CMD_BindBuffer, in _mesa_marshal_BindBuffer()
282 cmd->target = target; in _mesa_marshal_BindBuffer()
283 cmd->buffer = buffer; in _mesa_marshal_BindBuffer()
304 const struct marshal_cmd_BufferData *cmd) in _mesa_unmarshal_BufferData() argument
306 const GLenum target = cmd->target; in _mesa_unmarshal_BufferData()
307 const GLsizeiptr size = cmd->size; in _mesa_unmarshal_BufferData()
308 const GLenum usage = cmd->usage; in _mesa_unmarshal_BufferData()
311 if (cmd->data_null) in _mesa_unmarshal_BufferData()
314 data = (const void *) (cmd + 1); in _mesa_unmarshal_BufferData()
336 struct marshal_cmd_BufferData *cmd = in _mesa_marshal_BufferData() local
340 cmd->target = target; in _mesa_marshal_BufferData()
341 cmd->size = size; in _mesa_marshal_BufferData()
342 cmd->usage = usage; in _mesa_marshal_BufferData()
343 cmd->data_null = !data; in _mesa_marshal_BufferData()
345 char *variable_data = (char *) (cmd + 1); in _mesa_marshal_BufferData()
368 const struct marshal_cmd_BufferSubData *cmd) in _mesa_unmarshal_BufferSubData() argument
370 const GLenum target = cmd->target; in _mesa_unmarshal_BufferSubData()
371 const GLintptr offset = cmd->offset; in _mesa_unmarshal_BufferSubData()
372 const GLsizeiptr size = cmd->size; in _mesa_unmarshal_BufferSubData()
373 const void *data = (const void *) (cmd + 1); in _mesa_unmarshal_BufferSubData()
395 struct marshal_cmd_BufferSubData *cmd = in _mesa_marshal_BufferSubData() local
398 cmd->target = target; in _mesa_marshal_BufferSubData()
399 cmd->offset = offset; in _mesa_marshal_BufferSubData()
400 cmd->size = size; in _mesa_marshal_BufferSubData()
401 char *variable_data = (char *) (cmd + 1); in _mesa_marshal_BufferSubData()
424 const struct marshal_cmd_NamedBufferData *cmd) in _mesa_unmarshal_NamedBufferData() argument
426 const GLuint name = cmd->name; in _mesa_unmarshal_NamedBufferData()
427 const GLsizei size = cmd->size; in _mesa_unmarshal_NamedBufferData()
428 const GLenum usage = cmd->usage; in _mesa_unmarshal_NamedBufferData()
431 if (cmd->data_null) in _mesa_unmarshal_NamedBufferData()
434 data = (const void *) (cmd + 1); in _mesa_unmarshal_NamedBufferData()
455 struct marshal_cmd_NamedBufferData *cmd = in _mesa_marshal_NamedBufferData() local
458 cmd->name = buffer; in _mesa_marshal_NamedBufferData()
459 cmd->size = size; in _mesa_marshal_NamedBufferData()
460 cmd->usage = usage; in _mesa_marshal_NamedBufferData()
461 cmd->data_null = !data; in _mesa_marshal_NamedBufferData()
463 char *variable_data = (char *) (cmd + 1); in _mesa_marshal_NamedBufferData()
486 const struct marshal_cmd_NamedBufferSubData *cmd) in _mesa_unmarshal_NamedBufferSubData() argument
488 const GLuint name = cmd->name; in _mesa_unmarshal_NamedBufferSubData()
489 const GLintptr offset = cmd->offset; in _mesa_unmarshal_NamedBufferSubData()
490 const GLsizei size = cmd->size; in _mesa_unmarshal_NamedBufferSubData()
491 const void *data = (const void *) (cmd + 1); in _mesa_unmarshal_NamedBufferSubData()
512 struct marshal_cmd_NamedBufferSubData *cmd = in _mesa_marshal_NamedBufferSubData() local
515 cmd->name = buffer; in _mesa_marshal_NamedBufferSubData()
516 cmd->offset = offset; in _mesa_marshal_NamedBufferSubData()
517 cmd->size = size; in _mesa_marshal_NamedBufferSubData()
518 char *variable_data = (char *) (cmd + 1); in _mesa_marshal_NamedBufferSubData()
538 const struct marshal_cmd_ClearBuffer *cmd) in _mesa_unmarshal_ClearBufferfv() argument
540 const GLenum buffer = cmd->buffer; in _mesa_unmarshal_ClearBufferfv()
541 const GLint drawbuffer = cmd->drawbuffer; in _mesa_unmarshal_ClearBufferfv()
542 const char *variable_data = (const char *) (cmd + 1); in _mesa_unmarshal_ClearBufferfv()
551 const struct marshal_cmd_ClearBuffer *cmd) in _mesa_unmarshal_ClearBufferiv() argument
553 const GLenum buffer = cmd->buffer; in _mesa_unmarshal_ClearBufferiv()
554 const GLint drawbuffer = cmd->drawbuffer; in _mesa_unmarshal_ClearBufferiv()
555 const char *variable_data = (const char *) (cmd + 1); in _mesa_unmarshal_ClearBufferiv()
564 const struct marshal_cmd_ClearBuffer *cmd) in _mesa_unmarshal_ClearBufferuiv() argument
566 const GLenum buffer = cmd->buffer; in _mesa_unmarshal_ClearBufferuiv()
567 const GLint drawbuffer = cmd->drawbuffer; in _mesa_unmarshal_ClearBufferuiv()
568 const char *variable_data = (const char *) (cmd + 1); in _mesa_unmarshal_ClearBufferuiv()
577 const struct marshal_cmd_ClearBuffer *cmd) in _mesa_unmarshal_ClearBufferfi() argument
579 const GLenum buffer = cmd->buffer; in _mesa_unmarshal_ClearBufferfi()
580 const GLint drawbuffer = cmd->drawbuffer; in _mesa_unmarshal_ClearBufferfi()
581 const char *variable_data = (const char *) (cmd + 1); in _mesa_unmarshal_ClearBufferfi()
610 struct marshal_cmd_ClearBuffer *cmd = in clear_buffer_add_command() local
613 cmd->buffer = buffer; in clear_buffer_add_command()
614 cmd->drawbuffer = drawbuffer; in clear_buffer_add_command()
615 GLuint *variable_data = (GLuint *) (cmd + 1); in clear_buffer_add_command()