projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5c0e01
)
util: Fix ptr -> int conversion.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 13 May 2010 20:14:07 +0000
(21:14 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 13 May 2010 20:14:39 +0000
(21:14 +0100)
src/gallium/auxiliary/util/u_surfaces.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_surfaces.c
b/src/gallium/auxiliary/util/u_surfaces.c
index 668da8c5c27bb611e211613e4ed2b5cdb3eddff7..b5d21570d5715e44089587996486e3c6a7508745 100644
(file)
--- a/
src/gallium/auxiliary/util/u_surfaces.c
+++ b/
src/gallium/auxiliary/util/u_surfaces.c
@@
-28,7
+28,7
@@
util_surfaces_do_get(struct util_surfaces *us, unsigned surface_struct_size, str
{ /* or 2D array */
if(!us->u.table)
us->u.table = util_hash_table_create(hash, compare);
- key = (void *)(((zslice + face) << 8) | level);
+ key = (void *)(
uintptr_t)(
((zslice + face) << 8) | level);
/* TODO: ouch, should have a get-reference function...
* also, shouldn't allocate a two-pointer structure for each item... */
ps = util_hash_table_get(us->u.table, key);