summaryrefslogtreecommitdiff
path: root/src/radeon_dri2.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-09-12 18:05:51 +0900
committerMichel Dänzer <michel@daenzer.net>2016-09-14 16:29:53 +0900
commit38632bbd5ff80a9cf8ce584b2bc499d17d15befe (patch)
treef990675092087b6e6d906f7f45cfd2883a0d9ac4 /src/radeon_dri2.c
parente91858e435672c32f9c4a854b3dec048199d6f7f (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. (Ported from amdgpu commit 641f4647b7f51dfd2da330376cd10fa9702b6423) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon_dri2.c')
-rw-r--r--src/radeon_dri2.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index c55e6ee8..069e4462 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -78,15 +78,6 @@ static DevPrivateKeyRec dri2_window_private_key_rec;
dixLookupPrivate(&(window)->devPrivates, dri2_window_private_key))
-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);