From 040ffee71f7e5ea70dfda1a35749f2be3c8b751b Mon Sep 17 00:00:00 2001 From: Joel Linn Date: Wed, 18 Nov 2020 00:41:10 +0100 Subject: [PATCH] freedreno/a2xx: fix/add RBBM perfcounter Xenos driver read two perf counters and their order is also different. v2: fix typo in register address Part-of: --- src/freedreno/perfcntrs/fd2_perfcntr.c | 1 + src/freedreno/registers/adreno/a2xx.xml | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/freedreno/perfcntrs/fd2_perfcntr.c b/src/freedreno/perfcntrs/fd2_perfcntr.c index a0f1ef8b3c0..5231ddb0902 100644 --- a/src/freedreno/perfcntrs/fd2_perfcntr.c +++ b/src/freedreno/perfcntrs/fd2_perfcntr.c @@ -947,6 +947,7 @@ static const struct fd_perfcntr_counter mh_counters[] = { }; static const struct fd_perfcntr_counter rbbm_counters[] = { + COUNTER(RBBM_PERFCOUNTER0_SELECT, RBBM_PERFCOUNTER0_LO, RBBM_PERFCOUNTER0_HI), COUNTER(RBBM_PERFCOUNTER1_SELECT, RBBM_PERFCOUNTER1_LO, RBBM_PERFCOUNTER1_HI), }; diff --git a/src/freedreno/registers/adreno/a2xx.xml b/src/freedreno/registers/adreno/a2xx.xml index 8e7f778f56e..b6ea7cd43a6 100644 --- a/src/freedreno/registers/adreno/a2xx.xml +++ b/src/freedreno/registers/adreno/a2xx.xml @@ -1075,9 +1075,12 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd"> - - - + + + + + +