i965: support for two-sided lighting on Sandybridge
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 10 Dec 2010 05:01:44 +0000 (13:01 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 10 Dec 2010 05:25:22 +0000 (13:25 +0800)
commite47eacdc53aec6743c42c8d9ab8298f802161733
tree4262b8f4ad0f7b8a8ee56ef1abb7c3113b49edc3
parentd1196bbc191c4f1b355d432dcb2eeff9790fda34
i965: support for two-sided lighting on Sandybridge

VS places color attributes together so that SF unit can fetch the right
attribute according to object orientation. This fixes light issue in
mesa demo geartrain, projtex.
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_vs.h
src/mesa/drivers/dri/i965/brw_vs_emit.c
src/mesa/drivers/dri/i965/gen6_sf_state.c