summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_vs.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-05-27 14:42:15 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-05-27 14:45:52 +0100
commitf8762ba5234fd1b44e11e76bb5f58d2305c90572 (patch)
tree993d78827d7b6157a8c8f4b8dc369316ec1ff04e /src/gallium/auxiliary/draw/draw_vs.h
parentf64c44ad3e55467ce964871502445cf5a0fb46d6 (diff)
draw: explicitly list nr_inputs, outputs in varient key
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs.h b/src/gallium/auxiliary/draw/draw_vs.h
index ff3e19b2a8..17902ab86a 100644
--- a/src/gallium/auxiliary/draw/draw_vs.h
+++ b/src/gallium/auxiliary/draw/draw_vs.h
@@ -58,10 +58,12 @@ struct draw_vs_element {
struct draw_vs_varient_key {
unsigned output_stride;
- unsigned nr_elements:16;
+ unsigned nr_elements:8; /* max2(nr_inputs, nr_outputs) */
+ unsigned nr_inputs:8;
+ unsigned nr_outputs:8;
unsigned viewport:1;
unsigned clip:1;
- unsigned pad:14;
+ unsigned pad:5;
struct draw_vs_element element[PIPE_MAX_ATTRIBS];
};