return q;
}
+static const struct pipe_driver_query_info list[] = {
+ {"prims-emitted", PIPE_QUERY_PRIMITIVES_EMITTED, { 0 }},
+ {"draw-calls", ETNA_QUERY_DRAW_CALLS, { 0 }},
+ {"rs-operations", ETNA_QUERY_RS_OPERATIONS, { 0 }},
+};
+
int
etna_sw_get_driver_query_info(struct pipe_screen *pscreen, unsigned index,
struct pipe_driver_query_info *info)
{
- static const struct pipe_driver_query_info list[] = {
- {"prims-emitted", PIPE_QUERY_PRIMITIVES_EMITTED, { 0 }},
- {"draw-calls", ETNA_QUERY_DRAW_CALLS, { 0 }},
- {"rs-operations", ETNA_QUERY_RS_OPERATIONS, { 0 }},
- };
-
if (!info)
return ARRAY_SIZE(list);
return 1;
}
+
+int
+etna_sw_get_driver_query_group_info(struct pipe_screen *pscreen,
+ unsigned index,
+ struct pipe_driver_query_group_info *info)
+{
+ if (!info)
+ return ARRAY_SIZE(list);
+
+ if (index != 0)
+ return 0;
+
+ info->name = "driver";
+ info->max_active_queries = ARRAY_SIZE(list);
+ info->num_queries = ARRAY_SIZE(list);
+
+ return 1;
+}
etna_sw_get_driver_query_info(struct pipe_screen *pscreen, unsigned index,
struct pipe_driver_query_info *info);
+int
+etna_sw_get_driver_query_group_info(struct pipe_screen *pscreen,
+ unsigned index,
+ struct pipe_driver_query_group_info *info);
+
#endif