draw: don't cull tris with zero area
authorRoland Scheidegger <sroland@vmware.com>
Thu, 26 Oct 2017 19:23:27 +0000 (21:23 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 27 Oct 2017 20:37:19 +0000 (22:37 +0200)
commit3e4fd2d4b185dac55a481384f8ce3a8c93d78f87
tree7ff7c3f4ba5af976c31969ed1d8ed19aa1a61758
parentf7f12780c82fa566be5622b077c1279d15dd5972
draw: don't cull tris with zero area

Culling tris with zero area seems like a great idea, but apparently with
fill mode line (and point) we're supposed to draw them, at least some tests
for some other state tracker complained otherwise.
Such tris also always seem to be back facing (not sure if this can be
inferred from anything, since in a mathematical sense it cannot really be
determined), so make sure to account for this when filling in the face
information.
(For solid tris, this is of course unnecessary, drivers will throw the tris
away later in any case.)

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_cull.c
src/gallium/auxiliary/draw/draw_pipe_unfilled.c