[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    [PATCH] xf86-video-fbdev: Make DGA optional
From:       topi.kanerva () nokia ! com (Topi Kanerva)
Date:       2009-02-26 14:19:47
Message-ID: 1235657987-8145-1-git-send-email-topi.kanerva () nokia ! com
[Download RAW message or body]

We want to avoid referencing the DGA* functions if Xorg doesn't export them.
The semantics of always returning TRUE isn't correct but safer than FALSE.


Signed-off-by: Topi Kanerva <topi.kanerva at nokia.com>
---
 src/fbdev.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index 7f1a749..09d01db 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -1247,8 +1247,12 @@ FBDevDGAInit(ScrnInfoPtr pScrn, ScreenPtr pScreen)
     if (!fPtr->nDGAMode)
 	FBDevDGAAddModes(pScrn);
 
+#ifdef XFreeXDGA
     return (DGAInit(pScreen, &FBDevDGAFunctions,
 	    fPtr->pDGAMode, fPtr->nDGAMode));
+#else
+    return TRUE;
+#endif
 }
 
 static Bool
-- 
1.6.1.3


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic