mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
nvc0: expose SM35 perf counters to AMD_performance_monitor
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
0e511400de
commit
dad3e5f4ef
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue