xf86-video-intel: Branch 'refs/remotes/origin/intel-batchbuffer' - src/i830_dri.c

Alan Hourihane alanh at kemper.freedesktop.org
Fri Nov 16 08:00:15 PST 2007


 src/i830_dri.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 00139058412f1099441efbd3e4fb15621dcf9bd5
Author: Dave Airlie <airlied at linux.ie>
Date:   Thu Nov 15 13:26:47 2007 +1100

    batchbuffer: fix 865 batchbuffer sizing to work around possible hw bug

diff --git a/src/i830_dri.c b/src/i830_dri.c
index 0102db9..8d78c05 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -523,7 +523,14 @@ I830InitBufMgr(ScreenPtr pScreen)
 	return;
    }
 
-   pI830->maxBatchSize = BATCH_SZ;
+   /* 865G appears to have a problem with large batchbuffer sizes,
+    * according to comments in Mesa code. It fixes problems on the hardware.
+    * - airlied */
+   if (IS_I865G(pI830))
+   	pI830->maxBatchSize = 4096;
+   else
+   	pI830->maxBatchSize = BATCH_SZ;
+
    pI830->bufmgr = intelddx_bufmgr_ttm_init(pI830->drmSubFD, DRM_FENCE_TYPE_EXE,
 			DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW,
 			BATCH_SZ);


More information about the xorg-commit mailing list