glthread->CurrentVAO->HasUserPointer);
}
-#define DEBUG_MARSHAL_PRINT_CALLS 0
-
-/**
- * This is printed when we have fallen back to a sync. This can happen when
- * MARSHAL_MAX_CMD_SIZE is exceeded.
- */
-static inline void
-debug_print_sync_fallback(const char *func)
-{
-#if DEBUG_MARSHAL_PRINT_CALLS
- printf("fallback to sync: %s\n", func);
-#endif
-}
-
-
-static inline void
-debug_print_sync(const char *func)
-{
-#if DEBUG_MARSHAL_PRINT_CALLS
- printf("sync: %s\n", func);
-#endif
-}
-
-static inline void
-debug_print_marshal(const char *func)
-{
-#if DEBUG_MARSHAL_PRINT_CALLS
- printf("marshal: %s\n", func);
-#endif
-}
struct _glapi_table *
_mesa_create_marshal_table(const struct gl_context *ctx);
-struct marshal_cmd_ShaderSource;
-struct marshal_cmd_BufferData;
-struct marshal_cmd_BufferSubData;
-
-void GLAPIENTRY
-_mesa_marshal_ShaderSource(GLuint shader, GLsizei count,
- const GLchar * const *string, const GLint *length);
-
-void
-_mesa_unmarshal_ShaderSource(struct gl_context *ctx,
- const struct marshal_cmd_ShaderSource *cmd);
-
void
_mesa_glthread_BindBuffer(struct gl_context *ctx, GLenum target, GLuint buffer);
-void
-_mesa_unmarshal_BufferData(struct gl_context *ctx,
- const struct marshal_cmd_BufferData *cmd);
-
-void
-_mesa_unmarshal_NamedBufferData(struct gl_context *ctx,
- const struct marshal_cmd_BufferData *cmd);
-
-void
-_mesa_unmarshal_NamedBufferDataEXT(struct gl_context *ctx,
- const struct marshal_cmd_BufferData *cmd);
-
-void GLAPIENTRY
-_mesa_marshal_BufferData(GLenum target, GLsizeiptr size, const GLvoid * data,
- GLenum usage);
-
-void GLAPIENTRY
-_mesa_marshal_NamedBufferData(GLuint buffer, GLsizeiptr size,
- const GLvoid * data, GLenum usage);
-
-void GLAPIENTRY
-_mesa_marshal_NamedBufferDataEXT(GLuint buffer, GLsizeiptr size,
- const GLvoid *data, GLenum usage);
-
-void
-_mesa_unmarshal_BufferSubData(struct gl_context *ctx,
- const struct marshal_cmd_BufferSubData *cmd);
-
-void
-_mesa_unmarshal_NamedBufferSubData(struct gl_context *ctx,
- const struct marshal_cmd_BufferSubData *cmd);
-
-void
-_mesa_unmarshal_NamedBufferSubDataEXT(struct gl_context *ctx,
- const struct marshal_cmd_BufferSubData *cmd);
-
-void GLAPIENTRY
-_mesa_marshal_BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size,
- const GLvoid * data);
-
-void GLAPIENTRY
-_mesa_marshal_NamedBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr size,
- const GLvoid * data);
-
-void GLAPIENTRY
-_mesa_marshal_NamedBufferSubDataEXT(GLuint buffer, GLintptr offset,
- GLsizeiptr size, const GLvoid * data);
-
static inline unsigned
_mesa_buffer_enum_to_count(GLenum buffer)
{