nvc0: display some performance metrics with a percentage
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 2 May 2016 20:12:43 +0000 (22:12 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 3 May 2016 21:18:50 +0000 (23:18 +0200)
This makes more sense for them.

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

index ed4ab9f74249e596b0069370a08ba04237226b08..0b633973e5d9aa64b807ac6f4be13aee740a17f0 100644 (file)
@@ -30,14 +30,14 @@ struct nvc0_hw_metric_cfg {
    const char *name;
    enum pipe_driver_query_type type;
 } nvc0_hw_metric_queries[] = {
-   _Q(ACHIEVED_OCCUPANCY,        "metric-achieved_occupancy",     UINT64      ),
-   _Q(BRANCH_EFFICIENCY,         "metric-branch_efficiency",      UINT64      ),
+   _Q(ACHIEVED_OCCUPANCY,        "metric-achieved_occupancy",     PERCENTAGE  ),
+   _Q(BRANCH_EFFICIENCY,         "metric-branch_efficiency",      PERCENTAGE  ),
    _Q(INST_ISSUED,               "metric-inst_issued",            UINT64      ),
    _Q(INST_PER_WRAP,             "metric-inst_per_wrap",          UINT64      ),
    _Q(INST_REPLAY_OVERHEAD,      "metric-inst_replay_overhead",   UINT64      ),
    _Q(ISSUED_IPC,                "metric-issued_ipc",             UINT64      ),
    _Q(ISSUE_SLOTS,               "metric-issue_slots",            UINT64      ),
-   _Q(ISSUE_SLOT_UTILIZATION,    "metric-issue_slot_utilization", UINT64      ),
+   _Q(ISSUE_SLOT_UTILIZATION,    "metric-issue_slot_utilization", PERCENTAGE  ),
    _Q(IPC,                       "metric-ipc",                    UINT64      ),
    _Q(SHARED_REPLAY_OVERHEAD,    "metric-shared_replay_overhead", UINT64      ),
 };