diff options
author | Jason Ekstrand <[email protected]> | 2015-09-29 18:05:55 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-30 08:35:32 -0700 |
commit | bfdc76c133bb9e91049824b7480f862f142e4195 (patch) | |
tree | 0a663a60846276767f100b1d82c8489b6eb51302 /src | |
parent | a4734b34b3928ca6150b8d93f402da54ed69e6e7 (diff) |
i965/state_cache: Remove the aux_compare fields
They haven't been used since 1bba29ed403e735ba0bf04ed8aa2e571884fcaaf so
there's no good reason to keep them around.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 7 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_cache.c | 4 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 8b790fe0bca..3bae90dafaf 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -869,7 +869,6 @@ struct brw_cache_item { }; -typedef bool (*cache_aux_compare_func)(const void *a, const void *b); typedef void (*cache_aux_free_func)(const void *aux); struct brw_cache { @@ -882,12 +881,6 @@ struct brw_cache { uint32_t next_offset; bool bo_used_by_gpu; - /** - * Optional functions used in determining whether the prog_data for a new - * cache item matches an existing cache item (in case there's relevant data - * outside of the prog_data). If NULL, a plain memcmp is done. - */ - cache_aux_compare_func aux_compare[BRW_MAX_CACHE]; /** Optional functions for freeing other pointers attached to a prog_data. */ cache_aux_free_func aux_free[BRW_MAX_CACHE]; }; diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index fbc041920f4..2fbcd146750 100644 --- a/src/mesa/drivers/dri/i965/brw_state_cache.c +++ b/src/mesa/drivers/dri/i965/brw_state_cache.c @@ -350,10 +350,6 @@ brw_init_caches(struct brw_context *brw) if (brw->has_llc) drm_intel_gem_bo_map_unsynchronized(cache->bo); - cache->aux_compare[BRW_CACHE_VS_PROG] = brw_vs_prog_data_compare; - cache->aux_compare[BRW_CACHE_GS_PROG] = brw_gs_prog_data_compare; - cache->aux_compare[BRW_CACHE_FS_PROG] = brw_wm_prog_data_compare; - cache->aux_compare[BRW_CACHE_CS_PROG] = brw_cs_prog_data_compare; cache->aux_free[BRW_CACHE_VS_PROG] = brw_stage_prog_data_free; cache->aux_free[BRW_CACHE_GS_PROG] = brw_stage_prog_data_free; cache->aux_free[BRW_CACHE_FS_PROG] = brw_stage_prog_data_free; |