summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_state.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-14 18:58:50 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-14 18:59:25 -0700
commit3d81a956b9de709de17a98b93fead4d3307b2b99 (patch)
tree7d69a25ebb85a13c341408ff671b95ea18df7049 /src/mesa/pipe/softpipe/sp_state.h
parent1b6540b4b17969e9838facf5248fce34c9ff5c34 (diff)
gallium: rearrange vertex info/layout validation
Delay validation until someone really needs the vertex layout (vbuf alloc vertex buffer or point/line/tri setup/rendering). This will allow the vertex size to change depending on whether we're drawing points, lines or triangles.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state.h')
-rw-r--r--src/mesa/pipe/softpipe/sp_state.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state.h b/src/mesa/pipe/softpipe/sp_state.h
index af955c1e17..b79db0d1f1 100644
--- a/src/mesa/pipe/softpipe/sp_state.h
+++ b/src/mesa/pipe/softpipe/sp_state.h
@@ -59,6 +59,8 @@ struct gallivm_prog;
#endif
+struct vertex_info;
+
/** Subclass of pipe_shader_state */
struct sp_fragment_shader_state {
@@ -174,4 +176,12 @@ softpipe_map_texture_surfaces(struct softpipe_context *sp);
void
softpipe_unmap_texture_surfaces(struct softpipe_context *sp);
+
+struct vertex_info *
+softpipe_get_vertex_info(struct softpipe_context *softpipe);
+
+struct vertex_info *
+softpipe_get_vbuf_vertex_info(struct softpipe_context *softpipe);
+
+
#endif