summaryrefslogtreecommitdiff
path: root/src/radeon_exa_funcs.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-08-04 15:21:44 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-08-04 15:21:44 -0400
commitbd03977e320591ca55b1a2fbb32414c53cb3f72e (patch)
treeb2f7aba1c49d905e01c9e1ce76085cef284d1d54 /src/radeon_exa_funcs.c
parent4fc1e67e606daf9227e74518c54315b60cd38301 (diff)
radeon: fix compile with !kms
Diffstat (limited to 'src/radeon_exa_funcs.c')
-rw-r--r--src/radeon_exa_funcs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/radeon_exa_funcs.c b/src/radeon_exa_funcs.c
index 5d2391fe..145f13d9 100644
--- a/src/radeon_exa_funcs.c
+++ b/src/radeon_exa_funcs.c
@@ -447,6 +447,7 @@ RADEONBlitChunk(ScrnInfoPtr pScrn, struct radeon_bo *src_bo,
FINISH_ACCEL();
}
+#if defined(ACCEL_CP) && defined(XF86DRM_MODE)
static Bool
RADEONDownloadFromScreenCS(PixmapPtr pSrc, int x, int y, int w,
int h, char *dst, int dst_pitch)
@@ -508,6 +509,7 @@ out:
radeon_bo_unref(scratch);
return r;
}
+#endif
static Bool
RADEONDownloadFromScreenCP(PixmapPtr pSrc, int x, int y, int w, int h,
@@ -647,9 +649,12 @@ Bool FUNC_NAME(RADEONDrawInit)(ScreenPtr pScreen)
info->accel_state->exa->UploadToScreen = RADEONUploadToScreenCP;
if (info->accelDFS)
info->accel_state->exa->DownloadFromScreen = RADEONDownloadFromScreenCP;
- } else {
+ }
+# if defined(XF86DRM_MODE)
+ else {
info->accel_state->exa->DownloadFromScreen = &RADEONDownloadFromScreenCS;
}
+# endif
#endif
#if X_BYTE_ORDER == X_BIG_ENDIAN