Let the developer decide that in the python script.
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
if not func.fixed_params and not func.variable_params:
out('(void) cmd;\n')
- out('_mesa_post_marshal_hook(ctx);')
+
+ # Uncomment this if you want to call _mesa_glthread_finish for debugging
+ #out('_mesa_glthread_finish(ctx);')
def print_async_struct(self, func):
out('struct marshal_cmd_{0}'.format(func.name))
#include "marshal.h"
#include "dispatch.h"
+static inline void
+_mesa_post_marshal_hook(struct gl_context *ctx)
+{
+ /* This can be enabled for debugging whether a failure is a synchronization
+ * problem between the main thread and the worker thread, or a failure in
+ * how we actually marshal.
+ */
+ if (false)
+ _mesa_glthread_finish(ctx);
+}
+
struct marshal_cmd_Flush
{
struct marshal_cmd_base cmd_base;
struct _glapi_table *
_mesa_create_marshal_table(const struct gl_context *ctx);
-static inline void
-_mesa_post_marshal_hook(struct gl_context *ctx)
-{
- /* This can be enabled for debugging whether a failure is a synchronization
- * problem between the main thread and the worker thread, or a failure in
- * how we actually marshal.
- */
- if (false)
- _mesa_glthread_finish(ctx);
-}
-
/**
* Checks whether we're on a compat context for code-generated