summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_prim_assembler.h
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2013-08-08 15:44:10 -0400
committerZack Rusin <zackr@vmware.com>2013-08-08 20:54:25 -0400
commit662a4d4a120cb0a07023f00e3c5e4a0809428a53 (patch)
treead0d0a704411cdccb2a81ea0599209bb350f8077 /src/gallium/auxiliary/draw/draw_prim_assembler.h
parent1d425c4c6df2affd3b36b98e28357c59f7f02f58 (diff)
downloadexternal_mesa3d-662a4d4a120cb0a07023f00e3c5e4a0809428a53.zip
external_mesa3d-662a4d4a120cb0a07023f00e3c5e4a0809428a53.tar.gz
external_mesa3d-662a4d4a120cb0a07023f00e3c5e4a0809428a53.tar.bz2
draw: rewrite primitive assembler
We can't be injecting the primitive id's in the pipeline because by that time the primitives have already been decomposed. To properly number the primitives we need to handle the adjacency primitives by hand. This patch moves the prim id injection into the original primitive assembler and completely removes the useless pipeline stage. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_prim_assembler.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_prim_assembler.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_prim_assembler.h b/src/gallium/auxiliary/draw/draw_prim_assembler.h
index 2ef7c51..5ba715b 100644
--- a/src/gallium/auxiliary/draw/draw_prim_assembler.h
+++ b/src/gallium/auxiliary/draw/draw_prim_assembler.h
@@ -46,6 +46,14 @@
#include "draw/draw_private.h"
+struct draw_assembler;
+
+struct draw_assembler *
+draw_prim_assembler_create(struct draw_context *draw);
+
+void
+draw_prim_assembler_destroy(struct draw_assembler *ia);
+
boolean
draw_prim_assembler_is_required(const struct draw_context *draw,
const struct draw_prim_info *prim_info,
@@ -59,4 +67,8 @@ draw_prim_assembler_run(struct draw_context *draw,
struct draw_vertex_info *out_vert_info);
+void
+draw_prim_assembler_prepare_outputs(struct draw_assembler *ia);
+
+
#endif