anv: print out perf permission warning only once
This warning is bothering a number of people and rightfully so. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8955>
This commit is contained in:
@@ -51,9 +51,15 @@ anv_physical_device_init_perf(struct anv_physical_device *device, int fd)
|
|||||||
gen_perf_init_metrics(perf, &device->info, fd, false /* pipeline statistics */);
|
gen_perf_init_metrics(perf, &device->info, fd, false /* pipeline statistics */);
|
||||||
|
|
||||||
if (!perf->n_queries) {
|
if (!perf->n_queries) {
|
||||||
if (perf->platform_supported)
|
if (perf->platform_supported) {
|
||||||
|
static bool warned_once = false;
|
||||||
|
|
||||||
|
if (!warned_once) {
|
||||||
mesa_logw("Performance support disabled, "
|
mesa_logw("Performance support disabled, "
|
||||||
"consider sysctl dev.i915.perf_stream_paranoid=0\n");
|
"consider sysctl dev.i915.perf_stream_paranoid=0\n");
|
||||||
|
warned_once = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user