llvmpipe: make the front-face behavior match the gallium spec
authorZack Rusin <zackr@vmware.com>
Fri, 2 Aug 2013 19:50:16 +0000 (15:50 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 2 Aug 2013 19:50:16 +0000 (15:50 -0400)
commit2d15f4746ba4c5d0146912550442b96386e4a32d
treed50353c32f7cdc7a76ee4abc892a2f2187c46f1c
parent4f83956347a31c68ce9920ead75e07723cf3b5bb
llvmpipe: make the front-face behavior match the gallium spec

The spec says that front-face is true if the value is >0 and false
if it's <0. To make sure that we follow the spec, lets just
subtract 0.5 from our value (llvmpipe did 1 for frontface and 0
otherwise), which will get us a positive num for frontface and
negative for backface.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_setup.c