summaryrefslogtreecommitdiff
path: root/src/radeon_exa_render.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-07-08 12:33:34 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-07-08 12:33:34 -0400
commit2d86ec4ddb1fb83be95ed9cdcbabf4d568a6d7b6 (patch)
tree21cb7930ab5efdb12cd5f3dff094b32a3fce6acb /src/radeon_exa_render.c
parenta68afc2a80b8581cc3d67e9b5a95a10b0d4ead0e (diff)
Fix the build for the !XF86DRM_MODE case
compile tested only.
Diffstat (limited to 'src/radeon_exa_render.c')
-rw-r--r--src/radeon_exa_render.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 10144a60..73f8ee94 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -2116,7 +2116,11 @@ static void FUNC_NAME(RadeonCompositeTile)(ScrnInfoPtr pScrn,
srcX, srcY, maskX, maskY,dstX, dstY, w, h); */
#ifdef ACCEL_CP
- if (info->cs && info->cs->cdw > 15 * 1024) {
+ if (info->cs
+#ifdef XF86DRM_MODE
+ && info->cs->cdw > 15 * 1024
+#endif
+ ) {
FUNC_NAME(RadeonDoneComposite)(info->accel_state->dst_pix);
radeon_cs_flush_indirect(pScrn);
info->accel_state->exa->PrepareComposite(info->accel_state->composite_op,