From: Marek Olšák Date: Tue, 10 Jul 2012 16:14:46 +0000 (+0200) Subject: galahad: implement get_timestamp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a471d268ec2a6d22a02f3e9d109b792659dbe7ef;p=mesa.git galahad: implement get_timestamp --- 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