i965: rename brw_state_cache_check_size() to brw_program_cache_check_size()
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 11 Nov 2016 04:06:28 +0000 (15:06 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Fri, 11 Nov 2016 09:39:09 +0000 (20:39 +1100)
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_compute.c
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/i965/brw_program_cache.c
src/mesa/drivers/dri/i965/brw_state.h

index 6e6e425deb166b1bc970b2d5718394d6292bb45b..16b5df7ca4e3cb8d8b0cdb55576a29c2f226d6f3 100644 (file)
@@ -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().
index af370db6b30d7bb7e86cb69405fcc1d2d85a94ca..b09302006b2838347d547cb01508237a1c77962a 100644 (file)
@@ -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;
index 4a67b96718be1e84b9da60ee5578dc6d1c428aaa..15dce72c206974133dd291abdac4f52773ca5d13 100644 (file)
@@ -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.
index 38c2cbc3d182a8c45adf7f367ab614e40b9d6ea6..1413df80c4b90d9acc31a0c33f9a985adc8b184f 100644 (file)
@@ -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 );