From e9e83b48f837513146e765334820b6fb7b181bb4 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Mon, 4 May 2026 06:52:03 -0700 Subject: [PATCH] freedreno: Skip BV perfcntrs Not useful unless we expose concurrent binning. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/freedreno_query.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/freedreno/freedreno_query.c b/src/gallium/drivers/freedreno/freedreno_query.c index 2a41ddea8d0..5982fe87252 100644 --- a/src/gallium/drivers/freedreno/freedreno_query.c +++ b/src/gallium/drivers/freedreno/freedreno_query.c @@ -184,8 +184,12 @@ setup_perfcntr_query_info(struct fd_screen *screen) { unsigned num_queries = 0; - for (unsigned i = 0; i < screen->num_perfcntr_groups; i++) - num_queries += screen->perfcntr_groups[i].num_countables; + for (unsigned i = 0; i < screen->num_perfcntr_groups; i++) { + const struct fd_perfcntr_group *g = &screen->perfcntr_groups[i]; + if (g->pipe > PIPE_BR) + continue; + num_queries += g->num_countables; + } screen->perfcntr_queries = calloc(num_queries, sizeof(screen->perfcntr_queries[0])); @@ -194,6 +198,8 @@ setup_perfcntr_query_info(struct fd_screen *screen) unsigned idx = 0; for (unsigned i = 0; i < screen->num_perfcntr_groups; i++) { const struct fd_perfcntr_group *g = &screen->perfcntr_groups[i]; + if (g->pipe > PIPE_BR) + continue; for (unsigned j = 0; j < g->num_countables; j++) { struct pipe_driver_query_info *info = &screen->perfcntr_queries[idx]; const struct fd_perfcntr_countable *c = &g->countables[j];