diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-12-02 20:48:37 +0000 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2010-03-01 19:09:47 +0000 |
commit | b57e35eb17554e4889c2b0fddb746f67ddcd5655 (patch) | |
tree | a1a1094fe9e6fb1d54420b480d620c12a779eeef /src/i830_batchbuffer.h | |
parent | 6c90bfb90ce459206bcb61033fba9630ed38e220 (diff) |
Remove flush parameter from intel_batch_flush()
There is only a single caller that wishes to forcibly append a flush
into the batch: intel_sync(). So move the logic there.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(Cherry picked from commit 98e11210367c950e3f932419d2a4722cf971885d)
Diffstat (limited to 'src/i830_batchbuffer.h')
-rw-r--r-- | src/i830_batchbuffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_batchbuffer.h b/src/i830_batchbuffer.h index 5026a72c..cc6b800d 100644 --- a/src/i830_batchbuffer.h +++ b/src/i830_batchbuffer.h @@ -36,7 +36,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. void intel_batch_init(ScrnInfoPtr scrn); void intel_batch_teardown(ScrnInfoPtr scrn); void intel_batch_pipelined_flush(ScrnInfoPtr scrn); -void intel_batch_flush(ScrnInfoPtr scrn, Bool flush); +void intel_batch_flush(ScrnInfoPtr scrn); void intel_batch_wait_last(ScrnInfoPtr scrn); static inline int intel_batch_space(intel_screen_private *intel) @@ -49,7 +49,7 @@ intel_batch_require_space(ScrnInfoPtr scrn, intel_screen_private *intel, GLuint { assert(sz < intel->batch_bo->size - 8); if (intel_batch_space(intel) < sz) - intel_batch_flush(scrn, FALSE); + intel_batch_flush(scrn); } static inline void intel_batch_start_atomic(ScrnInfoPtr scrn, unsigned int sz) @@ -198,7 +198,7 @@ do { \ if ((intel->batch_emitting > 8) && \ (I810_DEBUG & DEBUG_ALWAYS_SYNC)) { \ /* Note: not actually syncing, just flushing each batch. */ \ - intel_batch_flush(scrn, FALSE); \ + intel_batch_flush(scrn); \ } \ intel->batch_emitting = 0; \ } while (0) |