summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_winsys.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-08-21 13:57:59 +0100
committerJosé Fonseca <[email protected]>2008-08-21 18:46:04 +0100
commit34d12c1787116c254e528dd981810b7b78b7a2ee (patch)
tree0d2cf651b01571b459b78182a3cae12d0696848c /src/gallium/drivers/trace/tr_winsys.h
parent0fff3e4ea991ce2f841739ee8c8e8937452e56fa (diff)
trace: Hack to detect writes to user buffers.
It often happens that new data is written directly to the user buffers without mapping/unmapping. This hack marks user buffers and dumps them before passing them to pipe context.
Diffstat (limited to 'src/gallium/drivers/trace/tr_winsys.h')
-rw-r--r--src/gallium/drivers/trace/tr_winsys.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_winsys.h b/src/gallium/drivers/trace/tr_winsys.h
index 2218117347c..062ddf66a00 100644
--- a/src/gallium/drivers/trace/tr_winsys.h
+++ b/src/gallium/drivers/trace/tr_winsys.h
@@ -34,6 +34,14 @@
#include "pipe/p_winsys.h"
+/**
+ * It often happens that new data is written directly to the user buffers
+ * without mapping/unmapping. This flag marks user buffers, so that their
+ * contents can be dumpped before being used by the pipe context.
+ */
+#define TRACE_BUFFER_USAGE_USER (1 << 31)
+
+
struct hash_table;
@@ -60,4 +68,9 @@ struct pipe_winsys *
trace_winsys_create(struct pipe_winsys *winsys);
+void
+trace_winsys_user_buffer_update(struct pipe_winsys *winsys,
+ struct pipe_buffer *buffer);
+
+
#endif /* TR_WINSYS_H_ */