summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2018-03-05 23:26:43 +0100
committerChristian Gmeiner <[email protected]>2018-03-08 20:44:04 +0100
commit5b68a7297d2a610faeb7353c8e49910ea1b16d43 (patch)
treee92a706cd83996992a40b2b13b8853cccfc0ad79 /src/gallium/drivers/etnaviv
parent3d912bd742edc2f66758b25b36371e581fd62d45 (diff)
etnaviv: add get_driver_query_group_info(..)
This enables AMD_performance_monitor extension. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_query.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_query.c b/src/gallium/drivers/etnaviv/etnaviv_query.c
index 9e897cd75a3..2d257a9d34f 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_query.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_query.c
@@ -110,6 +110,18 @@ etna_get_driver_query_info(struct pipe_screen *pscreen, unsigned index,
return etna_sw_get_driver_query_info(pscreen, index, info);
}
+static int
+etna_get_driver_query_group_info(struct pipe_screen *pscreen, unsigned index,
+ struct pipe_driver_query_group_info *info)
+{
+ int nr_sw_groups = etna_sw_get_driver_query_group_info(pscreen, 0, NULL);
+
+ if (!info)
+ return nr_sw_groups;
+
+ return etna_sw_get_driver_query_group_info(pscreen, index, info);
+}
+
static void
etna_set_active_query_state(struct pipe_context *pipe, boolean enable)
{
@@ -119,6 +131,7 @@ void
etna_query_screen_init(struct pipe_screen *pscreen)
{
pscreen->get_driver_query_info = etna_get_driver_query_info;
+ pscreen->get_driver_query_group_info = etna_get_driver_query_group_info;
}
void