summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-07-10 18:43:51 +0200
committerMarek Olšák <maraeo@gmail.com>2012-07-10 19:04:12 +0200
commit642539e3f9bd1f0ea55bf5dbfb1a497d2dfdeeed (patch)
treea7b6be27cc25fa2405eac70131eb014e3c55e3e3
parenta471d268ec2a6d22a02f3e9d109b792659dbe7ef (diff)
trace: implement get_timestamp
-rw-r--r--src/gallium/drivers/trace/tr_screen.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gallium/drivers/trace/tr_screen.c b/src/gallium/drivers/trace/tr_screen.c
index 4a1aa997a7b..df775072fa3 100644
--- a/src/gallium/drivers/trace/tr_screen.c
+++ b/src/gallium/drivers/trace/tr_screen.c
@@ -400,6 +400,24 @@ trace_screen_fence_finish(struct pipe_screen *_screen,
* screen
*/
+static uint64_t
+trace_screen_get_timestamp(struct pipe_screen *_screen)
+{
+ struct trace_screen *tr_scr = trace_screen(_screen);
+ struct pipe_screen *screen = tr_scr->screen;
+ uint64_t result;
+
+ trace_dump_call_begin("pipe_screen", "get_timestamp");
+ trace_dump_arg(ptr, screen);
+
+ result = screen->get_timestamp(screen);
+
+ trace_dump_ret(uint, result);
+ trace_dump_call_end();
+
+ return result;
+}
+
static void
trace_screen_destroy(struct pipe_screen *_screen)
{
@@ -467,6 +485,7 @@ trace_screen_create(struct pipe_screen *screen)
tr_scr->base.fence_signalled = trace_screen_fence_signalled;
tr_scr->base.fence_finish = trace_screen_fence_finish;
tr_scr->base.flush_frontbuffer = trace_screen_flush_frontbuffer;
+ tr_scr->base.get_timestamp = trace_screen_get_timestamp;
tr_scr->screen = screen;