summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/marshal.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-29 13:20:36 +1100
committerTimothy Arceri <[email protected]>2017-03-30 08:19:07 +1100
commit1ea73b9c61e576cfeb33dda39847e6dc9d8099c2 (patch)
tree4c123ef3999e746ab3ad47a163cde700aab0bd57 /src/mesa/main/marshal.h
parent9aba81b1609c6f7b61125ca915291c83a511d5bd (diff)
mesa/glthread: print out syncs when MARSHAL_MAX_CMD_SIZE is exceeded
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/marshal.h')
-rw-r--r--src/mesa/main/marshal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/marshal.h b/src/mesa/main/marshal.h
index 52339aa1db2..3d104240afe 100644
--- a/src/mesa/main/marshal.h
+++ b/src/mesa/main/marshal.h
@@ -119,6 +119,19 @@ _mesa_glthread_is_non_vbo_draw_elements(const struct gl_context *ctx)
#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)
{