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:
António Monteiro 2022-10-23 17:01:00 +01:00
parent 851c6598bd
commit fdbb005984

View file

@ -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;
}
}