Commit 7b0a551c authored by Jakob Bornecrantz's avatar Jakob Bornecrantz

i915: Made batch buffer size much larger

parent 3869c3c8
......@@ -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);
/*
......
......@@ -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);
......
......@@ -80,6 +80,7 @@ struct intel_screen
struct _DriFenceMgr *mgr;
struct _DriFreeSlabManager *fMan;
unsigned batch_id;
unsigned max_batch_size;
struct pipe_winsys *winsys;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment