diff options
Diffstat (limited to 'src/i830_batchbuffer.h')
-rw-r--r-- | src/i830_batchbuffer.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/i830_batchbuffer.h b/src/i830_batchbuffer.h index 3ae316d3..7508a9c3 100644 --- a/src/i830_batchbuffer.h +++ b/src/i830_batchbuffer.h @@ -50,15 +50,12 @@ static inline int intel_vertex_space(intel_screen_private *intel) return intel->vertex_bo ? intel->vertex_bo->size - (4*intel->vertex_used) : 0; } -static inline Bool +static inline void intel_batch_require_space(ScrnInfoPtr scrn, intel_screen_private *intel, GLuint sz) { assert(sz < intel->batch_bo->size - 8); - if (intel_batch_space(intel) < sz) { + if (intel_batch_space(intel) < sz) intel_batch_submit(scrn); - return TRUE; - } - return FALSE; } static inline void intel_batch_start_atomic(ScrnInfoPtr scrn, unsigned int sz) |