[Mesa-dev] [PATCH 05/16] svga: implement pipe_context::get_driver_query_group_info
Samuel Pitoiset
samuel.pitoiset at gmail.com
Mon Jul 7 08:47:35 PDT 2014
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/gallium/drivers/svga/svga_screen.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index b213b04..5621271 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -555,6 +555,26 @@ svga_get_driver_query_info(struct pipe_screen *screen,
}
+static int
+svga_get_driver_query_group_info(struct pipe_screen *screen,
+ unsigned index,
+ struct pipe_driver_query_group_info *info)
+{
+ static const struct pipe_driver_query_group_info groups[] = {
+ {"Driver queries", 3, 3}
+ };
+
+ if (!info)
+ return Elements(groups);
+
+ if (index >= Elements(groups))
+ return 0;
+
+ *info = groups[index];
+ return 1;
+}
+
+
static void
svga_destroy_screen( struct pipe_screen *screen )
{
@@ -615,6 +635,7 @@ svga_screen_create(struct svga_winsys_screen *sws)
screen->fence_signalled = svga_fence_signalled;
screen->fence_finish = svga_fence_finish;
screen->get_driver_query_info = svga_get_driver_query_info;
+ screen->get_driver_query_group_info = svga_get_driver_query_group_info;
svgascreen->sws = sws;
svga_init_screen_resource_functions(svgascreen);
--
2.0.0
More information about the mesa-dev
mailing list