summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/trace/tr_screen.h
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-03-11 22:45:48 +0100
committerJakob Bornecrantz <[email protected]>2009-03-11 22:47:15 +0100
commit808f32279964f4e80f0708f737fdf3a901ff51e5 (patch)
tree9bc5b3756575beded142af9714910949b2f41533 /src/gallium/drivers/trace/tr_screen.h
parent422512050312a880439ed4e8eb99b8e362d5071f (diff)
trace: Move buffer functions from winsys to screen
Diffstat (limited to 'src/gallium/drivers/trace/tr_screen.h')
-rw-r--r--src/gallium/drivers/trace/tr_screen.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.h b/src/gallium/drivers/trace/tr_screen.h
index 15fe1bc0154..8c65516b509 100644
--- a/src/gallium/drivers/trace/tr_screen.h
+++ b/src/gallium/drivers/trace/tr_screen.h
@@ -37,6 +37,14 @@ extern "C" {
#endif
+/**
+ * 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 trace_screen
{
struct pipe_screen base;
@@ -53,6 +61,11 @@ struct pipe_screen *
trace_screen_create(struct pipe_screen *screen);
+void
+trace_screen_user_buffer_update(struct pipe_screen *screen,
+ struct pipe_buffer *buffer);
+
+
#ifdef __cplusplus
}
#endif