summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikulas Patocka <mikulas@twibright.com>2018-02-13 01:43:13 +0100
committerMatt Turner <mattst88@gmail.com>2018-02-20 09:36:47 -0800
commit31544d805f99da54d5d3c658ccc137813dbde52b (patch)
treeed0e878e1fa2547e227e00118a333faaf80239e1
parent97c801e49251ffedf0eebd0563c737318433f114 (diff)
mga_drv: use exa by default
If the Xserver doesn't support XAA, we must turn EXA on by default - otherwise we end up with no acceleration at all. Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Mikulas Patocka <mikulas@twibright.com>
-rw-r--r--src/mga_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 0699ac1..636e985 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -1971,6 +1971,9 @@ MGAPreInit(ScrnInfoPtr pScrn, int flags)
pMga->NoAccel = FALSE;
pMga->Exa = FALSE;
#ifdef USE_EXA
+#ifndef HAVE_XAA_H
+ pMga->Exa = TRUE;
+#endif
if (!xf86NameCmp(s, "EXA")) {
pMga->Exa = TRUE;
from = X_CONFIG;