i915: Made batch buffer size much larger
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Thu, 29 May 2008 14:56:42 +0000 (16:56 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Fri, 30 May 2008 11:46:50 +0000 (13:46 +0200)
src/gallium/winsys/dri/intel/intel_batchbuffer.c
src/gallium/winsys/dri/intel/intel_screen.c
src/gallium/winsys/dri/intel/intel_screen.h

index aa2eed53b8446e1d223db2653c47cddae8a1a987..09d4eef48440fb4097bdedb7d0d5d8cb1b0c7c94 100644 (file)
@@ -65,7 +65,7 @@ intel_batchbuffer_reset(struct intel_batchbuffer *batch)
    driBOUnrefUserList(batch->list);
    driBOResetList(batch->list);
 
-   batch->size = 4 * 4096; // ZZZ JB batch->intel->intelScreen->maxBatchSize;
+   batch->size = batch->intel->intelScreen->max_batch_size;
    driBOData(batch->buffer, batch->size, NULL, NULL, 0);
 
    /*
index 429a2cf8f8f8bd4b4c2d872d824b7088ae855b76..0be88974f4ab22cee464ca8b96c37866f9fc0f91 100644 (file)
@@ -200,8 +200,8 @@ intelCreatePools(__DRIscreenPrivate * sPriv)
                                                DRM_BO_FLAG_MEM_TT,
                                                DRM_BO_FLAG_EXE |
                                                DRM_BO_FLAG_MEM_TT,
-                                               4 * 4096, //intelScreen->maxBatchSize,
-                                               1, 40, 16*16384, 0,
+                                               intelScreen->max_batch_size,
+                                               1, 40, intelScreen->max_batch_size * 16, 0,
                                                intelScreen->fMan);
 #endif
    intelScreen->havePools = GL_TRUE;
@@ -262,7 +262,7 @@ intelInitDriver(__DRIscreenPrivate * sPriv)
       (*glx_enable_extension) (psc, "GLX_SGI_make_current_read");
    }
 
-
+   intelScreen->max_batch_size = 16 * 4096;
 
 #if 1 // ZZZ JB
    intelScreen->mgr = driFenceMgrTTMInit(sPriv->fd);
index c17f0202e4ff4c238e107f7899602a08f66a65b0..1db0502b13bcd6e923c9941ad91e042749d9fad7 100644 (file)
@@ -80,6 +80,7 @@ struct intel_screen
    struct _DriFenceMgr *mgr;
    struct _DriFreeSlabManager *fMan;
    unsigned batch_id;
+   unsigned max_batch_size;
 
    struct pipe_winsys *winsys;
 };