summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-06-20 15:00:44 -0700
committerKenneth Graunke <[email protected]>2013-06-28 13:35:23 -0700
commitbe63c1c993ddb0e5756d101500ae3e1129597ab6 (patch)
treebdaf274fa036388e51bbc0e69d51ea5065c9fc69 /src/mesa
parent7f210bf5358443f38c1c7b758eaa28b37e09578a (diff)
i915: Remove the remainder of the batchbuffer caching.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i915/intel_batchbuffer.c22
-rw-r--r--src/mesa/drivers/dri/i915/intel_context.h2
2 files changed, 0 insertions, 24 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.c b/src/mesa/drivers/dri/i915/intel_batchbuffer.c
index 2a279f6b915..432f89e7703 100644
--- a/src/mesa/drivers/dri/i915/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.c
@@ -35,25 +35,6 @@
static void
intel_batchbuffer_reset(struct intel_context *intel);
-struct cached_batch_item {
- struct cached_batch_item *next;
- uint16_t header;
- uint16_t size;
-};
-
-static void clear_cache( struct intel_context *intel )
-{
- struct cached_batch_item *item = intel->batch.cached_items;
-
- while (item) {
- struct cached_batch_item *next = item->next;
- free(item);
- item = next;
- }
-
- intel->batch.cached_items = NULL;
-}
-
void
intel_batchbuffer_init(struct intel_context *intel)
{
@@ -74,8 +55,6 @@ intel_batchbuffer_reset(struct intel_context *intel)
}
intel->batch.last_bo = intel->batch.bo;
- clear_cache(intel);
-
intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer",
intel->maxBatchSize, 4096);
if (intel->has_llc) {
@@ -95,7 +74,6 @@ intel_batchbuffer_free(struct intel_context *intel)
free(intel->batch.cpu_map);
drm_intel_bo_unreference(intel->batch.last_bo);
drm_intel_bo_unreference(intel->batch.bo);
- clear_cache(intel);
}
static void
diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h
index 04f820744e0..033ab476826 100644
--- a/src/mesa/drivers/dri/i915/intel_context.h
+++ b/src/mesa/drivers/dri/i915/intel_context.h
@@ -122,8 +122,6 @@ struct intel_batchbuffer {
/** Last BO submitted to the hardware. Used for glFinish(). */
drm_intel_bo *last_bo;
- struct cached_batch_item *cached_items;
-
uint16_t emit, total;
uint16_t used, reserved_space;
uint32_t *map;