i915g: Don't avoid flushing when we have a pending fence.
authorStéphane Marchesin <marcheu@chromium.org>
Thu, 19 Jan 2012 03:24:18 +0000 (19:24 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Thu, 19 Jan 2012 03:25:41 +0000 (19:25 -0800)
commit32b07bb1496f5772ca16e719bb87e1702ceff196
treee125be092aaaa5e346d97cb047ba3de193a5a22b
parent2b4afdba05abe3408f6347be82465b6420f50aab
i915g: Don't avoid flushing when we have a pending fence.

Otherwise the fence will never arrive.
Also check for a NULL i915->batch.

NOTE: This is a candidate for the 8.0 branch.
src/gallium/drivers/i915/i915_flush.c