mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
freedreno: get timestamp from os_time_get_nano instead of os_time_get
Signed-off-by: António Monteiro <antonio.fmr.monteiro@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19260>
This commit is contained in:
parent
851c6598bd
commit
fdbb005984
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ fd_screen_get_timestamp(struct pipe_screen *pscreen)
|
|||
assert(screen->max_freq > 0);
|
||||
return n * 1000000000 / screen->max_freq;
|
||||
} else {
|
||||
int64_t cpu_time = os_time_get() * 1000;
|
||||
int64_t cpu_time = os_time_get_nano();
|
||||
return cpu_time + screen->cpu_gpu_time_delta;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue