i965: rename brw_state_cache.c -> brw_program_cache.c
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 11 Nov 2016 04:01:24 +0000 (15:01 +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/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_program_cache.c [moved from src/mesa/drivers/dri/i965/brw_state_cache.c with 96% similarity]
src/mesa/drivers/dri/i965/brw_state.h

index 30648e3..1c33ea5 100644 (file)
@@ -139,6 +139,7 @@ i965_FILES = \
        brw_pipe_control.c \
        brw_program.c \
        brw_program.h \
+       brw_program_cache.c \
        brw_primitive_restart.c \
        brw_queryobj.c \
        brw_reset.c \
@@ -148,7 +149,6 @@ i965_FILES = \
        brw_sf.h \
        brw_sf_state.c \
        brw_state_batch.c \
-       brw_state_cache.c \
        brw_state_dump.c \
        brw_state.h \
        brw_state_upload.c \
index 310372a..3a88e56 100644 (file)
@@ -178,7 +178,7 @@ enum brw_cache_id {
 };
 
 enum brw_state_id {
-   /* brw_cache_ids must come first - see brw_state_cache.c */
+   /* brw_cache_ids must come first - see brw_program_cache.c */
    BRW_STATE_URB_FENCE = BRW_MAX_CACHE,
    BRW_STATE_FRAGMENT_PROGRAM,
    BRW_STATE_GEOMETRY_PROGRAM,
similarity index 96%
rename from src/mesa/drivers/dri/i965/brw_state_cache.c
rename to src/mesa/drivers/dri/i965/brw_program_cache.c
index e8e71ab..4a67b96 100644 (file)
   *   Keith Whitwell <keithw@vmware.com>
   */
 
-/** @file brw_state_cache.c
+/** @file brw_program_cache.c
  *
- * This file implements a simple static state cache for 965.  The
- * consumers can query the hash table of state using a cache_id,
- * opaque key data, and receive the corresponding state buffer object
- * of state (plus associated auxiliary data) in return.  Objects in
- * the cache may not have relocations (pointers to other BOs) in them.
+ * This file implements a simple program cache for 965.  The consumers can
+ *  query the hash table of programs using a cache_id and program key, and
+ * receive the corresponding program buffer object (plus associated auxiliary
+ *  data) in return.  Objects in the cache may not have relocations
+ * (pointers to other BOs) in them.
  *
  * The inner workings are a simple hash table based on a CRC of the
  * key data.
index 841c3de..38c2cbc 100644 (file)
@@ -217,7 +217,7 @@ brw_select_pipeline(struct brw_context *brw, enum brw_pipeline pipeline)
 }
 
 /***********************************************************************
- * brw_state_cache.c
+ * brw_program_cache.c
  */
 
 void brw_upload_cache(struct brw_cache *cache,