[PATCH xf86-video-r128 7/8] Move the location xf86CrtcConfigInit is called inside R128PreInit

Kevin Brace kevinbrace at gmx.com
Tue Jun 5 00:45:20 UTC 2018


Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/r128_driver.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/r128_driver.c b/src/r128_driver.c
index dd3521c..0b30b83 100644
--- a/src/r128_driver.c
+++ b/src/r128_driver.c
@@ -1278,9 +1278,6 @@ Bool R128PreInit(ScrnInfoPtr pScrn, int flags)
     pScrn->racMemFlags  = RAC_FB | RAC_COLORMAP | RAC_VIEWPORT | RAC_CURSOR;
 #endif
 
-    /* Allocate an xf86CrtcConfig */
-    xf86CrtcConfigInit(pScrn, &R128CRTCResizeFuncs);
-
     info->fifo_slots  = 0;
     info->pix24bpp    = xf86GetBppFromDepth(pScrn, pScrn->depth);
     info->CurrentLayout.bitsPerPixel = pScrn->bitsPerPixel;
@@ -1360,6 +1357,9 @@ Bool R128PreInit(ScrnInfoPtr pScrn, int flags)
 		   "Using framebuffer device\n");
     }
 
+    /* Allocate an xf86CrtcConfig */
+    xf86CrtcConfigInit(pScrn, &R128CRTCResizeFuncs);
+
     if (info->FBDev) {
 	/* check for linux framebuffer device */
 	if (!xf86LoadSubModule(pScrn, "fbdevhw")) return FALSE;
-- 
2.7.4



More information about the xorg-driver-ati mailing list