[PATCH xf86-video-amdgpu 04/11] glamor: Remove unused function radeon_glamor_pixmap_is_offscreen

Michel Dänzer michel at daenzer.net
Wed Jun 10 02:04:19 PDT 2015


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

(cherry picked from radeon commit 2fa021f77372ca93375a3d13a0c43a9089674899)

Signed-off-by: Darren Powell <darren.powell at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_glamor.c | 6 ------
 src/amdgpu_glamor.h | 2 --
 2 files changed, 8 deletions(-)

diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c
index 79b3d01..296115e 100644
--- a/src/amdgpu_glamor.c
+++ b/src/amdgpu_glamor.c
@@ -144,12 +144,6 @@ amdgpu_glamor_create_textured_pixmap(PixmapPtr pixmap, struct amdgpu_pixmap *pri
 						 priv->stride);
 }
 
-Bool amdgpu_glamor_pixmap_is_offscreen(PixmapPtr pixmap)
-{
-	struct amdgpu_pixmap *priv = amdgpu_get_pixmap_private(pixmap);
-	return priv && priv->bo;
-}
-
 #ifndef CREATE_PIXMAP_USAGE_SHARED
 #define CREATE_PIXMAP_USAGE_SHARED AMDGPU_CREATE_PIXMAP_DRI2
 #endif
diff --git a/src/amdgpu_glamor.h b/src/amdgpu_glamor.h
index f2414da..7959e9d 100644
--- a/src/amdgpu_glamor.h
+++ b/src/amdgpu_glamor.h
@@ -61,8 +61,6 @@ Bool
 amdgpu_glamor_create_textured_pixmap(PixmapPtr pixmap, struct amdgpu_pixmap *priv);
 void amdgpu_glamor_exchange_buffers(PixmapPtr src, PixmapPtr dst);
 
-Bool amdgpu_glamor_pixmap_is_offscreen(PixmapPtr pixmap);
-
 XF86VideoAdaptorPtr amdgpu_glamor_xv_init(ScreenPtr pScreen, int num_adapt);
 
 #endif /* AMDGPU_GLAMOR_H */
-- 
2.1.4



More information about the xorg-driver-ati mailing list