diff options
author | Luca Barbieri <[email protected]> | 2010-04-02 03:48:59 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-04-02 06:16:18 +0200 |
commit | c476305cdeb1ca9d755983e2058cb44f5b9109f0 (patch) | |
tree | 4cf81a1cd1a8648400a7281e811601822231fce2 /src/gallium/auxiliary/SConscript | |
parent | 2ae66e9b97e9864367c26fc5f9cb86896bc83b45 (diff) |
gallium/util: pregenerate half float tables
This solution avoids the issue of how to run the initializers and
also allows those pages (and the parts of them in processor caches)
to be shared between multiple processes.
The drawback is slightly higher library size.
Diffstat (limited to 'src/gallium/auxiliary/SConscript')
-rw-r--r-- | src/gallium/auxiliary/SConscript | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/SConscript b/src/gallium/auxiliary/SConscript index d0443db3f78..73d4150448f 100644 --- a/src/gallium/auxiliary/SConscript +++ b/src/gallium/auxiliary/SConscript @@ -29,6 +29,14 @@ env.CodeGenerate( source = ['util/u_format.csv'], command = 'python $SCRIPT $SOURCE > $TARGET' ) + +env.CodeGenerate( + target = 'util/u_half.c', + script = 'util/u_half.py', + source = [], + command = 'python $SCRIPT > $TARGET' +) + env.Depends('util/u_format_table.c', [ 'util/u_format_parse.py', 'util/u_format_pack.py', |