summaryrefslogtreecommitdiff
path: root/src/amdgpu_bo_helper.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-06-10 12:04:29 +0900
committerMichel Dänzer <michel@daenzer.net>2015-06-15 17:22:01 +0900
commit59bdb578266a2637fda8d11168b9332f6845157c (patch)
treea83075994724fe15c0a12198e903cbcca42d2068 /src/amdgpu_bo_helper.h
parent9a6eff506b6804481a6e8139d362355fc5ffdbfb (diff)
Factor out amdgpu_bo_get_handle helper
The helper transparently handles BOs allocated from GBM and libdrm_amdgpu. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_bo_helper.h')
-rw-r--r--src/amdgpu_bo_helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amdgpu_bo_helper.h b/src/amdgpu_bo_helper.h
index 8270d39..4dae200 100644
--- a/src/amdgpu_bo_helper.h
+++ b/src/amdgpu_bo_helper.h
@@ -29,6 +29,8 @@ extern struct amdgpu_buffer *amdgpu_alloc_pixmap_bo(ScrnInfoPtr pScrn, int width
int height, int depth, int usage_hint,
int bitsPerPixel, int *new_pitch);
+extern Bool amdgpu_bo_get_handle(struct amdgpu_buffer *bo, uint32_t *handle);
+
extern int amdgpu_bo_map(ScrnInfoPtr pScrn, struct amdgpu_buffer *bo);
extern void amdgpu_bo_unmap(struct amdgpu_buffer *bo);