mesa/src/util
Nicolai Hähnle d8cff811df util/slab: re-design to allow migration between pools (v3)
This is basically a re-write of the slab allocator into a design where
multiple child pools are linked to a parent pool. The intention is that
every (GL, pipe) context has its own child pool, while the corresponding
parent pool is held by the winsys or screen, or possibly the GL share group.

The fast path is still used when objects are freed by the same child pool
that allocated them. However, it is now also possible to free an object in a
different pool, as long as they belong to the same parent. Objects also
survive the destruction of the (child) pool from which they were allocated.

The slow path will return freed objects to the child pool from which they
were originally allocated. If that child pool was destroyed, the corresponding
page is considered an orphan and will be freed once all objects in it have
been freed.

This allocation pattern is required for pipe_transfers that correspond to
(GL) buffer object mappings when the mapping is created in one context
which is later destroyed while other contexts of the same share group live
on -- see the bug report referenced below.

Note that individual drivers do need to migrate to the new interface in
order to benefit and fix the bug.

v2: use singly-linked lists everywhere
v3: use p_atomic_set for page->u.num_remaining

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97894
2016-10-05 15:40:40 +02:00
..
tests/hash_table
.gitignore
Android.mk
bitscan.c
bitscan.h util: Use win32 intrinsics for util_last_bit if present. 2016-08-10 09:30:07 +02:00
bitset.h
debug.c
debug.h
format_r11g11b10f.h mesa: Fix uf10_to_f32() scale factor in the E == 0 and M != 0 case. 2016-08-17 17:26:11 -07:00
format_rgb9e5.h util/format: Use explicitly sized types 2016-08-05 09:07:04 -07:00
format_srgb.h
format_srgb.py
half_float.c
half_float.h
hash_table.c util: add assert that key cannot be NULL on insertion 2016-08-22 07:37:55 +03:00
hash_table.h util: Move hash_table_call_foreach to util hash table 2016-09-12 10:48:35 +10:00
list.h
macros.h util: remove Sun C Compiler support 2016-09-23 16:17:16 +10:00
Makefile.am
Makefile.sources mesa/glsl: Move string_to_uint_map into the util folder 2016-09-12 10:48:35 +10:00
mesa-sha1.c
mesa-sha1.h
ralloc.c
ralloc.h
register_allocate.c
register_allocate.h
rgtc.c
rgtc.h
roundeven_test.c
rounding.h util: try to use SSE instructions with MSVC and 32-bit gcc 2016-08-17 12:53:20 -06:00
SConscript
set.c
set.h
simple_list.h
slab.c util/slab: re-design to allow migration between pools (v3) 2016-10-05 15:40:40 +02:00
slab.h util/slab: re-design to allow migration between pools (v3) 2016-10-05 15:40:40 +02:00
string_to_uint_map.cpp mesa/glsl: Move string_to_uint_map into the util folder 2016-09-12 10:48:35 +10:00
string_to_uint_map.h mesa/glsl: Move string_to_uint_map into the util folder 2016-09-12 10:48:35 +10:00
strndup.c
strndup.h
strtod.c
strtod.h
texcompress_rgtc_tmp.h
u_atomic.h util: use GCC atomic intrinsics with explicit memory model 2016-10-05 15:39:39 +02:00
u_atomic_test.c
u_endian.h u_endian: add android to glibc clause 2016-09-13 10:04:13 +10:00