xf86-video-intel: src/i965_render.c

Eric Anholt anholt at kemper.freedesktop.org
Mon Nov 24 16:37:58 PST 2008


 src/i965_render.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d978cd4b453ea588ed2fc2f2cb4ec26856fe00d4
Author: Wu Fengguang <wfg at linux.intel.com>
Date:   Thu Nov 20 00:47:25 2008 -0800

    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 at linux.intel.com>
    Signed-off-by: Eric Anholt <eric at anholt.net>

diff --git a/src/i965_render.c b/src/i965_render.c
index 9863697..da6ded6 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.
 	     */


More information about the xorg-commit mailing list