summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw/draw_context.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-30 16:49:24 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-30 16:49:24 -0600
commit898d68a3762f84f0d435cda2f6aafddd356d1788 (patch)
tree50da7df858f9c160fe6bcd33b617975315a07eda /src/mesa/pipe/draw/draw_context.h
parent963b8a74493a474560447080b23407bfe4c707c5 (diff)
Consolidate vertex-related code in new draw_vertex.c
A few functions which were basically duplicated between softpipe and the i915 driver are now re-used: draw_emit_vertex_attr() draw_compute_vertex_size()
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.h')
-rw-r--r--src/mesa/pipe/draw/draw_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_context.h b/src/mesa/pipe/draw/draw_context.h
index 21ee18e7cf..03679848b5 100644
--- a/src/mesa/pipe/draw/draw_context.h
+++ b/src/mesa/pipe/draw/draw_context.h
@@ -42,6 +42,7 @@
struct vertex_buffer;
+struct vertex_info;
struct draw_context;
struct draw_stage;
@@ -96,6 +97,8 @@ void draw_set_twoside_attributes(struct draw_context *draw,
uint front0, uint back0,
uint front1, uint back1);
+void draw_compute_vertex_size(struct vertex_info *vinfo);
+
unsigned draw_prim_info( unsigned prim, unsigned *first, unsigned *incr );
unsigned draw_trim( unsigned count, unsigned first, unsigned incr );