summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 5ce9999a..319565a1 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -186,6 +186,15 @@ typedef enum {
#define radeon_is_gpu_scrn(scrn) (scrn)->is_gpu
static inline ScreenPtr
+radeon_master_screen(ScreenPtr screen)
+{
+ if (screen->current_master)
+ return screen->current_master;
+
+ return screen;
+}
+
+static inline ScreenPtr
radeon_dirty_master(PixmapDirtyUpdatePtr dirty)
{
#ifdef HAS_DIRTYTRACKING_DRAWABLE_SRC
@@ -194,10 +203,7 @@ radeon_dirty_master(PixmapDirtyUpdatePtr dirty)
ScreenPtr screen = dirty->src->drawable.pScreen;
#endif
- if (screen->current_master)
- return screen->current_master;
-
- return screen;
+ return radeon_master_screen(screen);
}
static inline Bool