swr: rework vert <-> frag shader linkage logic
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 10 Nov 2016 02:04:01 +0000 (21:04 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 23 Nov 2016 01:27:20 +0000 (20:27 -0500)
commit6d6ef3fb5594393affab264c9c51570475b7b470
tree0bf5a1035a9bfb4aa1e828c143649ae6fbec0d66
parent2595aebd91956cbe47d2805d8c7beac2d9de7fa8
swr: rework vert <-> frag shader linkage logic

Fixes a few things:
 - sprite coords only apply to generic varyings, and are a bitmask
 - back color only applies in 2-sided lighting mode
 - handle some odd situations between only some front/back colors being
   there. This is only semi-legal in GL, but we shouldn't start
   crashing.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_shader.cpp