summaryrefslogtreecommitdiff
path: root/src/amdgpu_glamor_wrappers.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-06-08 16:39:10 +0900
committerMichel Dänzer <michel@daenzer.net>2016-06-14 18:24:49 +0900
commit641f4647b7f51dfd2da330376cd10fa9702b6423 (patch)
treecfda43d2821bde02d158e8824260f8fddb9c8f3c /src/amdgpu_glamor_wrappers.c
parent8e40f190e4704c2802bf0f073f17e742786d0f18 (diff)
Consolidate get_drawable_pixmap helper
There were two static helpers for the same purpose. Consolidate them into a single inline helper which can be used anywhere. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Tested-by: Qiang Yu <qiang.yu@amd.com>
Diffstat (limited to 'src/amdgpu_glamor_wrappers.c')
-rw-r--r--src/amdgpu_glamor_wrappers.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/amdgpu_glamor_wrappers.c b/src/amdgpu_glamor_wrappers.c
index 35b6d7e..81b212d 100644
--- a/src/amdgpu_glamor_wrappers.c
+++ b/src/amdgpu_glamor_wrappers.c
@@ -39,24 +39,6 @@
#include "amdgpu_pixmap.h"
-/**
- * get_drawable_pixmap() returns the backing pixmap for a given drawable.
- *
- * @param pDrawable the drawable being requested.
- *
- * This function returns the backing pixmap for a drawable, whether it is a
- * redirected window, unredirected window, or already a pixmap.
- */
-static PixmapPtr
-get_drawable_pixmap(DrawablePtr pDrawable)
-{
- if (pDrawable->type == DRAWABLE_WINDOW)
- return pDrawable->pScreen->
- GetWindowPixmap((WindowPtr) pDrawable);
- else
- return (PixmapPtr) pDrawable;
-}
-
/* Are there any outstanding GPU operations for this pixmap? */
static Bool
amdgpu_glamor_gpu_pending(uint_fast32_t gpu_synced, uint_fast32_t gpu_access)