summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_vbuf.h
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-12-23 13:26:25 +0000
committerKeith Whitwell <keithw@vmware.com>2008-12-23 15:11:41 +0000
commitf5d4274b4a8effc70c238060c3728aea629663df (patch)
treebee1ec5d2e694f4678851a4b848bfeaa2ad831ef /src/gallium/auxiliary/draw/draw_vbuf.h
parented7ba03256fc4503d5d7483d032014ac9e8242fe (diff)
draw: allow driver-override of draw_need_pipeline()
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vbuf.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_vbuf.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vbuf.h b/src/gallium/auxiliary/draw/draw_vbuf.h
index b0aa2df309..9ac068c47b 100644
--- a/src/gallium/auxiliary/draw/draw_vbuf.h
+++ b/src/gallium/auxiliary/draw/draw_vbuf.h
@@ -55,6 +55,17 @@ struct vbuf_render {
unsigned max_vertex_buffer_bytes;
/**
+ * Query if the hardware driver needs assistance for a particular
+ * combination of rasterizer state and primitive.
+ *
+ * Currently optional.
+ */
+ boolean (*need_pipeline)(const struct vbuf_render *render,
+ const struct pipe_rasterizer_state *rasterizer,
+ unsigned int prim );
+
+
+ /**
* Get the hardware vertex format.
*
* XXX: have this in draw_context instead?