softpipe: fix computation of fragment[FACE] attribute
authorBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 15:46:25 +0000 (09:46 -0600)
committerBrian Paul <brianp@vmware.com>
Sun, 18 Apr 2010 16:02:11 +0000 (10:02 -0600)
commit10e4ec448e8011e8d446d83fc8bd61c7ba2d74be
tree27003aca721c84be2a45349f6c4abe622c6c7833
parent6756c07b66164a2f8c769ad5725b95115eb7a6e6
softpipe: fix computation of fragment[FACE] attribute

In TGSI, front facing is +1 and back-facing is -1.  We were computing
this attribute as +1 and 0 before.  However, the value isn't actually
used anywhere because we machine->Face attribute overrides it in
tgsi_exec.c.  That could be changed, removing some special-case code...
src/gallium/drivers/softpipe/sp_setup.c