nvc0: true up exposing of the HW_METRIC_QUERY_GROUP for maxwell
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 Jan 2017 18:19:04 +0000 (13:19 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 16 Jan 2017 21:04:55 +0000 (16:04 -0500)
This had been updated in one place but not the other.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nvc0/nvc0_query.c

index 8b9e6b69d3ec40a9738c84731f542c5bdffe4620..68e0a63cce1a5606380ac5a4db12cd3b4bd4481c 100644 (file)
@@ -205,7 +205,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 <= NVF0_3D_CLASS) {
+         if (screen->base.class_3d <= GM200_3D_CLASS) {
             count += 2;
          }
       }
@@ -229,7 +229,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 <= NVF0_3D_CLASS) {
+          if (screen->base.class_3d <= GM200_3D_CLASS) {
             info->name = "Performance metrics";
             info->max_active_queries = 4; /* A metric uses at least 2 queries */
             info->num_queries = nvc0_hw_metric_get_num_queries(screen);