summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>2017-11-24 17:27:09 +0100
committerMichel Dänzer <michel.daenzer@amd.com>2017-11-27 11:13:10 +0100
commitfccfd75ecf9ccfa628a8ff9c1fbb7f60c0f10ea5 (patch)
tree6cd2543d330fa759d16b9c0620d9519d9f2a3cbd /src
parent15350bd5538c21cd4c6b406d565ca765b7e0218a (diff)
Fix non GLAMOR build
Non GLAMOR builds needs pRADEONEnt so move the USE_GLAMOR define down to make pRADEONEnt defined in this case. Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h
index d54e4990..3e04101c 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -712,9 +712,9 @@ uint32_t radeon_get_pixmap_tiling(PixmapPtr pPix);
static inline Bool radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_bo *bo)
{
-#ifdef USE_GLAMOR
ScrnInfoPtr scrn = xf86ScreenToScrn(pPix->drawable.pScreen);
RADEONEntPtr pRADEONEnt = RADEONEntPriv(scrn);
+#ifdef USE_GLAMOR
RADEONInfoPtr info = RADEONPTR(scrn);
if (info->use_glamor) {