mesa/src/util
Kenneth Graunke 33f0f68d59 ralloc: Implement a new ralloc_adopt() API.
ralloc_adopt() reparents all children from one context to another.
Conceptually, ralloc_adopt(new_ctx, old_ctx) behaves like this
pseudocode:

   foreach child of old_ctx:
      ralloc_steal(new_ctx, child)

However, ralloc provides no way to iterate over a memory context's
children, and ralloc_adopt does this task more efficiently anyway.

One potential use of this is to implement a memory-sweeper pass: first,
steal all of a context's memory to a temporary context.  Then, walk over
anything that should be kept, and ralloc_steal it back to the original
context.  Finally, free the temporary context.  This works when the
context is something that can't be freed (i.e. an important structure).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
2015-04-02 14:19:41 -07:00
..
tests/hash_table util/hash: Silence comparison between signed and unsigned integer warnings in tests 2015-02-17 12:29:58 -08:00
.gitignore util: add u_atomic_test to .gitignore 2014-12-16 13:50:59 +02:00
Android.mk util: Include in Android builds 2014-10-03 01:25:28 +01:00
bitset.h util: replace Elements() with ARRAY_SIZE() 2015-03-02 08:55:31 -07:00
format_srgb.h util: include c99_compat.h in format_srgb.h to get 'inline' definition 2014-08-04 14:06:13 -06:00
format_srgb.py gallium: Move sRGB <-> RGB handling to libmesautil 2014-08-04 11:07:15 -07:00
hash_table.c util/hash_table: Do a full search when adding new items 2015-02-07 17:01:05 -08:00
hash_table.h hash_table: Rename insert_with_hash to insert_pre_hashed 2015-01-15 13:21:27 -08:00
macros.h Add macro for unused function attribute. 2015-03-09 17:28:39 -07:00
Makefile.am util: Add a roundeven test. 2015-03-18 21:06:26 -07:00
Makefile.sources mesa: Replace _mesa_round_to_even() with _mesa_roundeven(). 2015-03-18 21:06:26 -07:00
mesa-sha1.c Rename sha1.c and sha1.h to mesa-sha1.c and mesa-sha1.h 2015-01-19 10:53:07 -08:00
mesa-sha1.h Rename sha1.c and sha1.h to mesa-sha1.c and mesa-sha1.h 2015-01-19 10:53:07 -08:00
ralloc.c ralloc: Implement a new ralloc_adopt() API. 2015-04-02 14:19:41 -07:00
ralloc.h ralloc: Implement a new ralloc_adopt() API. 2015-04-02 14:19:41 -07:00
register_allocate.c ra: Disable round-robin strategy for optimistically colorable nodes. 2015-02-23 20:55:40 +02:00
register_allocate.h Fix invalid extern "C" around header inclusion. 2015-03-05 10:21:40 -08:00
rgtc.c util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
rgtc.h util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
roundeven_test.c util: Add a roundeven test. 2015-03-18 21:06:26 -07:00
rounding.h util: Optimize _mesa_roundeven with SSE 4.1. 2015-03-18 21:06:26 -07:00
SConscript scons: Use -Werror MSVC compatibility flags per-directory. 2015-03-04 15:12:06 +00:00
set.c util/set: Do a full search when adding new items 2015-02-07 17:01:05 -08:00
set.h util/hash_set: Rework the API to know about hashing 2015-01-15 13:21:27 -08:00
simple_list.h mesa: Port a variant of 68afbe89c7 to util/ 2015-01-28 16:33:34 -08:00
strtod.cpp util: initialize locale_t with a static object 2014-10-30 02:26:19 -07:00
strtod.h util: add _mesa_strtod and _mesa_strtof 2014-10-30 02:26:19 -07:00
texcompress_rgtc_tmp.h util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
u_atomic.h include: Add helper header to help trap includes inside extern C. 2015-03-06 12:38:55 +00:00
u_atomic_test.c util/u_atomic: Ignore warnings interlocked accesses. 2015-03-25 10:42:48 +00:00