diff options
author | Marek Olšák <[email protected]> | 2020-02-19 17:29:14 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-06 01:06:14 +0000 |
commit | 19dc528bbf74cb823c87420ee3e5b8cb6495a199 (patch) | |
tree | c6fd6c47fc06fd3a091642b18c19f75150e533b1 /src/mesa/main | |
parent | c920572f603b5e0ac062501593a4ed6b53bc8f40 (diff) |
glthread: don't insert _mesa_post_marshal_hook into every function
Let the developer decide that in the python script.
Reviewed-by: Timothy Arceri <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/marshal.c | 11 | ||||
-rw-r--r-- | src/mesa/main/marshal.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/mesa/main/marshal.c b/src/mesa/main/marshal.c index e0d423a4aae..28054d236c9 100644 --- a/src/mesa/main/marshal.c +++ b/src/mesa/main/marshal.c @@ -32,6 +32,17 @@ #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; diff --git a/src/mesa/main/marshal.h b/src/mesa/main/marshal.h index 10c508327a7..c15253f3973 100644 --- a/src/mesa/main/marshal.h +++ b/src/mesa/main/marshal.h @@ -132,17 +132,6 @@ debug_print_marshal(const char *func) 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 |