summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-07-10 18:48:02 +0200
committerMarek Olšák <[email protected]>2012-07-10 19:04:13 +0200
commita3fccafda9596d9377a621904098afe223825576 (patch)
treedbdb0eea79c13ac218423baa3db3db6360f6b909 /src/gallium/drivers
parente66d90ec6bd927e0a8252c27d69258e126897ad5 (diff)
identity: implement get_timestamp
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/identity/id_screen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/identity/id_screen.c b/src/gallium/drivers/identity/id_screen.c
index ab82e29cec3..26df7f6f7ce 100644
--- a/src/gallium/drivers/identity/id_screen.c
+++ b/src/gallium/drivers/identity/id_screen.c
@@ -242,6 +242,15 @@ identity_screen_fence_finish(struct pipe_screen *_screen,
timeout);
}
+static uint64_t
+identity_screen_get_timestamp(struct pipe_screen *_screen)
+{
+ struct identity_screen *id_screen = identity_screen(_screen);
+ struct pipe_screen *screen = id_screen->screen;
+
+ return screen->get_timestamp(screen);
+}
+
struct pipe_screen *
identity_screen_create(struct pipe_screen *screen)
{
@@ -268,6 +277,7 @@ identity_screen_create(struct pipe_screen *screen)
id_screen->base.fence_reference = identity_screen_fence_reference;
id_screen->base.fence_signalled = identity_screen_fence_signalled;
id_screen->base.fence_finish = identity_screen_fence_finish;
+ id_screen->base.get_timestamp = identity_screen_get_timestamp;
id_screen->screen = screen;