summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/indices/SConscript
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-03-04 21:35:17 +0000
committerKeith Whitwell <[email protected]>2009-03-04 21:37:23 +0000
commit79a05a6b3f8a995c80d27a1f32f85ad84b1a6f9d (patch)
tree6d69f05b900da55b650407cb76a12394863668d4 /src/gallium/auxiliary/indices/SConscript
parent59311fb06c7bb20efe29ecdc237d0171ee959c0a (diff)
indices: add translate/generate functions for unfilled modes
Most of the time unfilled rendering requires a lot more thought than just translating triangles to lines or points. But sometimes, you can do exactly that, and it can be quite a bit quicker. Add code to do the translation. The caller has to determine whether it's a legal thing to do in the current state, in particular you'd need: - culling disabled - offset disabled - same front and back fill modes - possibly other stuff I can't think of.
Diffstat (limited to 'src/gallium/auxiliary/indices/SConscript')
-rw-r--r--src/gallium/auxiliary/indices/SConscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/indices/SConscript b/src/gallium/auxiliary/indices/SConscript
index 65a43a9f648..e5f7ee94845 100644
--- a/src/gallium/auxiliary/indices/SConscript
+++ b/src/gallium/auxiliary/indices/SConscript
@@ -7,11 +7,20 @@ env.CodeGenerate(
command = 'python $SCRIPT > $TARGET'
)
+env.CodeGenerate(
+ target = 'u_unfilled_gen.c',
+ script = 'u_unfilled_gen.py',
+ source = [],
+ command = 'python $SCRIPT > $TARGET'
+)
+
indices = env.ConvenienceLibrary(
target = 'indices',
source = [
# 'u_indices.c',
+# 'u_unfilled_indices.c',
'u_indices_gen.c',
+ 'u_unfilled_gen.c',
])
auxiliaries.insert(0, indices)