anv: disable i915_perf warning on non-Linux
authorJan Beich <jbeich@FreeBSD.org>
Thu, 21 May 2020 01:55:11 +0000 (01:55 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 30 Jun 2020 21:05:52 +0000 (21:05 +0000)
$ vkcube
INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5461>

src/intel/perf/gen_perf.c

index 6fd66a1d2dd3dc1bbe2777424c2977d1ad1428e8..24fee821474471478ac6e6f0080fe1e68f10d1aa 100644 (file)
@@ -678,9 +678,9 @@ load_oa_metrics(struct gen_perf_config *perf, int fd,
          if (paranoid == 0 || geteuid() == 0)
             i915_perf_oa_available = true;
       }
-   }
 
-   perf->platform_supported = oa_register != NULL;
+      perf->platform_supported = oa_register != NULL;
+   }
 
    if (!i915_perf_oa_available ||
        !oa_register ||