mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
pvr: Remove two unused function
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40595>
This commit is contained in:
parent
d067d6e163
commit
76eae60b07
1 changed files with 0 additions and 20 deletions
|
|
@ -101,26 +101,6 @@ static VkResult pvr_srv_sync_reset(struct vk_device *device,
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
/* Careful, timeout might overflow. */
|
||||
static inline void pvr_start_timeout(struct timespec *timeout,
|
||||
uint64_t timeout_ns)
|
||||
{
|
||||
clock_gettime(CLOCK_MONOTONIC, timeout);
|
||||
timespec_add_nsec(timeout, timeout, timeout_ns);
|
||||
}
|
||||
|
||||
/* Careful, a negative value might be returned. */
|
||||
static inline struct timespec
|
||||
pvr_get_remaining_time(const struct timespec *timeout)
|
||||
{
|
||||
struct timespec time;
|
||||
|
||||
clock_gettime(CLOCK_MONOTONIC, &time);
|
||||
timespec_sub(&time, timeout, &time);
|
||||
|
||||
return time;
|
||||
}
|
||||
|
||||
static inline int pvr_get_relative_time_ms(uint64_t abs_timeout_ns)
|
||||
{
|
||||
uint64_t cur_time_ms;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue