draw: handle edge flags in llvm path
authorRoland Scheidegger <sroland@vmware.com>
Tue, 15 Dec 2015 17:02:48 +0000 (18:02 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 16 Dec 2015 02:55:25 +0000 (03:55 +0100)
commit8e195a62514800b53f8b8766d6c254a05de343bb
treed74a9a2998795880fab48dd0c230e5c567518920
parent13c0b1c7808dac7e84c9b3e1d2079f70bb0ade35
draw: handle edge flags in llvm path

We just ignored them altogether. While this feature is rather old-fashioned
supporting it is actually rather trivial.
This fixes the associated piglit tests (2 gl-1.0-edgeflag, 2 gl-2.0-edgeflag
and all (7) of point-vertex-id).

v2: comment fixes, and make the use of the edgeflag in clipmask consistent
with when it's actually there (should be impossible to hit a case where the
difference would actually matter but still...)

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