summaryrefslogtreecommitdiff
path: root/src/aticonfig.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2006-08-12 22:12:07 +0300
committerGeorge Sapountzis <gsap7@yahoo.gr>2006-08-12 22:12:07 +0300
commit43aaed99950640c3695b3c2b91faabf00c6338a7 (patch)
tree0735716525b04472bf96c9cd9ffcca09c4e97c70 /src/aticonfig.c
parentd113f40fd97408661193895ff3aa82262f100143 (diff)
[mach64] RENDER support (bug #6877).
RENDER accleration is disabled by default. It is strongly recommended that the patch from bug #6772 and the 'exa-damagetrack branch' are merged in the xserver before enabling RENDER acceleration. To enable RENDER acceleration, add the following in xorg.conf: Section "Device" [...] Option "AccelMethod" "exa" Option "RenderAccel" "true" EndSection
Diffstat (limited to 'src/aticonfig.c')
-rw-r--r--src/aticonfig.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/aticonfig.c b/src/aticonfig.c
index dffabc7..d0a3677 100644
--- a/src/aticonfig.c
+++ b/src/aticonfig.c
@@ -154,6 +154,7 @@ ATIProcessOptions
# define ShadowFB PublicOption[ATI_OPTION_SHADOW_FB].value.bool
# define SWCursor PublicOption[ATI_OPTION_SWCURSOR].value.bool
# define AccelMethod PublicOption[ATI_OPTION_ACCELMETHOD].value.str
+# define RenderAccel PublicOption[ATI_OPTION_RENDER_ACCEL].value.bool
# define LCDSync PrivateOption[ATI_OPTION_LCDSYNC].value.bool
# define ReferenceClock \
@@ -360,6 +361,12 @@ ATIProcessOptions
xf86DrvMsg(pScreenInfo->scrnIndex, from,
"Using %s acceleration architecture\n",
pATI->useEXA ? "EXA" : "XAA");
+
+ pATI->RenderAccelEnabled = FALSE;
+#if defined(USE_EXA)
+ if (pATI->useEXA && RenderAccel)
+ pATI->RenderAccelEnabled = TRUE;
+#endif
}
xfree(PublicOption);