mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 07:20:16 +01:00
i915: Made batch buffer size much larger
This commit is contained in:
parent
3869c3c87a
commit
7b0a551c4c
3 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue