diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-09-12 18:05:51 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-09-14 16:29:53 +0900 |
commit | 38632bbd5ff80a9cf8ce584b2bc499d17d15befe (patch) | |
tree | f990675092087b6e6d906f7f45cfd2883a0d9ac4 /src/radeon_glamor_wrappers.c | |
parent | e91858e435672c32f9c4a854b3dec048199d6f7f (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_glamor_wrappers.c')
-rw-r--r-- | src/radeon_glamor_wrappers.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/radeon_glamor_wrappers.c b/src/radeon_glamor_wrappers.c index cd02b068..5f165ebe 100644 --- a/src/radeon_glamor_wrappers.c +++ b/src/radeon_glamor_wrappers.c @@ -35,27 +35,10 @@ #ifdef USE_GLAMOR #include "radeon.h" +#include "radeon_bo_helper.h" #include "radeon_glamor.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 radeon_glamor_gpu_pending(uint_fast32_t gpu_synced, uint_fast32_t gpu_access) |