panvk: silence a perfetto init warning

Kernel drivers gained timestamp support in 6.13.  CI might be on an
older kernel, but on a build with perfetto enabled.  Silence the
warning.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32728>
This commit is contained in:
Chia-I Wu 2024-12-19 09:06:43 -08:00 committed by Marge Bot
parent 419879ee62
commit 0204baaa8b

View file

@ -274,10 +274,8 @@ panvk_utrace_perfetto_init(struct panvk_device *dev, uint32_t queue_count)
/* check for timestamp support */
if (!props->gpu_can_query_timestamp || !props->timestamp_frequency ||
!get_gpu_time_ns(dev)) {
mesa_logw("disable perfetto because gpu timestamp is missing");
!get_gpu_time_ns(dev))
return;
}
utp->gpu_clock_id = get_gpu_clock_id();
utp->device_id = (uintptr_t)dev;