summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_accelfuncs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/radeon_accelfuncs.c b/src/radeon_accelfuncs.c
index 0fd9fa1..381e446 100644
--- a/src/radeon_accelfuncs.c
+++ b/src/radeon_accelfuncs.c
@@ -1348,9 +1348,12 @@ FUNC_NAME(RADEONAccelInit)(ScreenPtr pScreen, XAAInfoRecPtr a)
| BIT_ORDER_IN_BYTE_LSBFIRST);
#endif
-#if defined(RENDER)
- if (info->RenderAccel &&
- info->xaaReq.minorversion >= 2) {
+#ifdef RENDER
+ if (info->RenderAccel
+#ifdef XFree86LOADER
+ && info->xaaReq.minorversion >= 2
+#endif
+ ) {
a->CPUToScreenAlphaTextureFlags = XAA_RENDER_POWER_OF_2_TILE_ONLY;
a->CPUToScreenAlphaTextureFormats = RADEONTextureFormats;