refresh batch_bo reference after intel_batch_flush()

The call into intel_batch_flush() will invalidate the pI830->batch_bo
stored in bo_table[0]. Fix it by re-read the refreshed value.

Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Wu Fengguang 2008-11-20 00:47:25 -08:00 committed by Eric Anholt
parent 30c29627c8
commit d978cd4b45
1 changed files with 1 additions and 0 deletions

View File

@ -1010,6 +1010,7 @@ _emit_batch_header_for_composite_internal (ScrnInfoPtr pScrn, Bool check_twice)
intel_batch_flush (pScrn, FALSE);
if (check_twice) {
bo_table[0] = pI830->batch_bo; /* get refreshed batch_bo */
/* If the command still won't fit in an empty batch, then it's
* just plain too big for the hardware---fallback to software.
*/