summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-07-10 18:46:08 +0200
committerMarek Olšák <[email protected]>2012-07-10 19:04:13 +0200
commite66d90ec6bd927e0a8252c27d69258e126897ad5 (patch)
tree27e37f6871b9ab2d140f16bcac7185ee09dfdaf4
parent642539e3f9bd1f0ea55bf5dbfb1a497d2dfdeeed (diff)
noop: implement get_timestamp
-rw-r--r--src/gallium/drivers/noop/noop_pipe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/noop/noop_pipe.c b/src/gallium/drivers/noop/noop_pipe.c
index 4c233d1ec41..8e777332be6 100644
--- a/src/gallium/drivers/noop/noop_pipe.c
+++ b/src/gallium/drivers/noop/noop_pipe.c
@@ -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;
}