First attempt at building vertex buffers post-clip.
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 25 Sep 2007 12:20:53 +0000 (13:20 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 25 Sep 2007 12:23:20 +0000 (13:23 +0100)
commita37e0daeb97bb36ba10038b12a909e22e08b52c4
tree6c8a10ceb9a7764a63db627f0602f552709631d2
parent45b37dc078130b64e110d1a965960c60c56f0e60
First attempt at building vertex buffers post-clip.

Build a buffer of contigous vertices and indices at the backend of our
software transformation/clipping path.  This will become the mechanism
for emitting buffers of vertices to rasterization hardware.

This is similar to but not the same as the post-transform vertex cache.
In particular, these vertices are subject to clipping, culling, poly offset,
etc.  The vertices emitted will all be used by hardware.

TODOs include the actual transformation to hardware vertex formats, moving
this out of softpipe to somewhere more useful and allowing >1 primitive to
share the generated VB.
src/mesa/pipe/draw/draw_clip.c
src/mesa/pipe/draw/draw_prim.c
src/mesa/pipe/draw/draw_private.h
src/mesa/pipe/draw/draw_vertex_cache.c
src/mesa/pipe/draw/draw_vertex_shader.c
src/mesa/pipe/softpipe/Makefile
src/mesa/pipe/softpipe/sp_context.c
src/mesa/pipe/softpipe/sp_context.h
src/mesa/pipe/softpipe/sp_prim_setup.c
src/mesa/pipe/softpipe/sp_prim_setup.h
src/mesa/pipe/softpipe/sp_prim_vbuf.c [new file with mode: 0644]