Remove amdgpu_share_pixmap_backing

Not used anymore.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Tested-by: Qiang Yu <qiang.yu@amd.com>
(Cherry picked from commit e7eeb6ad11)
This commit is contained in:
Michel Dänzer
2016-09-14 16:43:10 +09:00
committed by Michel Dänzer
parent 0af88ed18a
commit 8cd5aa76c7
2 changed files with 0 additions and 17 deletions

View File

@@ -345,21 +345,6 @@ struct amdgpu_buffer *amdgpu_gem_bo_open_prime(amdgpu_device_handle pDev,
#ifdef AMDGPU_PIXMAP_SHARING
Bool amdgpu_share_pixmap_backing(struct amdgpu_buffer *bo, void **handle_p)
{
int handle;
if (bo->flags & AMDGPU_BO_FLAGS_GBM)
handle = gbm_bo_get_fd(bo->bo.gbm);
else
amdgpu_bo_export(bo->bo.amdgpu,
amdgpu_bo_handle_type_dma_buf_fd,
(uint32_t *)&handle);
*handle_p = (void *)(long)handle;
return TRUE;
}
Bool amdgpu_set_shared_pixmap_backing(PixmapPtr ppix, void *fd_handle)
{
ScrnInfoPtr pScrn = xf86ScreenToScrn(ppix->drawable.pScreen);

View File

@@ -37,8 +37,6 @@ extern int amdgpu_bo_map(ScrnInfoPtr pScrn, struct amdgpu_buffer *bo);
extern void amdgpu_bo_unmap(struct amdgpu_buffer *bo);
extern Bool amdgpu_share_pixmap_backing(struct amdgpu_buffer *bo, void **handle_p);
extern Bool
amdgpu_set_shared_pixmap_backing(PixmapPtr ppix, void *fd_handle);