summaryrefslogtreecommitdiff
path: root/src/radeon_dri.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-06-20 07:26:08 +0000
committerEric Anholt <anholt@freebsd.org>2004-06-20 07:26:08 +0000
commit8c1b37420ea890f76edb97aed61ee427a871cd3f (patch)
tree91ee9ae38e7fa59acc14d595e4a474ed8393e005 /src/radeon_dri.c
parent6ecf374d500afe6da494dfdd6566396ec65b6d6a (diff)
Bug #748:
- Add Render acceleration for Radeon 100 and 200-series cards, enabled by default. Notable performance gains include 27fps in cairogears instead of 6fps (compared to 50 with glitz), and my disks are now the bottleneck in an ls -lR in gnome-terminal. Only supported in DRI mode because the MMIO submission hangs the card so far, but the code is left in because it may be supportable soon. - Add xorg.conf options to disable Render acceleration and to force the subpixel order in the server (Hui Yu). Many thanks to Hui Yu at ATI for the code this was based off of, Michel Daenzer for bugfixes and suggestions, and LinuxFund for sponsoring the work.
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r--src/radeon_dri.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index 9ecf8074..6414b56c 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -353,6 +353,15 @@ static void RADEONEnterServer(ScreenPtr pScreen)
RADEONInfoPtr info = RADEONPTR(pScrn);
if (info->accel) info->accel->NeedToSync = TRUE;
+#ifdef RENDER
+ if (info->RenderAccel) {
+ RADEONSAREAPrivPtr pSAREAPriv;
+
+ RADEONInit3DEngineForRender(pScrn);
+ pSAREAPriv = DRIGetSAREAPrivate(pScrn->pScreen);
+ pSAREAPriv->ctxOwner = DRIGetContext(pScrn->pScreen);
+ }
+#endif
}
/* Called when the X server goes to sleep to allow the X server's