From: Timothy Arceri Date: Fri, 11 Nov 2016 04:06:28 +0000 (+1100) Subject: i965: rename brw_state_cache_check_size() to brw_program_cache_check_size() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=663fc64965fe1c6ae9994527b931b36230d622fc;p=mesa.git i965: rename brw_state_cache_check_size() to brw_program_cache_check_size() Acked-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_compute.c b/src/mesa/drivers/dri/i965/brw_compute.c index 6e6e425deb1..16b5df7ca4e 100644 --- a/src/mesa/drivers/dri/i965/brw_compute.c +++ b/src/mesa/drivers/dri/i965/brw_compute.c @@ -239,7 +239,7 @@ brw_dispatch_compute_common(struct gl_context *ctx) if (brw->always_flush_batch) intel_batchbuffer_flush(brw); - brw_state_cache_check_size(brw); + brw_program_cache_check_size(brw); /* Note: since compute shaders can't write to framebuffers, there's no need * to call brw_postdraw_set_buffers_need_resolve(). diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index af370db6b30..b09302006b2 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -612,7 +612,7 @@ retry: if (brw->always_flush_batch) intel_batchbuffer_flush(brw); - brw_state_cache_check_size(brw); + brw_program_cache_check_size(brw); brw_postdraw_set_buffers_need_resolve(brw); return; diff --git a/src/mesa/drivers/dri/i965/brw_program_cache.c b/src/mesa/drivers/dri/i965/brw_program_cache.c index 4a67b96718b..15dce72c206 100644 --- a/src/mesa/drivers/dri/i965/brw_program_cache.c +++ b/src/mesa/drivers/dri/i965/brw_program_cache.c @@ -409,7 +409,7 @@ brw_clear_cache(struct brw_context *brw, struct brw_cache *cache) } void -brw_state_cache_check_size(struct brw_context *brw) +brw_program_cache_check_size(struct brw_context *brw) { /* un-tuned guess. Each object is generally a page, so 2000 of them is 8 MB of * state cache. diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 38c2cbc3d18..1413df80c4b 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -235,7 +235,7 @@ bool brw_search_cache(struct brw_cache *cache, const void *key, GLuint key_size, uint32_t *inout_offset, void *inout_aux); -void brw_state_cache_check_size( struct brw_context *brw ); +void brw_program_cache_check_size(struct brw_context *brw); void brw_init_caches( struct brw_context *brw ); void brw_destroy_caches( struct brw_context *brw );