From: Marek Olšák Date: Thu, 18 Jun 2020 04:51:44 +0000 (-0400) Subject: winsys/amdgpu: make amdgpu_bo_unmap non-static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a6af4c5edb314207bb8fd0faab1becd64b2efa0;p=mesa.git winsys/amdgpu: make amdgpu_bo_unmap non-static Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c index e359f1aa41d..ebc4fed0e70 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c @@ -47,8 +47,6 @@ struct amdgpu_sparse_backing_chunk { uint32_t begin, end; }; -static void amdgpu_bo_unmap(struct pb_buffer *buf); - static bool amdgpu_bo_wait(struct pb_buffer *_buf, uint64_t timeout, enum radeon_bo_usage usage) { @@ -400,7 +398,7 @@ void *amdgpu_bo_map(struct pb_buffer *buf, return (uint8_t*)cpu + offset; } -static void amdgpu_bo_unmap(struct pb_buffer *buf) +void amdgpu_bo_unmap(struct pb_buffer *buf) { struct amdgpu_winsys_bo *bo = (struct amdgpu_winsys_bo*)buf; struct amdgpu_winsys_bo *real; diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h index 3228c07d7f8..ace651dff4f 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.h @@ -134,6 +134,7 @@ void amdgpu_bo_destroy(struct pb_buffer *_buf); void *amdgpu_bo_map(struct pb_buffer *buf, struct radeon_cmdbuf *rcs, enum pipe_transfer_usage usage); +void amdgpu_bo_unmap(struct pb_buffer *buf); void amdgpu_bo_init_functions(struct amdgpu_screen_winsys *ws); bool amdgpu_bo_can_reclaim_slab(void *priv, struct pb_slab_entry *entry);