From f5d4274b4a8effc70c238060c3728aea629663df Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 23 Dec 2008 13:26:25 +0000 Subject: draw: allow driver-override of draw_need_pipeline() --- src/gallium/auxiliary/draw/draw_vbuf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gallium/auxiliary/draw/draw_vbuf.h') 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 @@ -54,6 +54,17 @@ struct vbuf_render { unsigned max_indices; 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. * -- cgit v1.2.3