diff options
author | Keith Packard <keithp@keithp.com> | 2008-10-14 14:38:05 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-10-19 14:46:12 -0700 |
commit | 546e2aca5b8b5d9f486d119ea2872ccd2b056054 (patch) | |
tree | c0767ad275359ddc59fb0b3618261063336b5e08 /src/i830_accel.c | |
parent | 9b91cdf7ac88982880c887ffb0811c92157a7945 (diff) |
Reduce incidence of MI_FLUSH usage.
This tracks whether the last command in each batch is an MI_FLUSH command
and avoids appending another MI_FLUSH in the non-GEM cases.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/i830_accel.c')
-rw-r--r-- | src/i830_accel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c index 2743445f..fe76fa0c 100644 --- a/src/i830_accel.c +++ b/src/i830_accel.c @@ -192,7 +192,7 @@ I830Sync(ScrnInfoPtr pScrn) I830EmitFlush(pScrn); - intel_batch_flush(pScrn); + intel_batch_flush(pScrn, TRUE); if (pI830->directRenderingEnabled) { struct drm_i915_irq_emit emit; @@ -237,9 +237,8 @@ I830EmitFlush(ScrnInfoPtr pScrn) flags = 0; { - BEGIN_BATCH(2); + BEGIN_BATCH(1); OUT_BATCH(MI_FLUSH | flags); - OUT_BATCH(MI_NOOP); /* pad to quadword */ ADVANCE_BATCH(); } } |