summaryrefslogtreecommitdiff
path: root/src/radeon_accel.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-07-16 04:38:54 +0000
committerEric Anholt <anholt@freebsd.org>2004-07-16 04:38:54 +0000
commit57de5e285d6271fc4b2bc8a951a98be6308d649d (patch)
tree3653c2871cc03c63e6c9c588e1159c3cf9205bba /src/radeon_accel.c
parent9b0ec803bd588d9af778bfd307ee6d958e4a1e73 (diff)
Bugzilla #803,804: Fix build in the !XF86DRI case after DRI and Radeon
Render acceleration merges.
Diffstat (limited to 'src/radeon_accel.c')
-rw-r--r--src/radeon_accel.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/radeon_accel.c b/src/radeon_accel.c
index b4c44ed3..6bebd6c1 100644
--- a/src/radeon_accel.c
+++ b/src/radeon_accel.c
@@ -322,8 +322,14 @@ void RADEONEngineRestore(ScrnInfoPtr pScrn)
/* In the DRI case, it's initialized when the server grabs the lock. We
* don't hold the lock here, so don't do it in that case.
*/
- if (!info->directRenderingEnabled && info->RenderAccel)
- RADEONInit3DEngineForRender(pScrn);
+#ifdef XF86DRI
+ if (!info->directRenderingEnabled) {
+#endif
+ if (info->RenderAccel)
+ RADEONInit3DEngineForRender(pScrn);
+#ifdef XF86DRI
+ }
+#endif
#endif
RADEONWaitForIdleMMIO(pScrn);