[PATCH xf86-video-amdgpu 2/6] Remove amdgpu_share_pixmap_backing

Michel Dänzer michel at daenzer.net
Wed Jun 8 08:45:15 UTC 2016


From: Michel Dänzer <michel.daenzer at amd.com>

Not used anymore.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_bo_helper.c | 15 ---------------
 src/amdgpu_bo_helper.h |  2 --
 2 files changed, 17 deletions(-)

diff --git a/src/amdgpu_bo_helper.c b/src/amdgpu_bo_helper.c
index 01b0d87..a566920 100644
--- a/src/amdgpu_bo_helper.c
+++ b/src/amdgpu_bo_helper.c
@@ -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);
diff --git a/src/amdgpu_bo_helper.h b/src/amdgpu_bo_helper.h
index 10e2db7..3e81fca 100644
--- a/src/amdgpu_bo_helper.h
+++ b/src/amdgpu_bo_helper.h
@@ -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);
 
-- 
2.8.1



More information about the xorg-driver-ati mailing list