From: Jan Beich Date: Thu, 21 May 2020 01:55:11 +0000 (+0000) Subject: anv: disable i915_perf warning on non-Linux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e5b2145068223bbe0b4a8cb1ffb2f26e2fb6527;p=mesa.git anv: disable i915_perf warning on non-Linux $ vkcube INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0 Reviewed-by: Lionel Landwerlin Part-of: --- diff --git a/src/intel/perf/gen_perf.c b/src/intel/perf/gen_perf.c index 6fd66a1d2dd..24fee821474 100644 --- a/src/intel/perf/gen_perf.c +++ b/src/intel/perf/gen_perf.c @@ -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 ||