[Intel-gfx] [PATCH] refresh batch_bo reference after intel_batch_flush()

Wu Fengguang wfg at linux.intel.com
Thu Nov 20 09:49:58 CET 2008


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 at linux.intel.com>
---
 src/i965_render.c |    1 +
 1 file changed, 1 insertion(+)

--- xf86-video-intel.orig/src/i965_render.c
+++ xf86-video-intel/src/i965_render.c
@@ -1010,6 +1010,7 @@ _emit_batch_header_for_composite_interna
 	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.
 	     */



More information about the Intel-gfx mailing list