summaryrefslogtreecommitdiff
path: root/src/amdgpu_dri2.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_dri2.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_dri2.c')
-rw-r--r--src/amdgpu_dri2.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
index 27a0c1a..5f978c9 100644
--- a/src/amdgpu_dri2.c
+++ b/src/amdgpu_dri2.c
@@ -98,15 +98,6 @@ amdgpu_get_flink_name(AMDGPUEntPtr pAMDGPUEnt, PixmapPtr pixmap, uint32_t *name)
return TRUE;
}
-static PixmapPtr get_drawable_pixmap(DrawablePtr drawable)
-{
- if (drawable->type == DRAWABLE_PIXMAP)
- return (PixmapPtr) drawable;
- else
- return (*drawable->pScreen->
- GetWindowPixmap) ((WindowPtr) drawable);
-}
-
static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap)
{
PixmapPtr old = get_drawable_pixmap(drawable);