[Spice-devel] [RFCv2 11/21] xspice: don't load ramdac and vgahw sub modules

Alon Levy alevy at redhat.com
Fri Apr 29 02:49:49 PDT 2011


---
 src/qxl_driver.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 548bc15..3834d3a 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1341,9 +1341,12 @@ qxl_pre_init(ScrnInfoPtr pScrn, int flags)
     xf86PrintModes(pScrn);
     xf86SetDpi(pScrn, 0, 0);
     
-    if (!xf86LoadSubModule(pScrn, "fb") ||
-	!xf86LoadSubModule(pScrn, "ramdac") ||
-	!xf86LoadSubModule(pScrn, "vgahw"))
+    if (!xf86LoadSubModule(pScrn, "fb")
+#ifndef XSPICE
+	|| !xf86LoadSubModule(pScrn, "ramdac")
+	|| !xf86LoadSubModule(pScrn, "vgahw")
+#endif
+    )
     {
 	goto out;
     }
-- 
1.7.4.4



More information about the Spice-devel mailing list