diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2007-11-03 01:31:47 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2007-11-03 02:01:32 +0000 |
commit | 5fa6ea68586e906a984291dd4c20f664924157eb (patch) | |
tree | 1d0f22c5e99e7891447847109249cc5c611e73af /src/mesa/pipe/i915simple/i915_flush.c | |
parent | 5c1606a2b3e951c32f028e0b328e6c06e9424e28 (diff) |
Do something sensible when failed to reserve space in the batch buffer.
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_flush.c')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_flush.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_flush.c b/src/mesa/pipe/i915simple/i915_flush.c index 9a31342cbd..9c2adf8763 100644 --- a/src/mesa/pipe/i915simple/i915_flush.c +++ b/src/mesa/pipe/i915simple/i915_flush.c @@ -56,7 +56,10 @@ static void i915_flush( struct pipe_context *pipe, if (flags & PIPE_FLUSH_TEXTURE_CACHE) flush |= FLUSH_MAP_CACHE; - BEGIN_BATCH( 1, 0 ); + if (!BEGIN_BATCH(1, 0)) { + FLUSH_BATCH(); + assert(BEGIN_BATCH(1, 0)); + } OUT_BATCH( flush ); ADVANCE_BATCH(); } |