[PATCH 12/18] Move UXA hardware initialization into intel_uxa_init

Keith Packard keithp at keithp.com
Sat Aug 16 23:13:15 PDT 2014


Pull this uxa-specific step out of I830ScreenInit

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 src/uxa/intel_driver.c | 5 -----
 src/uxa/intel_uxa.c    | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
index 8ee3fad..a8bd9ef 100644
--- a/src/uxa/intel_driver.c
+++ b/src/uxa/intel_driver.c
@@ -894,11 +894,6 @@ I830ScreenInit(SCREEN_INIT_ARGS_DECL)
 	if (!intel_init_initial_framebuffer(scrn))
 		return FALSE;
 
-	intel_batch_init(scrn);
-
-	if (INTEL_INFO(intel)->gen >= 040 && INTEL_INFO(intel)->gen < 0100)
-		gen4_render_state_init(scrn);
-
 	miClearVisualTypes();
 	if (!miSetVisualTypes(scrn->depth,
 			      miGetDefaultVisualMask(scrn->depth),
diff --git a/src/uxa/intel_uxa.c b/src/uxa/intel_uxa.c
index 09358f3..9ef3b1b 100644
--- a/src/uxa/intel_uxa.c
+++ b/src/uxa/intel_uxa.c
@@ -1326,6 +1326,11 @@ Bool intel_uxa_init(ScreenPtr screen)
 	ScrnInfoPtr scrn = xf86ScreenToScrn(screen);
 	intel_screen_private *intel = intel_get_screen_private(scrn);
 
+	intel_batch_init(scrn);
+
+	if (INTEL_INFO(intel)->gen >= 040 && INTEL_INFO(intel)->gen < 0100)
+		gen4_render_state_init(scrn);
+
 #if HAS_DIXREGISTERPRIVATEKEY
 	if (!dixRegisterPrivateKey(&uxa_pixmap_index, PRIVATE_PIXMAP, 0))
 #else
-- 
2.0.1



More information about the xorg-devel mailing list