mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nvc0: Move declaration before code.
Fixes nvc0 SCons build.
This commit is contained in:
parent
3fa814d7f8
commit
db4f6c7eeb
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue