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

index 4c233d1ec41b4d13f5abb010387205a46efa3d59..8e777332be634a0103c2bfbc950b9ff8a765f8b0 100644 (file)
@@ -338,6 +338,11 @@ static boolean noop_is_format_supported(struct pipe_screen* pscreen,
        return screen->is_format_supported(screen, format, target, sample_count, usage);
 }
 
+static uint64_t noop_get_timestamp(struct pipe_screen *pscreen)
+{
+       return 0;
+}
+
 static void noop_destroy_screen(struct pipe_screen *screen)
 {
        struct noop_pipe_screen *noop_screen = (struct noop_pipe_screen*)screen;
@@ -376,6 +381,7 @@ struct pipe_screen *noop_screen_create(struct pipe_screen *oscreen)
        screen->resource_get_handle = noop_resource_get_handle;
        screen->resource_destroy = noop_resource_destroy;
        screen->flush_frontbuffer = noop_flush_frontbuffer;
+        screen->get_timestamp = noop_get_timestamp;
 
        return screen;
 }