From 851c6598bd1262fa3debd1ed2c7337ad2ca75fc2 Mon Sep 17 00:00:00 2001 From: Yusuf Khan Date: Wed, 19 Oct 2022 04:14:15 -0500 Subject: [PATCH] nouveau: get timestamp from os_time_get_nano instead of os_time_get Signed-off-by: Yusuf Khan Reviewed-by: Karol Herbst Acked-by: Yonggang Luo Part-of: --- src/gallium/drivers/nouveau/nouveau_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c index b055115992c..96206eb93f8 100644 --- a/src/gallium/drivers/nouveau/nouveau_screen.c +++ b/src/gallium/drivers/nouveau/nouveau_screen.c @@ -59,7 +59,7 @@ nouveau_screen_get_device_vendor(struct pipe_screen *pscreen) static uint64_t nouveau_screen_get_timestamp(struct pipe_screen *pscreen) { - int64_t cpu_time = os_time_get() * 1000; + int64_t cpu_time = os_time_get_nano(); /* getparam of PTIMER_TIME takes about x10 as long (several usecs) */