i915: Remove the remainder of the batchbuffer caching.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt
2013-06-20 15:00:44 -07:00
committed by Kenneth Graunke
parent 7f210bf535
commit be63c1c993
2 changed files with 0 additions and 24 deletions

View File

@@ -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

View File

@@ -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;