summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vbuf.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-01-09 10:08:06 +0000
committerKeith Whitwell <[email protected]>2009-01-09 10:08:06 +0000
commite3734593aea202e99e77febea7b86c904080939f (patch)
tree69856674e2062c55ec5eec95eb0e31225a943084 /src/gallium/auxiliary/draw/draw_vbuf.h
parent221352bbd79a0ea92ce31cffb65537f62ee5668e (diff)
parent5cad143e545775acacee294049345c6a3868c51d (diff)
Merge commit 'origin/gallium-0.2' into gallium-xlib-rework
Conflicts: progs/glsl/Makefile
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vbuf.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_vbuf.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vbuf.h b/src/gallium/auxiliary/draw/draw_vbuf.h
index b0aa2df3099..7e1df88f0b8 100644
--- a/src/gallium/auxiliary/draw/draw_vbuf.h
+++ b/src/gallium/auxiliary/draw/draw_vbuf.h
@@ -30,7 +30,7 @@
* Vertex buffer drawing stage.
*
* \author Keith Whitwell <[email protected]>
- * \author Jos� Fonseca <[email protected]>
+ * \author Jose Fonseca <[email protected]>
*/
#ifndef DRAW_VBUF_H_
@@ -38,6 +38,7 @@
+struct pipe_rasterizer_state;
struct draw_context;
struct vertex_info;
@@ -55,6 +56,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?