summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/SConscript
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-04-02 03:48:59 +0200
committerLuca Barbieri <[email protected]>2010-04-02 06:16:18 +0200
commitc476305cdeb1ca9d755983e2058cb44f5b9109f0 (patch)
tree4cf81a1cd1a8648400a7281e811601822231fce2 /src/gallium/auxiliary/SConscript
parent2ae66e9b97e9864367c26fc5f9cb86896bc83b45 (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/SConscript8
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',