summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied at linux.ie>2005-09-12 09:27:07 +0000
committerDave Airlie <airlied at linux.ie>2005-09-12 09:27:07 +0000
commite447137b60a67a72a4d35e9ac150a146e3b22e6d (patch)
tree5b9346e1c0f63d513114e859c2b4aeec07da500b
parent7e6c3e5cd8dd6ec563c16525a1c7d75b50e07ffc (diff)
Fix Radeon EXA for when RENDER isn't defined
-rw-r--r--src/radeon_exa.c4
-rw-r--r--src/radeon_exa_funcs.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c
index 632faaf..3224b9a 100644
--- a/src/radeon_exa.c
+++ b/src/radeon_exa.c
@@ -29,6 +29,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "radeon.h"
#include "radeon_reg.h"
#include "radeon_dri.h"
diff --git a/src/radeon_exa_funcs.c b/src/radeon_exa_funcs.c
index b601283..545202d 100644
--- a/src/radeon_exa_funcs.c
+++ b/src/radeon_exa_funcs.c
@@ -369,6 +369,7 @@ Bool FUNC_NAME(RADEONDrawInit)(ScreenPtr pScreen)
info->exa.card.maxX = 2047;
info->exa.card.maxY = 2047;
+#ifdef RENDER
if (info->RenderAccel) {
if (info->ChipFamily >= CHIP_FAMILY_R300) {
xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Render acceleration "
@@ -394,6 +395,7 @@ Bool FUNC_NAME(RADEONDrawInit)(ScreenPtr pScreen)
info->exa.accel.DoneComposite = RadeonDoneComposite;
}
}
+#endif
RADEONEngineInit(pScrn);