draw: fix broken polygon offset stage
authorBrian Paul <brianp@vmware.com>
Thu, 21 Feb 2013 15:18:02 +0000 (08:18 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 22 Feb 2013 23:49:05 +0000 (16:49 -0700)
commitd6b8b116eec3c24ef9f2d292315f70ea8cbaa040
treeb88bc728692205fdd08090092e691c21046ca15a
parenta2c105e31e47779ce1ddd80c62fc436292e40436
draw: fix broken polygon offset stage

There were several issues.  We weren't handling different front/back
polygon fill modes.  We weren't checking whether the offset applied to
fill mode vs. line mode vs. point mode.

Fixes problems found with the Visualization Toolkit (VTK) test suite.

Note: This is a candidate for the stable branches.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_offset.c