winsys/amdgpu: make amdgpu_bo_unmap non-static
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5798>
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user