diff options
author | Samuel Pitoiset <[email protected]> | 2016-03-09 23:58:09 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2016-03-10 18:20:40 +0100 |
commit | dad3e5f4ef821b935777b44c7a379d84e3c365e3 (patch) | |
tree | 194f2d5a73fc536da72090995100dd5e5ac64d69 /src | |
parent | 0e511400de331253a3281fe848e2073c197ec232 (diff) |
nvc0: expose SM35 perf counters to AMD_performance_monitor
Signed-off-by: Samuel Pitoiset <[email protected]>
Acked-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/nouveau/nvc0/nvc0_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c index 68364328dfa..92ca613cda1 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_query.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_query.c @@ -204,7 +204,7 @@ nvc0_screen_get_driver_query_group_info(struct pipe_screen *pscreen, if (screen->base.drm->version >= 0x01000101) { if (screen->compute) { - if (screen->base.class_3d <= NVE4_3D_CLASS) { + if (screen->base.class_3d <= NVF0_3D_CLASS) { count += 2; } } @@ -230,7 +230,7 @@ nvc0_screen_get_driver_query_group_info(struct pipe_screen *pscreen, } else if (id == NVC0_HW_METRIC_QUERY_GROUP) { if (screen->compute) { - if (screen->base.class_3d <= NVE4_3D_CLASS) { + if (screen->base.class_3d <= NVF0_3D_CLASS) { info->name = "Performance metrics"; info->max_active_queries = 1; info->num_queries = nvc0_hw_metric_get_num_queries(screen); |