iris: Do not export iris_bo_wait()
authorJosé Roberto de Souza <jose.souza@intel.com>
Mon, 24 Oct 2022 20:53:34 +0000 (13:53 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 28 Oct 2022 20:12:07 +0000 (20:12 +0000)
It has a single user, so no need to export it.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19359>

src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h

index d73010e..2198a17 100644 (file)
@@ -1690,16 +1690,6 @@ iris_bo_map(struct util_debug_callback *dbg,
    return map;
 }
 
-/** Waits for all GPU rendering with the object to have completed. */
-void
-iris_bo_wait_rendering(struct iris_bo *bo)
-{
-   /* We require a kernel recent enough for WAIT_IOCTL support.
-    * See intel_init_bufmgr()
-    */
-   iris_bo_wait(bo, -1);
-}
-
 static int
 iris_bo_wait_gem(struct iris_bo *bo, int64_t timeout_ns)
 {
@@ -1745,7 +1735,7 @@ iris_bo_wait_gem(struct iris_bo *bo, int64_t timeout_ns)
  * Note that some kernels have broken the infinite wait for negative values
  * promise, upgrade to latest stable kernels if this is the case.
  */
-int
+static inline int
 iris_bo_wait(struct iris_bo *bo, int64_t timeout_ns)
 {
    int ret;
@@ -1760,6 +1750,16 @@ iris_bo_wait(struct iris_bo *bo, int64_t timeout_ns)
    return ret;
 }
 
+/** Waits for all GPU rendering with the object to have completed. */
+void
+iris_bo_wait_rendering(struct iris_bo *bo)
+{
+   /* We require a kernel recent enough for WAIT_IOCTL support.
+    * See intel_init_bufmgr()
+    */
+   iris_bo_wait(bo, -1);
+}
+
 static void
 iris_bufmgr_destroy(struct iris_bufmgr *bufmgr)
 {
index 8e7fd15..01cf854 100644 (file)
@@ -495,8 +495,6 @@ struct iris_bo *iris_bo_gem_create_from_name(struct iris_bufmgr *bufmgr,
 
 void* iris_bufmgr_get_aux_map_context(struct iris_bufmgr *bufmgr);
 
-int iris_bo_wait(struct iris_bo *bo, int64_t timeout_ns);
-
 uint32_t iris_create_hw_context(struct iris_bufmgr *bufmgr, bool protected);
 uint32_t iris_clone_hw_context(struct iris_bufmgr *bufmgr, uint32_t ctx_id);
 int iris_kernel_context_get_priority(struct iris_bufmgr *bufmgr, uint32_t ctx_id);