glsl_to_tgsi: fix the value of gl_FrontFacing with native integers
authorMarek Olšák <marek.olsak@amd.com>
Thu, 16 Oct 2014 14:21:54 +0000 (16:21 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 21 Oct 2014 20:01:16 +0000 (22:01 +0200)
commit9ec305ead7750c7f91c79b043584c1997bacd9a7
tree40711b45a068fab073286a231f149a2e1e6f31f7
parente8764a46731aaa20d6c7bc98d227e1a94fafbf5b
glsl_to_tgsi: fix the value of gl_FrontFacing with native integers

We must convert it to boolean from the DX9 float encoding that Gallium
specifies.

Later, we should probably define that FACE should be 0 or ~0 if native
integers are supported.

Cc: 10.2 10.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp