mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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:
committed by
Michel Dänzer
parent
0af88ed18a
commit
8cd5aa76c7
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user