From 7a6af4c5edb314207bb8fd0faab1becd64b2efa0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 18 Jun 2020 00:51:44 -0400 Subject: [PATCH] winsys/amdgpu: make amdgpu_bo_unmap non-static Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 4 +--- src/gallium/winsys/amdgpu/drm/amdgpu_bo.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) 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); -- 2.30.2