summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-07-30 15:58:54 +0900
committerMichel Dänzer <michel@daenzer.net>2015-07-30 19:03:44 +0900
commit09c7cdb923965f9a1ea11d2f449bc02114408938 (patch)
tree32b6a64eb7f9f4efbe3a7832b9b6c2576f440b47 /src/radeon_glamor.h
parent936582fde0db461c5c3d78ce4f5f4c93a88a489d (diff)
glamor: Move declaration of struct radeon_pixmap out of #if/#else blocks
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_glamor.h')
-rw-r--r--src/radeon_glamor.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/radeon_glamor.h b/src/radeon_glamor.h
index c77466ed..246336b1 100644
--- a/src/radeon_glamor.h
+++ b/src/radeon_glamor.h
@@ -28,6 +28,9 @@
#define RADEON_GLAMOR_H
#include "xf86xv.h"
+
+struct radeon_pixmap;
+
#ifdef USE_GLAMOR
#define GLAMOR_FOR_XORG 1
@@ -43,8 +46,6 @@
(((usage) & ~RADEON_CREATE_PIXMAP_TILING_FLAGS) == RADEON_CREATE_PIXMAP_DRI2 || \
(usage) == CREATE_PIXMAP_USAGE_SHARED)
-struct radeon_pixmap;
-
#ifndef GLAMOR_NO_DRI3
#define GLAMOR_NO_DRI3 0
#define glamor_fd_from_pixmap glamor_dri3_fd_from_pixmap
@@ -74,8 +75,6 @@ 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; }