tgsi: add new tgsi_two_side.c utility code
authorBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2015 22:29:17 +0000 (16:29 -0600)
commita65bdf5f47689b52ec97181ec870b089872b508e
tree64dde4eb974396e68a1685c0649003f05930205c
parentda33c2434b1dc4ca24a131a9625166278333b7d3
tgsi: add new tgsi_two_side.c utility code

This could be used by any driver where the device doesn't directly
support two-sided lighting.  This code modifies a fragment shader
to accecpt back-face colors and choose between the front/back colors
depending on the triangle's front-face sign.
src/gallium/auxiliary/Makefile.sources
src/gallium/auxiliary/tgsi/tgsi_two_side.c [new file with mode: 0644]
src/gallium/auxiliary/tgsi/tgsi_two_side.h [new file with mode: 0644]