summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_private.h
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-06-14 15:11:59 +0100
committerZack Rusin <[email protected]>2010-06-15 09:12:19 -0400
commitb85a361ccbac956d2842251395c048a4b3f4c440 (patch)
tree8acef8fdd62dc93eae50ff359acbffc293e8bffa /src/gallium/auxiliary/draw/draw_private.h
parent5d4d4b2134595c4ed8060d6d002a0cd54690c289 (diff)
draw wip
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h48
1 files changed, 38 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index fe867ff8e27..c6dc7348c12 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -265,6 +265,39 @@ struct draw_context
void *driver_private;
};
+
+
+
+struct draw_fetch_info {
+ boolean linear;
+ unsigned start;
+ void *elts;
+ unsigned count;
+
+
+};
+
+struct draw_vertex_info {
+ struct vertex_header *verts;
+ unsigned vertex_size;
+ unsigned stride;
+ unsigned count;
+};
+
+
+struct draw_prim_info {
+ boolean linear;
+ unsigned start;
+
+ ushort *elts;
+ unsigned count;
+
+ unsigned prim;
+ unsigned *primitive_lengths;
+ unsigned primitive_count;
+};
+
+
/*******************************************************************************
* Draw common initialization code
*/
@@ -342,18 +375,13 @@ void draw_pipeline_destroy( struct draw_context *draw );
#define DRAW_PIPE_FLAG_MASK (0xf<<12)
void draw_pipeline_run( struct draw_context *draw,
- unsigned prim,
- struct vertex_header *vertices,
- unsigned vertex_count,
- unsigned stride,
- const ushort *elts,
- unsigned count );
+ const struct draw_vertex_info *vert,
+ const struct draw_prim_info *prim);
void draw_pipeline_run_linear( struct draw_context *draw,
- unsigned prim,
- struct vertex_header *vertices,
- unsigned count,
- unsigned stride );
+ const struct draw_vertex_info *vert,
+ const struct draw_prim_info *prim);
+