diff options
author | Wu Fengguang <wfg@linux.intel.com> | 2008-11-20 00:47:25 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-11-24 15:10:39 -0800 |
commit | d978cd4b453ea588ed2fc2f2cb4ec26856fe00d4 (patch) | |
tree | 8818404c81d1168107709332b90638827492c65f | |
parent | 30c29627c859f1f6780aa652d6de4fa985b63dd0 (diff) |
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>
-rw-r--r-- | src/i965_render.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i965_render.c b/src/i965_render.c index 9863697e..da6ded6e 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -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. */ |