draw: implement proper primitive assembler as a pipeline stage
authorZack Rusin <zackr@vmware.com>
Fri, 2 Aug 2013 06:25:42 +0000 (02:25 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 3 Aug 2013 04:38:58 +0000 (00:38 -0400)
commitc9c211fae194ac6bf50e0c579c8670590690dd6e
tree224e6f6d9fc6bc5979c5e9bc3bdd056a33458ed5
parent8a94d15fbaf46caf1a25034acbbdbed33f46f911
draw: implement proper primitive assembler as a pipeline stage

we used to have a face primitive assembler that we ran after if
the gs was missing but we had adjacency primitives in the pipeline,
lets convert it to a pipeline stage, which allows us to use it
to inject outputs (primitive id) into the vertices. it's also
a lot cleaner because the decomposition is already handled for us.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
12 files changed:
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pipe.c
src/gallium/auxiliary/draw/draw_pipe.h
src/gallium/auxiliary/draw/draw_pipe_ia.c [new file with mode: 0644]
src/gallium/auxiliary/draw/draw_pipe_validate.c
src/gallium/auxiliary/draw/draw_prim_assembler.c [deleted file]
src/gallium/auxiliary/draw/draw_prim_assembler.h [deleted file]
src/gallium/auxiliary/draw/draw_prim_assembler_tmp.h [deleted file]
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c