Module: Mesa
Branch: main
Commit: 99fed1f9b3f7a2b66b7d1f1fef59b66dc5e5faec
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=99fed1f9b3f7a2b66b7d1f1fef59b66dc5e5faec

Author: Eric Engestrom <[email protected]>
Date:   Thu Nov 16 15:38:08 2023 +0000

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>

---

 src/gallium/drivers/lima/lima_util.c | 18 ------------------
 src/gallium/drivers/lima/lima_util.h |  2 --
 2 files changed, 20 deletions(-)

diff --git a/src/gallium/drivers/lima/lima_util.c 
b/src/gallium/drivers/lima/lima_util.c
index 4f5df9e3159..c88d8393de2 100644
--- a/src/gallium/drivers/lima/lima_util.c
+++ b/src/gallium/drivers/lima/lima_util.c
@@ -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, &current))
-      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)
 {
diff --git a/src/gallium/drivers/lima/lima_util.h 
b/src/gallium/drivers/lima/lima_util.h
index af3a75ea7fc..56b441ecaa9 100644
--- a/src/gallium/drivers/lima/lima_util.h
+++ b/src/gallium/drivers/lima/lima_util.h
@@ -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);

Reply via email to