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 <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5461>
This commit is contained in:
@@ -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 ||
|
||||
|
Reference in New Issue
Block a user