projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r300g: implement MSAA
[mesa.git]
/
src
/
gallium
/
auxiliary
/
util
/
u_cache.c
diff --git
a/src/gallium/auxiliary/util/u_cache.c
b/src/gallium/auxiliary/util/u_cache.c
index df08ec302a26956ef50f133cf1c59c11f93d64a4..26aab2bf1d4380dbdb5ae3a3eff94ebceb977524 100644
(file)
--- a/
src/gallium/auxiliary/util/u_cache.c
+++ b/
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;
void *value)
{
struct util_cache_entry *entry;
- uint32_t hash
= cache->hash(key)
;
+ uint32_t hash;
assert(cache);
if (!cache)
return;
assert(cache);
if (!cache)
return;
-
+ hash = cache->hash(key);
entry = util_cache_entry_get(cache, hash, key);
if (!entry)
entry = cache->lru.prev;
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;
const void *key)
{
struct util_cache_entry *entry;
- uint32_t hash
= cache->hash(key)
;
+ uint32_t hash;
assert(cache);
if (!cache)
return NULL;
assert(cache);
if (!cache)
return NULL;
-
+ hash = cache->hash(key);
entry = util_cache_entry_get(cache, hash, key);
if (!entry)
return NULL;
entry = util_cache_entry_get(cache, hash, key);
if (!entry)
return NULL;