iris: Do not export iris_bo_wait()

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>
This commit is contained in:
José Roberto de Souza 2022-10-24 13:53:34 -07:00 committed by Marge Bot
parent 144ccc31d7
commit 09c4ed4f2c
2 changed files with 11 additions and 13 deletions

View 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)
{

View 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);