diff options
author | Marek Olšák <maraeo@gmail.com> | 2012-07-10 18:14:46 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2012-07-10 19:04:12 +0200 |
commit | a471d268ec2a6d22a02f3e9d109b792659dbe7ef (patch) | |
tree | af98fd35236817dfe18433f2a9204461d1c07aca /src | |
parent | 768589e836b91493f7f378b9d8daa4ad080a5d16 (diff) | |
download | external_mesa3d-a471d268ec2a6d22a02f3e9d109b792659dbe7ef.zip external_mesa3d-a471d268ec2a6d22a02f3e9d109b792659dbe7ef.tar.gz external_mesa3d-a471d268ec2a6d22a02f3e9d109b792659dbe7ef.tar.bz2 |
galahad: implement get_timestamp
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/galahad/glhd_screen.c | 10 |
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 2596a14..16a5ff1 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 |