nvc0: fix exposing of metric-issue_slots for SM21/SM30
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 May 2016 20:12:41 +0000 (22:12 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 May 2016 21:18:50 +0000 (23:18 +0200)
This is most likely a copy-paste error when I reworked this area few
weeks ago. For SM20, metric-issue_slots is equal to inst_issued because
there is only one pipeline, so the metric is not exposed there.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reported-by: Karol Herbst <nouveau@karolherbst.de>
src/gallium/drivers/nouveau/nvc0/nvc0_query_hw_metric.c

index b961cbf652ed6f9c7fa45720c9415d14a72cb4bf..4b291be946c9b8277e4d677de3cdf46fd25b5c5b 100644 (file)
@@ -175,6 +175,17 @@ sm21_issued_ipc =
    .num_queries = 5,
 };
 
+static const struct nvc0_hw_metric_query_cfg
+sm21_issue_slots =
+{
+   .type        = NVC0_HW_METRIC_QUERY_ISSUE_SLOTS,
+   .queries[0]  = _SM(INST_ISSUED1_0),
+   .queries[1]  = _SM(INST_ISSUED1_1),
+   .queries[2]  = _SM(INST_ISSUED2_0),
+   .queries[3]  = _SM(INST_ISSUED2_1),
+   .num_queries = 4,
+};
+
 static const struct nvc0_hw_metric_query_cfg
 sm21_issue_slot_utilization =
 {
@@ -195,7 +206,7 @@ static const struct nvc0_hw_metric_query_cfg *sm21_hw_metric_queries[] =
    &sm20_inst_per_wrap,
    &sm21_inst_replay_overhead,
    &sm21_issued_ipc,
-   &sm21_inst_issued,
+   &sm21_issue_slots,
    &sm21_issue_slot_utilization,
    &sm20_ipc,
 };
@@ -257,6 +268,15 @@ sm30_issued_ipc =
    .num_queries = 3,
 };
 
+static const struct nvc0_hw_metric_query_cfg
+sm30_issue_slots =
+{
+   .type        = NVC0_HW_METRIC_QUERY_ISSUE_SLOTS,
+   .queries[0]  = _SM(INST_ISSUED1),
+   .queries[1]  = _SM(INST_ISSUED2),
+   .num_queries = 2,
+};
+
 static const struct nvc0_hw_metric_query_cfg
 sm30_issue_slot_utilization =
 {
@@ -294,7 +314,7 @@ static const struct nvc0_hw_metric_query_cfg *sm30_hw_metric_queries[] =
    &sm30_inst_per_wrap,
    &sm30_inst_replay_overhead,
    &sm30_issued_ipc,
-   &sm30_inst_issued,
+   &sm30_issue_slots,
    &sm30_issue_slot_utilization,
    &sm30_ipc,
    &sm30_shared_replay_overhead,