From: Eric Anholt Date: Thu, 20 Jun 2013 22:00:44 +0000 (-0700) Subject: i915: Remove the remainder of the batchbuffer caching. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be63c1c993ddb0e5756d101500ae3e1129597ab6;p=mesa.git i915: Remove the remainder of the batchbuffer caching. Reviewed-by: Kenneth Graunke --- 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;