diff options
author | marha <marha@users.sourceforge.net> | 2012-12-05 09:14:52 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-12-05 09:14:52 +0100 |
commit | e82692e521240c5f8592f9ce56c9d5b3d68870ec (patch) | |
tree | 3293b7fa02b1f5aa58b74f1fe02444085be2281e /mesalib/src/gallium/auxiliary/util/u_cache.c | |
parent | b8da71ffb17d3d16706db04115e9ba1dd8bc49b9 (diff) | |
download | vcxsrv-e82692e521240c5f8592f9ce56c9d5b3d68870ec.tar.gz vcxsrv-e82692e521240c5f8592f9ce56c9d5b3d68870ec.tar.bz2 vcxsrv-e82692e521240c5f8592f9ce56c9d5b3d68870ec.zip |
mesa git update 5 dec 2012
mesa: 484a8dcfa8c8b91b8e99174b5e4953264f32789e
Diffstat (limited to 'mesalib/src/gallium/auxiliary/util/u_cache.c')
-rw-r--r-- | mesalib/src/gallium/auxiliary/util/u_cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_cache.c b/mesalib/src/gallium/auxiliary/util/u_cache.c index df08ec302..26aab2bf1 100644 --- a/mesalib/src/gallium/auxiliary/util/u_cache.c +++ b/mesalib/src/gallium/auxiliary/util/u_cache.c @@ -183,12 +183,12 @@ util_cache_set(struct util_cache *cache, void *value) { struct util_cache_entry *entry; - uint32_t hash = cache->hash(key); + uint32_t hash; assert(cache); if (!cache) return; - + hash = cache->hash(key); entry = util_cache_entry_get(cache, hash, key); if (!entry) entry = cache->lru.prev; @@ -218,12 +218,12 @@ util_cache_get(struct util_cache *cache, const void *key) { struct util_cache_entry *entry; - uint32_t hash = cache->hash(key); + uint32_t hash; assert(cache); if (!cache) return NULL; - + hash = cache->hash(key); entry = util_cache_entry_get(cache, hash, key); if (!entry) return NULL; |