etnaviv: sw queries: return correct number of groups
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 6 Apr 2018 06:41:32 +0000 (08:41 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 8 Apr 2018 20:13:04 +0000 (22:13 +0200)
Fixes: 3d912bd742ed ("etnaviv: add query_group_info for sw counters")
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_query_sw.c

index f955d8e21060aff37d6dd3961e84b5dbe3346cd1..bec8d0d588a97c85a309f81f742317cb5edba620 100644 (file)
@@ -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;