diff options
author | Eric Anholt <[email protected]> | 2011-04-24 20:05:02 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-04-29 15:26:50 -0700 |
commit | d6ba7b16039b3cf03903888df23732cbb358e810 (patch) | |
tree | 190533af33939e307e4f2c9e87d934f2e3b0b087 | |
parent | bb7ff01deb5c1eb813b90da6f40d987a67e2793b (diff) |
i965: Drop the now unused brw_cache_data() function.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state.h | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_state_cache.c | 43 |
2 files changed, 0 insertions, 47 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index f1f51c8761c..df24a8b7d98 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -124,10 +124,6 @@ void brw_clear_validated_bos(struct brw_context *brw); /*********************************************************************** * brw_state_cache.c */ -drm_intel_bo *brw_cache_data(struct brw_cache *cache, - enum brw_cache_id cache_id, - const void *data, - GLuint size); drm_intel_bo *brw_upload_cache(struct brw_cache *cache, enum brw_cache_id cache_id, diff --git a/src/mesa/drivers/dri/i965/brw_state_cache.c b/src/mesa/drivers/dri/i965/brw_state_cache.c index 82a0403b2dd..c29705df036 100644 --- a/src/mesa/drivers/dri/i965/brw_state_cache.c +++ b/src/mesa/drivers/dri/i965/brw_state_cache.c @@ -294,49 +294,6 @@ brw_upload_cache(struct brw_cache *cache, NULL); } -/** - * Wrapper around brw_cache_data_sz using the cache_id's canonical key size. - * - * If nr_reloc_bufs is nonzero, brw_search_cache()/brw_upload_cache() would be - * better to use, as the potentially changing offsets in the data-used-as-key - * will result in excessive cache misses. - * - * If aux data is involved, use search/upload instead. - - */ -drm_intel_bo * -brw_cache_data(struct brw_cache *cache, - enum brw_cache_id cache_id, - const void *data, - GLuint data_size) -{ - drm_intel_bo *bo; - struct brw_cache_item *item, lookup; - GLuint hash; - - lookup.cache_id = cache_id; - lookup.key = data; - lookup.key_size = data_size; - lookup.reloc_bufs = NULL; - lookup.nr_reloc_bufs = 0; - hash = hash_key(&lookup); - lookup.hash = hash; - - item = search_cache(cache, hash, &lookup); - if (item) { - update_cache_last(cache, cache_id, item->bo); - drm_intel_bo_reference(item->bo); - return item->bo; - } - - bo = brw_upload_cache(cache, cache_id, - data, data_size, - NULL, 0, - data, data_size); - - return bo; -} - enum pool_type { DW_SURFACE_STATE, DW_GENERAL_STATE |