From da510caffc6c69c398669eafeb3cbb12f5c27938 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 15 Sep 2009 15:48:00 -0700 Subject: Initialize gen4 render code under XAA too XAA uses the gen4 render code for RandR transform support and other fairly simple render acceleration. Failing to initialize it would cause a segfault when it was used. Signed-off-by: Keith Packard --- src/i830_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index 0a747c1d..238460b7 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3332,7 +3332,7 @@ I830LeaveVT(int scrnIndex, int flags) } #endif /* XF86DRI_MM */ - if (pI830->useEXA && IS_I965G(pI830)) + if (!pI830->noAccel && IS_I965G(pI830)) gen4_render_state_cleanup(pScrn); if (pI830->AccelInfoRec) @@ -3381,7 +3381,7 @@ I830EnterVT(int scrnIndex, int flags) /* Update the screen pixmap in case the buffer moved */ i830_update_front_offset(pScrn); - if (pI830->useEXA && IS_I965G(pI830)) + if (!pI830->noAccel && IS_I965G(pI830)) gen4_render_state_init(pScrn); if (i830_check_error_state(pScrn)) { -- cgit v1.2.3