vc4: Switch to using nir_load_front_face.
authorEric Anholt <eric@anholt.net>
Tue, 17 May 2016 22:30:59 +0000 (15:30 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 May 2016 01:07:39 +0000 (18:07 -0700)
commit62087cb9b80c271139370a242841def40cfdabae
tree338753d68aed0a51377efb01ab26055c16f96deb
parent0700e4c0c79771a69ceb5f269f684650265ea900
vc4: Switch to using nir_load_front_face.

This will be generated by glsl_to_nir, and it turns out that this is a
more code-efficient path than the floating point math, anyway.

No change on shader-db, but drops an instruction in piglit's
glsl-fs-frontfacing.
src/gallium/drivers/vc4/vc4_nir_lower_io.c
src/gallium/drivers/vc4/vc4_program.c