glthread: don't insert _mesa_post_marshal_hook into every function
[mesa.git] / src / mesa / main / marshal.c
index e0d423a4aae207f6dd01a690edb14344cc604671..28054d236c9b1bb3794dbeb8ae65e6059342bbec 100644 (file)
 #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;