summaryrefslogtreecommitdiff
path: root/src/radeon_exa_funcs.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_funcs.c
parenta68afc2a80b8581cc3d67e9b5a95a10b0d4ead0e (diff)
Fix the build for the !XF86DRM_MODE case
compile tested only.
Diffstat (limited to 'src/radeon_exa_funcs.c')
-rw-r--r--src/radeon_exa_funcs.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/radeon_exa_funcs.c b/src/radeon_exa_funcs.c
index d2152287..4b75299d 100644
--- a/src/radeon_exa_funcs.c
+++ b/src/radeon_exa_funcs.c
@@ -218,7 +218,11 @@ FUNC_NAME(RADEONSolid)(PixmapPtr pPix, int x1, int y1, int x2, int y2)
TRACE;
#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(RADEONDone2D)(info->accel_state->dst_pix);
radeon_cs_flush_indirect(pScrn);
FUNC_NAME(Emit2DState)(pScrn, RADEON_2D_EXA_SOLID);
@@ -327,7 +331,11 @@ FUNC_NAME(RADEONCopy)(PixmapPtr pDst,
TRACE;
#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(RADEONDone2D)(info->accel_state->dst_pix);
radeon_cs_flush_indirect(pScrn);
FUNC_NAME(Emit2DState)(pScrn, RADEON_2D_EXA_COPY);