Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
def print_sync_dispatch(self, func):
out('_mesa_glthread_finish(ctx);')
+ out('debug_print_sync_fallback("{0}");'.format(func.name))
self.print_sync_call(func)
def print_sync_body(self, func):
#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)
{