xf86-video-intel: src/intel_batchbuffer.h
Chris Wilson
ickle at kemper.freedesktop.org
Thu Mar 24 08:29:22 PDT 2011
src/intel_batchbuffer.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit ec133abc4bd8caba15ed54e18621b816afb06981
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Thu Mar 24 15:32:50 2011 +0000
Use the per-generation batch context switch for atomic sequences
A modest boost to throughput and reduction in CPU overhead from
not flushing the batch on every transition from BLT to RENDER.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/intel_batchbuffer.h b/src/intel_batchbuffer.h
index 3f783b0..0d6c3f7 100644
--- a/src/intel_batchbuffer.h
+++ b/src/intel_batchbuffer.h
@@ -63,8 +63,10 @@ static inline void intel_batch_start_atomic(ScrnInfoPtr scrn, unsigned int sz)
assert(!intel->in_batch_atomic);
- if (intel->current_batch != RENDER_BATCH)
- intel_batch_submit(scrn, FALSE);
+ if (intel->current_batch != RENDER_BATCH) {
+ if (intel->current_batch && intel->context_switch)
+ intel->context_switch(intel, RENDER_BATCH);
+ }
intel_batch_require_space(scrn, intel, sz * 4);
intel->current_batch = RENDER_BATCH;
More information about the xorg-commit
mailing list