mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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:
parent
1d41dd42df
commit
851c6598bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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) */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue