summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_batchbuffer.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-03-13 16:53:09 -0700
committerEric Anholt <[email protected]>2014-03-18 14:45:09 -0700
commit651b8baa826609ca3a305a3cbcd085435931573c (patch)
tree79d93d6e9c943880d628a89974e164c4cf9b8dda /src/mesa/drivers/dri/i965/intel_batchbuffer.c
parent512c88f826f597daeb8bac82eea793b4c2f90dfe (diff)
i965: Drop some more dead code from the old CACHED_BATCH feature.
Reviewed-by: Topi Pohjolainen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index fe953422751..5a7cfcb1a93 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -36,26 +36,6 @@
static void
intel_batchbuffer_reset(struct brw_context *brw);
-struct cached_batch_item {
- struct cached_batch_item *next;
- uint16_t header;
- uint16_t size;
-};
-
-void
-intel_batchbuffer_clear_cache(struct brw_context *brw)
-{
- struct cached_batch_item *item = brw->batch.cached_items;
-
- while (item) {
- struct cached_batch_item *next = item->next;
- free(item);
- item = next;
- }
-
- brw->batch.cached_items = NULL;
-}
-
void
intel_batchbuffer_init(struct brw_context *brw)
{
@@ -88,7 +68,6 @@ intel_batchbuffer_reset(struct brw_context *brw)
}
brw->batch.last_bo = brw->batch.bo;
- intel_batchbuffer_clear_cache(brw);
brw_render_cache_set_clear(brw);
brw->batch.bo = drm_intel_bo_alloc(brw->bufmgr, "batchbuffer",
@@ -125,11 +104,6 @@ intel_batchbuffer_reset_to_saved(struct brw_context *brw)
brw->batch.used = brw->batch.saved.used;
if (brw->batch.used == 0)
brw->batch.ring = UNKNOWN_RING;
-
- /* Cached batch state is dead, since we just cleared some unknown part of the
- * batchbuffer. Assume that the caller resets any other state necessary.
- */
- intel_batchbuffer_clear_cache(brw);
}
void
@@ -139,7 +113,6 @@ intel_batchbuffer_free(struct brw_context *brw)
drm_intel_bo_unreference(brw->batch.last_bo);
drm_intel_bo_unreference(brw->batch.bo);
drm_intel_bo_unreference(brw->batch.workaround_bo);
- intel_batchbuffer_clear_cache(brw);
}
static void