summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vs.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-21 20:28:56 +0100
committerKeith Whitwell <[email protected]>2008-05-23 09:16:56 +0100
commit889473b3f5a216bd753c357974d6bae29fe3c41d (patch)
tree70c6ae6a102867228105cddee1e4a068e0871706 /src/gallium/auxiliary/draw/draw_vs.h
parent030af06691bc5bc82ca141a576da7a2edffe9d1c (diff)
draw: add viewport to varient state
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs.h b/src/gallium/auxiliary/draw/draw_vs.h
index 5a8d0da06d6..ff3e19b2a88 100644
--- a/src/gallium/auxiliary/draw/draw_vs.h
+++ b/src/gallium/auxiliary/draw/draw_vs.h
@@ -58,7 +58,10 @@ struct draw_vs_element {
struct draw_vs_varient_key {
unsigned output_stride;
- unsigned nr_elements;
+ unsigned nr_elements:16;
+ unsigned viewport:1;
+ unsigned clip:1;
+ unsigned pad:14;
struct draw_vs_element element[PIPE_MAX_ATTRIBS];
};
@@ -88,6 +91,9 @@ struct draw_vs_varient {
void (*set_constants)( struct draw_vs_varient *,
const float (*constants)[4] );
+ void (*set_viewport)( struct draw_vs_varient *,
+ const struct pipe_viewport_state * );
+
void (PIPE_CDECL *run_linear)( struct draw_vs_varient *shader,
unsigned start,
unsigned count,