i915: make i915 use the cached mappings for batch/buffer objects.

This should restore gears speed on 9xx hardware
This commit is contained in:
Dave Airlie
2007-11-01 10:41:27 +11:00
parent dbcd20f1c2
commit 1b880c7e3c
3 changed files with 4 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ intel_batchbuffer_reset(struct intel_batchbuffer *batch)
batch->buf = dri_bo_alloc(intel->intelScreen->bufmgr, "batchbuffer",
intel->intelScreen->maxBatchSize, 4096,
DRM_BO_FLAG_MEM_TT);
DRM_BO_FLAG_MEM_LOCAL | DRM_BO_FLAG_CACHED | DRM_BO_FLAG_CACHED_MAPPED);
dri_bo_map(batch->buf, GL_TRUE);
batch->map = batch->buf->virtual;
batch->size = intel->intelScreen->maxBatchSize;