rusticl/api: Implement get_{device_and_}host_timer
authorDr. David Alan Gilbert <dave@treblig.org>
Wed, 14 Jun 2023 00:31:29 +0000 (01:31 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Jun 2023 10:00:47 +0000 (10:00 +0000)
commit1bb523111b839628c623f81a46eaae56d24dc3a9
tree0cebd6808d0824d91895af954a9caa4c2fdf11ff
parent2a41b1869f142d871a1e60e3171aa5f19106b422
rusticl/api: Implement get_{device_and_}host_timer

Use the get_timestamp as both the device_timestamp in
get_device_and_host_timer and host_timestamp in that
and get_host_timer.

Having eliminited most other clock sources, discussions
on previous versions have concluded it's best to use the
same timer as the 'host_timestamp' since the main requirements
are that it must be one that's a time seen by the device and
that it's very closely coupled.

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23639>
src/gallium/frontends/rusticl/api/device.rs