draw: fix front face injection
authorZack Rusin <zackr@vmware.com>
Fri, 2 Aug 2013 05:50:05 +0000 (01:50 -0400)
committerZack Rusin <zackr@vmware.com>
Sat, 3 Aug 2013 04:36:39 +0000 (00:36 -0400)
commit8a94d15fbaf46caf1a25034acbbdbed33f46f911
treeb16b73f0005b6e994a8ad92f0b69288db35df278
parent4c9f12d69c7e8a24ac6281481f579b1088c505b0
draw: fix front face injection

Inject front face only if the fragment shader uses it and
propagate through all channels because otherwise we'll
need to figure out the exact swizzle that the fs expects and
it's just simpler to make sure all the components within
the front face register are correctly set.

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/auxiliary/draw/draw_pipe_unfilled.c