diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2015-06-10 12:04:29 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2015-06-15 17:22:01 +0900 |
commit | 59bdb578266a2637fda8d11168b9332f6845157c (patch) | |
tree | a83075994724fe15c0a12198e903cbcca42d2068 /src/amdgpu_bo_helper.h | |
parent | 9a6eff506b6804481a6e8139d362355fc5ffdbfb (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.h | 2 |
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); |