[Mesa-dev] [PATCH] etnaviv: sw queries: return correct number of groups

Christian Gmeiner christian.gmeiner at gmail.com
Fri Apr 6 06:41:32 UTC 2018


Fixes: 3d912bd742ed ("etnaviv: add query_group_info for sw counters")
Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
 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 f955d8e210..bec8d0d588 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.14.3



More information about the mesa-dev mailing list