maxBatchSize was only ever initialized to BATCH_SZ, and a few places
used BATCH_SZ directly anyway.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
}
if (!intel->has_llc) {
- intel->batch.cpu_map = malloc(intel->maxBatchSize);
+ intel->batch.cpu_map = malloc(BATCH_SZ);
intel->batch.map = intel->batch.cpu_map;
}
}
clear_cache(intel);
intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer",
- intel->maxBatchSize, 4096);
+ BATCH_SZ, 4096);
if (intel->has_llc) {
drm_intel_bo_map(intel->batch.bo, true);
intel->batch.map = intel->batch.bo->virtual;
intel->batch.is_blit = is_blit;
#ifdef DEBUG
- assert(sz < intel->maxBatchSize - BATCH_RESERVED);
+ assert(sz < BATCH_SZ - BATCH_RESERVED);
#endif
if (intel_batchbuffer_space(intel) < sz)
intel_batchbuffer_flush(intel);
driParseConfigFiles(&intel->optionCache, &intelScreen->optionCache,
sPriv->myNum, "i965");
- intel->maxBatchSize = BATCH_SZ;
/* Estimate the size of the mappable aperture into the GTT. There's an
* ioctl to get the whole GTT size, but not one to get the mappable subset.
GLuint NewGLState;
dri_bufmgr *bufmgr;
- unsigned int maxBatchSize;
/**
* Generation number of the hardware: 2 is 8xx, 3 is 9xx pre-965, 4 is 965.