From: Eric Anholt Date: Thu, 13 Mar 2014 23:53:09 +0000 (-0700) Subject: i965: Drop some more dead code from the old CACHED_BATCH feature. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=651b8baa826609ca3a305a3cbcd085435931573c;p=mesa.git i965: Drop some more dead code from the old CACHED_BATCH feature. Reviewed-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_blorp.cpp b/src/mesa/drivers/dri/i965/brw_blorp.cpp index f26d02662ff..252219e8564 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp.cpp @@ -279,7 +279,6 @@ retry: brw->state.dirty.brw = ~0; brw->state.dirty.cache = ~0; brw->ib.type = -1; - intel_batchbuffer_clear_cache(brw); /* Flush the sampler cache so any texturing from the destination is * coherent. diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 80dba1011fa..32fc38be56a 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -820,12 +820,6 @@ enum shader_time_shader_type { #define CACHE_NEW_CLIP_UNIT (1<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 diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h b/src/mesa/drivers/dri/i965/intel_batchbuffer.h index 779a7ccd05c..7bdd8364346 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h @@ -36,7 +36,6 @@ void intel_batchbuffer_init(struct brw_context *brw); void intel_batchbuffer_free(struct brw_context *brw); void intel_batchbuffer_save_state(struct brw_context *brw); void intel_batchbuffer_reset_to_saved(struct brw_context *brw); -void intel_batchbuffer_clear_cache(struct brw_context *brw); int _intel_batchbuffer_flush(struct brw_context *brw, const char *file, int line);