From d978cd4b453ea588ed2fc2f2cb4ec26856fe00d4 Mon Sep 17 00:00:00 2001 From: Wu Fengguang Date: Thu, 20 Nov 2008 00:47:25 -0800 Subject: [PATCH] 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 Signed-off-by: Eric Anholt --- src/i965_render.c | 1 + 1 file changed, 1 insertion(+) 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. */