draw: add map/unmap directives for swtnl driver interface
authorKeith Whitwell <keithw@vmware.com>
Tue, 17 Feb 2009 12:07:09 +0000 (12:07 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 17 Feb 2009 12:07:09 +0000 (12:07 +0000)
commitbefa4ff50ec4728de70c04532f8c7342fbd70147
tree3ad8401102877c13d51465502128c28be6f3658b
parentc5c383596ddb26cd75e4b355918ad16915283b59
draw: add map/unmap directives for swtnl driver interface

Previously draw module asked for a pointer into (mapped) vertex data,
which it would incrementally fill and emit draw commands against.  This
was hard for the drivers to deal with, especially in the case where a
draw command would force a flush and thus an unmap of the vertex data.

With this change, the draw module explicitly maps & then unmaps vertex
data prior to emitting draw commands.
src/gallium/auxiliary/draw/draw_pipe_vbuf.c
src/gallium/auxiliary/draw/draw_pt.h
src/gallium/auxiliary/draw/draw_pt_emit.c
src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_emit.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_vbuf.h