summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-11-25 18:12:40 +0900
committerMichel Dänzer <michel@daenzer.net>2016-11-25 18:12:40 +0900
commitf130b10e63f7526360b41aa0918b4940f63f662a (patch)
tree95f9019cb768b196711b1b80fec2105aed0182d0 /src/radeon.h
parent487aa62a2a23b86e4ea4714fdfd465c9e513141f (diff)
Add radeon_is_gpu_screen helper
This will hopefully decrease the chance of accidentally breaking the build against xserver < 1.13 in the future. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon.h b/src/radeon.h
index ad7e69cc..8ca8d318 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -182,6 +182,9 @@ typedef enum {
#if XF86_CRTC_VERSION >= 5
#define RADEON_PIXMAP_SHARING 1
+#define radeon_is_gpu_screen(screen) (screen)->isGPU
+#else
+#define radeon_is_gpu_screen(screen) 0
#endif
#define RADEON_VSYNC_TIMEOUT 20000 /* Maximum wait for VSYNC (in usecs) */