nouveau: get timestamp from os_time_get_nano instead of os_time_get
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com> Reviewed-by: Karol Herbst <kherbst@redhat.com> Acked-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19249>
This commit is contained in:
@@ -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) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user