[PATCH 2/2] radeon: move radeon_pixmap forward declaration into other block
Dave Airlie
airlied at gmail.com
Sun Jul 26 16:23:53 PDT 2015
From: Dave Airlie <airlied at redhat.com>
There is already a radeon_pixmap forward decl here, the #else
block is missing one.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/radeon_glamor.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/radeon_glamor.h b/src/radeon_glamor.h
index 1ba7049..c77466e 100644
--- a/src/radeon_glamor.h
+++ b/src/radeon_glamor.h
@@ -61,8 +61,6 @@ struct radeon_pixmap;
#define GLAMOR_USE_PICTURE_SCREEN 0
#endif
-struct radeon_pixmap;
-
Bool radeon_glamor_pre_init(ScrnInfoPtr scrn);
Bool radeon_glamor_init(ScreenPtr screen);
void radeon_glamor_screen_init(ScreenPtr screen);
@@ -76,6 +74,8 @@ XF86VideoAdaptorPtr radeon_glamor_xv_init(ScreenPtr pScreen, int num_adapt);
#else
+struct radeon_pixmap;
+
static inline Bool radeon_glamor_pre_init(ScrnInfoPtr scrn) { return FALSE; }
static inline Bool radeon_glamor_init(ScreenPtr screen) { return FALSE; }
static inline Bool radeon_glamor_create_screen_resources(ScreenPtr screen) { return FALSE; }
--
2.4.3
More information about the xorg-driver-ati
mailing list