diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-02-14 18:58:50 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-02-14 18:59:25 -0700 |
commit | 3d81a956b9de709de17a98b93fead4d3307b2b99 (patch) | |
tree | 7d69a25ebb85a13c341408ff671b95ea18df7049 /src/mesa/pipe/softpipe/sp_state.h | |
parent | 1b6540b4b17969e9838facf5248fce34c9ff5c34 (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.h | 10 |
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 |