Module: Mesa Branch: main Commit: 851c6598bd1262fa3debd1ed2c7337ad2ca75fc2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=851c6598bd1262fa3debd1ed2c7337ad2ca75fc2
Author: Yusuf Khan <[email protected]> Date: Wed Oct 19 04:14:15 2022 -0500 nouveau: get timestamp from os_time_get_nano instead of os_time_get Signed-off-by: Yusuf Khan <[email protected]> Reviewed-by: Karol Herbst <[email protected]> Acked-by: Yonggang Luo <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19249> --- 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) */
