Allows drivers that implement line stipple to turn off this drawing stage.
/* these defaults are oriented toward the needs of softpipe */
draw->wide_point_threshold = 1000000.0; /* infinity */
draw->wide_line_threshold = 1.0;
+ draw->line_stipple = TRUE;
draw->reduced_prim = ~0; /* != any of PIPE_PRIM_x */
/**
+ * Tells the draw module whether or not to implement line stipple.
+ */
+void
+draw_enable_line_stipple(struct draw_context *draw, boolean enable)
+{
+ draw_do_flush( draw, DRAW_FLUSH_STATE_CHANGE );
+ draw->line_stipple = enable;
+}
+
+
+/**
* Ask the draw module for the location/slot of the given vertex attribute in
* a post-transformed vertex.
*
void draw_wide_line_threshold(struct draw_context *draw, float threshold);
+void draw_enable_line_stipple(struct draw_context *draw, boolean enable);
+
+
boolean draw_use_sse(struct draw_context *draw);
void
float wide_point_threshold; /**< convert pnts to tris if larger than this */
float wide_line_threshold; /**< convert lines to tris if wider than this */
+ boolean line_stipple; /**< do line stipple? */
boolean use_sse;
/* If a prim stage introduces new vertex attributes, they'll be stored here
extern void draw_vertex_shader_queue_flush( struct draw_context *draw );
-struct tgsi_exec_machine;
-
extern void draw_update_vertex_fetch( struct draw_context *draw );
+extern boolean draw_need_pipeline(const struct draw_context *draw);
+
/* Prototype/hack
*/