projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fa814d
)
nvc0: Move declaration before code.
author
Vinson Lee
<vlee@vmware.com>
Tue, 25 Jan 2011 04:04:31 +0000
(20:04 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 25 Jan 2011 04:04:31 +0000
(20:04 -0800)
Fixes nvc0 SCons build.
src/gallium/drivers/nvc0/nvc0_mm.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nvc0/nvc0_mm.c
b/src/gallium/drivers/nvc0/nvc0_mm.c
index 0629dad19c9726bd493ce6cc0e2386aede4ee09c..516d2e31b55db819e4222bc8befe1b62c20767c6 100644
(file)
--- a/
src/gallium/drivers/nvc0/nvc0_mm.c
+++ b/
src/gallium/drivers/nvc0/nvc0_mm.c
@@
-96,13
+96,13
@@
mm_bucket_by_size(struct nvc0_mman *cache, unsigned size)
static INLINE uint32_t
mm_default_slab_size(unsigned chunk_order)
{
- assert(chunk_order <= MM_MAX_ORDER && chunk_order >= MM_MIN_ORDER);
-
static const int8_t slab_order[MM_MAX_ORDER - MM_MIN_ORDER + 1] =
{
12, 12, 13, 14, 14, 17, 17, 17, 17, 19, 19, 20, 21, 22
};
+ assert(chunk_order <= MM_MAX_ORDER && chunk_order >= MM_MIN_ORDER);
+
return 1 << slab_order[chunk_order - MM_MIN_ORDER];
}