From 7e3dba301ebbd5d0d9eab7fdac5827559e482c1c Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 6 Apr 2018 08:41:32 +0200 Subject: [PATCH] etnaviv: sw queries: return correct number of groups Fixes: 3d912bd742ed ("etnaviv: add query_group_info for sw counters") Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_query_sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2