summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-15 15:48:00 -0700
committerKeith Packard <keithp@keithp.com>2009-09-15 15:48:00 -0700
commitda510caffc6c69c398669eafeb3cbb12f5c27938 (patch)
tree200dd6bb6b7aaa0318ac695e0a9940aec3b0df3e
parent55e17ecbaddde95cded5cd99ab3fb7e304a05072 (diff)
downloadxorg-driver-xf86-video-intel-2.4.tar.gz
Initialize gen4 render code under XAA too2.4
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 <keithp@keithp.com>
-rw-r--r--src/i830_driver.c4
1 files 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)) {