galahad: implement get_timestamp
authorMarek Olšák <maraeo@gmail.com>
Tue, 10 Jul 2012 16:14:46 +0000 (18:14 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 10 Jul 2012 17:04:12 +0000 (19:04 +0200)
src/gallium/drivers/galahad/glhd_screen.c

index 2596a148ce5a2f8cd1c372e7e767eaa7d015ec4b..16a5ff1ceae7f8b8fcc61eb759f541a5ee348f7c 100644 (file)
@@ -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