draw: Set the backend prim in the pt 'prepare' operation
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 2 Apr 2008 10:55:03 +0000 (11:55 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 2 Apr 2008 11:02:32 +0000 (12:02 +0100)
commitae3c91e98ce3355bca22738440f8ba313b3b8b23
tree11165b5c156a0f35c7ce831841a0d59b4cfa19d7
parent8e33194837dd206d920889851d9cf22190100c99
draw: Set the backend prim in the pt 'prepare' operation

Leaving it until 'run' is bad as the primitive is pretty much state
for some drivers and so needs to get set early.  In some drivers
this is used to determine things like vertex format, etc -- by the
time we get to 'run', it's too late to change this.
src/gallium/auxiliary/draw/draw_pt.c
src/gallium/auxiliary/draw/draw_pt.h
src/gallium/auxiliary/draw/draw_pt_fetch_emit.c
src/gallium/auxiliary/draw/draw_pt_vcache.c