summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/p_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/p_state.h')
-rw-r--r--src/mesa/pipe/p_state.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h
index 25e5861e1e..cad96807df 100644
--- a/src/mesa/pipe/p_state.h
+++ b/src/mesa/pipe/p_state.h
@@ -49,6 +49,7 @@
#define PIPE_ATTRIB_MAX 32
#define PIPE_MAX_COLOR_BUFS 8
#define PIPE_MAX_TEXTURE_LEVELS 16
+#define PIPE_MAX_FEEDBACK_ATTRIBS 16
/* fwd decl */
@@ -92,6 +93,20 @@ struct pipe_setup_state
float offset_scale;
};
+
+/**
+ * Post-transform vertex feeback
+ */
+struct pipe_feedback_state {
+ uint enabled:1; /**< enable feedback? */
+ uint discard:1; /**< discard primitives? */
+ uint interleaved:1; /**< interleaved output? */
+ uint num_attribs;
+ uint attrib[PIPE_MAX_FEEDBACK_ATTRIBS];
+ uint size[PIPE_MAX_FEEDBACK_ATTRIBS];
+};
+
+
struct pipe_poly_stipple {
unsigned stipple[32];
};