From: Christian Gmeiner Date: Mon, 5 Mar 2018 22:26:43 +0000 (+0100) Subject: etnaviv: add get_driver_query_group_info(..) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b68a7297d2a610faeb7353c8e49910ea1b16d43;p=mesa.git etnaviv: add get_driver_query_group_info(..) This enables AMD_performance_monitor extension. Signed-off-by: Christian Gmeiner Reviewed-by: Lucas Stach --- 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