summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2008-12-03 01:39:38 -0500
committerAlex Deucher <alexdeucher@gmail.com>2008-12-03 01:39:38 -0500
commit927aee181f3637bda1b761caf93fbc0652e1207b (patch)
treec1b454a175c54545ba65670152ab5f96c2a4e943 /src/radeon.h
parentca74ebf8813b7fab8d08465ef9600f001c948e94 (diff)
Only flush IB when direct rendering is enabled
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon.h b/src/radeon.h
index 227ffc6d..902d1c05 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -1303,7 +1303,7 @@ do { \
case EXA_ENGINEMODE_2D: \
break; \
} \
- if (flush) \
+ if (flush && info->directRenderingEnabled) \
RADEONCPFlushIndirect(pScrn, 1); \
info->accel_state->engineMode = EXA_ENGINEMODE_2D; \
} while (0);
@@ -1318,7 +1318,7 @@ do { \
case EXA_ENGINEMODE_3D: \
break; \
} \
- if (flush) \
+ if (flush && info->directRenderingEnabled) \
RADEONCPFlushIndirect(pScrn, 1); \
info->accel_state->engineMode = EXA_ENGINEMODE_3D; \
} while (0);