diff options
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 9a31342cbd3..9c2adf87637 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(); } |