lima: drop unused lima_get_absolute_timeout()
If someone wants that functionality in the future, use `os_time_get_absolute_timeout()` instead. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26229>
This commit is contained in:
parent
9c62aee027
commit
99fed1f9b3
2 changed files with 0 additions and 20 deletions
|
|
@ -40,24 +40,6 @@ struct lima_dump {
|
|||
int id;
|
||||
};
|
||||
|
||||
bool lima_get_absolute_timeout(uint64_t *timeout)
|
||||
{
|
||||
struct timespec current;
|
||||
uint64_t current_ns;
|
||||
|
||||
if (*timeout == OS_TIMEOUT_INFINITE)
|
||||
return true;
|
||||
|
||||
if (clock_gettime(CLOCK_MONOTONIC, ¤t))
|
||||
return false;
|
||||
|
||||
current_ns = ((uint64_t)current.tv_sec) * 1000000000ull;
|
||||
current_ns += current.tv_nsec;
|
||||
*timeout += current_ns;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
lima_dump_blob(FILE *fp, void *data, int size, bool is_float)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
|
||||
struct lima_dump;
|
||||
|
||||
bool lima_get_absolute_timeout(uint64_t *timeout);
|
||||
|
||||
struct lima_dump *lima_dump_create(void);
|
||||
struct lima_dump *lima_dump_next(struct lima_dump *dump);
|
||||
void lima_dump_free(struct lima_dump *dump);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue