summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-07-10 18:14:46 +0200
committerMarek Olšák <[email protected]>2012-07-10 19:04:12 +0200
commita471d268ec2a6d22a02f3e9d109b792659dbe7ef (patch)
treeaf98fd35236817dfe18433f2a9204461d1c07aca
parent768589e836b91493f7f378b9d8daa4ad080a5d16 (diff)
galahad: implement get_timestamp
-rw-r--r--src/gallium/drivers/galahad/glhd_screen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/galahad/glhd_screen.c b/src/gallium/drivers/galahad/glhd_screen.c
index 2596a148ce5..16a5ff1ceae 100644
--- a/src/gallium/drivers/galahad/glhd_screen.c
+++ b/src/gallium/drivers/galahad/glhd_screen.c
@@ -325,6 +325,15 @@ galahad_screen_fence_finish(struct pipe_screen *_screen,
timeout);
}
+static uint64_t
+galahad_screen_get_timestamp(struct pipe_screen *_screen)
+{
+ struct galahad_screen *glhd_screen = galahad_screen(_screen);
+ struct pipe_screen *screen = glhd_screen->screen;
+
+ return screen->get_timestamp(screen);
+}
+
struct pipe_screen *
galahad_screen_create(struct pipe_screen *screen)
{
@@ -360,6 +369,7 @@ galahad_screen_create(struct pipe_screen *screen)
GLHD_SCREEN_INIT(fence_reference);
GLHD_SCREEN_INIT(fence_signalled);
GLHD_SCREEN_INIT(fence_finish);
+ GLHD_SCREEN_INIT(get_timestamp);
#undef GLHD_SCREEN_INIT