llvmpipe: don't interpolate front face or prim id
authorZack Rusin <zackr@vmware.com>
Fri, 2 Aug 2013 05:53:15 +0000 (01:53 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 3 Aug 2013 00:12:53 +0000 (20:12 -0400)
commitbff0d87668538196a2d3ef1400382e4deb0e0435
treea140bc8ca4ba8256da1927b8a6766a1457827038
parent8e77e5e543e917dcd172fcb0390f885ffa6fbc2a
llvmpipe: don't interpolate front face or prim id

The loop was iterating over all the fs inputs and setting them
to perspective interpolation, then after the loop we were
creating extra output slots with the correct interpolation. Instead
of injecting bogus extra outputs, just set the interpolation
on front face and prim id correctly when doing the initial scan
of fs inputs.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_derived.c