projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
targets/libgl-xlib: add code to inject trace and identity layers
[mesa.git]
/
src
/
gallium
/
drivers
/
trace
/
tr_screen.h
diff --git
a/src/gallium/drivers/trace/tr_screen.h
b/src/gallium/drivers/trace/tr_screen.h
index 7fae18298580e9d87bed0de281a8bd5090b657e1..597e2fc26501f25fbd0a7c5c81d6ac30b43e4c88 100644
(file)
--- a/
src/gallium/drivers/trace/tr_screen.h
+++ b/
src/gallium/drivers/trace/tr_screen.h
@@
-30,7
+30,7
@@
#include "pipe/p_screen.h"
#include "pipe/p_screen.h"
-#include "
pipe/p
_thread.h"
+#include "
os/os
_thread.h"
#ifdef __cplusplus
#ifdef __cplusplus
@@
-57,6
+57,9
@@
struct trace_screen
struct pipe_screen *screen;
struct pipe_screen *screen;
+ /* remote debugger */
+ struct trace_rbug *rbug;
+
pipe_mutex list_mutex;
int num_buffers;
int num_contexts;
pipe_mutex list_mutex;
int num_buffers;
int num_contexts;
@@
-71,21
+74,31
@@
struct trace_screen
};
};
+/*
+ * tr_rbug.c
+ */
+
+
+struct trace_rbug;
+
+struct trace_rbug *
+trace_rbug_start(struct trace_screen *tr_scr);
+
+void
+trace_rbug_stop(struct trace_rbug *tr_rbug);
+
+
/*
* tr_screen.c
*/
/*
* tr_screen.c
*/
+
boolean
trace_enabled(void);
struct trace_screen *
trace_screen(struct pipe_screen *screen);
boolean
trace_enabled(void);
struct trace_screen *
trace_screen(struct pipe_screen *screen);
-
-struct pipe_screen *
-trace_screen_create(struct pipe_screen *screen);
-
-
void
trace_screen_user_buffer_update(struct pipe_screen *screen,
struct pipe_buffer *buffer);
void
trace_screen_user_buffer_update(struct pipe_screen *screen,
struct pipe_buffer *buffer);
@@
-106,6
+119,7
@@
trace_screen_user_buffer_update(struct pipe_screen *screen,
pipe_mutex_unlock(tr_scr->list_mutex); \
} while (0)
pipe_mutex_unlock(tr_scr->list_mutex); \
} while (0)
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif