nvfx: Add support for two sided color
authorLuca Barbieri <luca@luca-barbieri.com>
Mon, 11 Jan 2010 00:09:44 +0000 (01:09 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Mon, 12 Apr 2010 18:46:18 +0000 (20:46 +0200)
commit7fc7b759950e8c7482a3dbbf25d6604960c25092
tree1c915912f6329215a6c40e52173698ac8a139559
parenta2ddae0fc3afcf52f79ab9ceb7d84342eb3dd612
nvfx: Add support for two sided color

This patch adds support for two-sided vertex color to nv30/nv40.

When set, the COLOR0/1 fs inputs on back faces will be wired to vs outputs BCOLOR0/1.
This makes OpenGL two sided lighting work, which can be tested with progs/demos/projtex.
src/gallium/drivers/nvfx/nvfx_context.h
src/gallium/drivers/nvfx/nvfx_state.c