summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-15 11:45:12 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-15 11:45:12 -0600
commitf30093418928dce5872ea179ed5d21d3b24b7c82 (patch)
treeb0b7368700cb660f0e5ed34e0b05a9c65ad6c969 /src/mesa/pipe/softpipe
parent3f70b504386e5d0b67cbd719769e44f33db0ae87 (diff)
added state funcs for vertex buffer/element info
Diffstat (limited to 'src/mesa/pipe/softpipe')
-rw-r--r--src/mesa/pipe/softpipe/Makefile1
-rw-r--r--src/mesa/pipe/softpipe/sp_context.h3
-rw-r--r--src/mesa/pipe/softpipe/sp_state.h8
3 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/Makefile b/src/mesa/pipe/softpipe/Makefile
index 615c612e9c..9c6d78c290 100644
--- a/src/mesa/pipe/softpipe/Makefile
+++ b/src/mesa/pipe/softpipe/Makefile
@@ -29,6 +29,7 @@ DRIVER_SOURCES = \
sp_state_sampler.c \
sp_state_setup.c \
sp_state_surface.c \
+ sp_state_vertex.c \
sp_tex_layout.c \
sp_tex_sample.c \
sp_surface.c
diff --git a/src/mesa/pipe/softpipe/sp_context.h b/src/mesa/pipe/softpipe/sp_context.h
index 8887c576c1..8b0e970ea2 100644
--- a/src/mesa/pipe/softpipe/sp_context.h
+++ b/src/mesa/pipe/softpipe/sp_context.h
@@ -64,6 +64,7 @@ enum interp_mode {
#define SP_NEW_SAMPLER 0x400
#define SP_NEW_TEXTURE 0x800
#define SP_NEW_STENCIL 0x1000
+#define SP_NEW_VERTEX 0x2000
struct softpipe_context {
@@ -88,6 +89,8 @@ struct softpipe_context {
struct pipe_stencil_state stencil;
struct pipe_mipmap_tree *texture[PIPE_MAX_SAMPLERS];
struct pipe_viewport_state viewport;
+ struct pipe_vertex_buffer vertex_buffer[PIPE_ATTRIB_MAX];
+ struct pipe_vertex_element vertex_element[PIPE_ATTRIB_MAX];
unsigned dirty;
/* Setup derived state. TODO: this should be passed in the program
diff --git a/src/mesa/pipe/softpipe/sp_state.h b/src/mesa/pipe/softpipe/sp_state.h
index 5adf5930b8..9e5ed96901 100644
--- a/src/mesa/pipe/softpipe/sp_state.h
+++ b/src/mesa/pipe/softpipe/sp_state.h
@@ -81,6 +81,14 @@ void softpipe_set_texture_state( struct pipe_context *,
void softpipe_set_viewport_state( struct pipe_context *,
const struct pipe_viewport_state * );
+void softpipe_set_vertex_element(struct pipe_context *,
+ unsigned index,
+ const struct pipe_vertex_element *);
+
+void softpipe_set_vertex_buffer(struct pipe_context *,
+ unsigned index,
+ const struct pipe_vertex_buffer *);
+
void softpipe_update_derived( struct softpipe_context *softpipe );
#endif