mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 14:10:37 +02:00
nvc0: do not duplicate similar performance metrics
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
This commit is contained in:
parent
bc4c09dc99
commit
8bfd65395e
1 changed files with 7 additions and 43 deletions
|
|
@ -256,24 +256,6 @@ static const struct nvc0_hw_metric_query_cfg *sm21_hw_metric_queries[] =
|
|||
};
|
||||
|
||||
/* ==== Compute capability 3.0 (GK104/GK106/GK107) ==== */
|
||||
static const struct nvc0_hw_metric_query_cfg
|
||||
sm30_achieved_occupancy =
|
||||
{
|
||||
.type = NVC0_HW_METRIC_QUERY_ACHIEVED_OCCUPANCY,
|
||||
.queries[0] = _SM(ACTIVE_WARPS),
|
||||
.queries[1] = _SM(ACTIVE_CYCLES),
|
||||
.num_queries = 2,
|
||||
};
|
||||
|
||||
static const struct nvc0_hw_metric_query_cfg
|
||||
sm30_branch_efficiency =
|
||||
{
|
||||
.type = NVC0_HW_METRIC_QUERY_BRANCH_EFFICIENCY,
|
||||
.queries[0] = _SM(BRANCH),
|
||||
.queries[1] = _SM(DIVERGENT_BRANCH),
|
||||
.num_queries = 2,
|
||||
};
|
||||
|
||||
static const struct nvc0_hw_metric_query_cfg
|
||||
sm30_inst_issued =
|
||||
{
|
||||
|
|
@ -283,15 +265,6 @@ sm30_inst_issued =
|
|||
.num_queries = 2,
|
||||
};
|
||||
|
||||
static const struct nvc0_hw_metric_query_cfg
|
||||
sm30_inst_per_wrap =
|
||||
{
|
||||
.type = NVC0_HW_METRIC_QUERY_INST_PER_WRAP,
|
||||
.queries[0] = _SM(INST_EXECUTED),
|
||||
.queries[1] = _SM(WARPS_LAUNCHED),
|
||||
.num_queries = 2,
|
||||
};
|
||||
|
||||
static const struct nvc0_hw_metric_query_cfg
|
||||
sm30_inst_replay_overhead =
|
||||
{
|
||||
|
|
@ -331,15 +304,6 @@ sm30_issue_slot_utilization =
|
|||
.num_queries = 3,
|
||||
};
|
||||
|
||||
static const struct nvc0_hw_metric_query_cfg
|
||||
sm30_ipc =
|
||||
{
|
||||
.type = NVC0_HW_METRIC_QUERY_IPC,
|
||||
.queries[0] = _SM(INST_EXECUTED),
|
||||
.queries[1] = _SM(ACTIVE_CYCLES),
|
||||
.num_queries = 2,
|
||||
};
|
||||
|
||||
static const struct nvc0_hw_metric_query_cfg
|
||||
sm30_shared_replay_overhead =
|
||||
{
|
||||
|
|
@ -352,29 +316,29 @@ sm30_shared_replay_overhead =
|
|||
|
||||
static const struct nvc0_hw_metric_query_cfg *sm30_hw_metric_queries[] =
|
||||
{
|
||||
&sm30_achieved_occupancy,
|
||||
&sm30_branch_efficiency,
|
||||
&sm20_achieved_occupancy,
|
||||
&sm20_branch_efficiency,
|
||||
&sm30_inst_issued,
|
||||
&sm30_inst_per_wrap,
|
||||
&sm20_inst_per_wrap,
|
||||
&sm30_inst_replay_overhead,
|
||||
&sm30_issued_ipc,
|
||||
&sm30_issue_slots,
|
||||
&sm30_issue_slot_utilization,
|
||||
&sm30_ipc,
|
||||
&sm20_ipc,
|
||||
&sm30_shared_replay_overhead,
|
||||
};
|
||||
|
||||
/* ==== Compute capability 3.5 (GK110) ==== */
|
||||
static const struct nvc0_hw_metric_query_cfg *sm35_hw_metric_queries[] =
|
||||
{
|
||||
&sm30_achieved_occupancy,
|
||||
&sm20_achieved_occupancy,
|
||||
&sm30_inst_issued,
|
||||
&sm30_inst_per_wrap,
|
||||
&sm20_inst_per_wrap,
|
||||
&sm30_inst_replay_overhead,
|
||||
&sm30_issued_ipc,
|
||||
&sm30_inst_issued,
|
||||
&sm30_issue_slot_utilization,
|
||||
&sm30_ipc,
|
||||
&sm20_ipc,
|
||||
&sm30_shared_replay_overhead,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue