From: Christian Gmeiner Date: Fri, 6 Apr 2018 06:41:32 +0000 (+0200) Subject: etnaviv: sw queries: return correct number of groups X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e3dba301ebbd5d0d9eab7fdac5827559e482c1c;p=mesa.git etnaviv: sw queries: return correct number of groups Fixes: 3d912bd742ed ("etnaviv: add query_group_info for sw counters") Signed-off-by: Christian Gmeiner --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_query_sw.c b/src/gallium/drivers/etnaviv/etnaviv_query_sw.c index f955d8e2106..bec8d0d588a 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_query_sw.c +++ b/src/gallium/drivers/etnaviv/etnaviv_query_sw.c @@ -145,7 +145,7 @@ etna_sw_get_driver_query_group_info(struct pipe_screen *pscreen, struct pipe_driver_query_group_info *info) { if (!info) - return ARRAY_SIZE(list); + return 1; if (index != 0) return 0;