draw: fix vbuf caching of vertices with inject front face
authorZack Rusin <zackr@vmware.com>
Tue, 10 Dec 2013 05:06:48 +0000 (00:06 -0500)
committerZack Rusin <zackr@vmware.com>
Tue, 10 Dec 2013 21:40:54 +0000 (16:40 -0500)
commit48b07fb4fc7e936ee1da4ad856a83740be65ddaf
tree7f5d31ad582d8f0874bd1d4df273b7e1f7645fdf
parent155139059ba588da1161eaa692515cacdead9f4e
draw: fix vbuf caching of vertices with inject front face

Caching in the vbuf module meant that once a vertex has been
emitted it was cached, but it's possible for a vertex at the
same location to be emitted again, but this time with a different
front-face semantic. Caching was causing the first version of the
vertex to be emitted, which resulted in the renderer getting
incorrect front-face attributes. By reseting the vertex_id (which
is used for caching) we make sure that once a front-face info
has been injected the vertex will endup getting emitted.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_unfilled.c