etnaviv: support SE performance counters
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 25 Mar 2018 20:30:01 +0000 (22:30 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 8 Apr 2018 20:20:50 +0000 (22:20 +0200)
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: Chris Healy <cphealy@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_query_pm.c
src/gallium/drivers/etnaviv/etnaviv_query_pm.h

index 8e83eb185cc82e043e4ab7b72bf149f7ff15849f..759e3a5d09fc1a75aca179718ccb3fa024ac6176 100644 (file)
@@ -213,6 +213,20 @@ static const struct etna_perfmon_config query_config[] = {
       .source = (const struct etna_perfmon_source[]) {
          { "PA", "CULLED_COUNTER" }
       }
+   },
+   {
+      .name = "se-culled-triangle-count",
+      .type = ETNA_QUERY_SE_CULLED_TRIANGLE_COUNT,
+      .source = (const struct etna_perfmon_source[]) {
+         { "SE", "CULLED_TRIANGLE_COUNT" }
+      }
+   },
+   {
+      .name = "se-culled-lines-count",
+      .type = ETNA_QUERY_SE_CULLED_LINES_COUNT,
+      .source = (const struct etna_perfmon_source[]) {
+         { "SE", "CULLED_LINES_COUNT" }
+      }
    }
 };
 
index 00fea71f23b27f0d02a44684151334061c8117a7..d93d12c71825ab49c2cdf85c5bfb69d6db10cefb 100644 (file)
@@ -62,6 +62,9 @@ struct etna_screen;
 #define ETNA_QUERY_PA_TRIVIAL_REJECTED_COUNTER           (ETNA_PM_QUERY_BASE + 23)
 #define ETNA_QUERY_PA_CULLED_COUNTER                     (ETNA_PM_QUERY_BASE + 24)
 
+#define ETNA_QUERY_SE_CULLED_TRIANGLE_COUNT              (ETNA_PM_QUERY_BASE + 25)
+#define ETNA_QUERY_SE_CULLED_LINES_COUNT                 (ETNA_PM_QUERY_BASE + 26)
+
 struct etna_pm_query {
    struct etna_query base;
    struct etna_perfmon_signal *signal;