tgsi_to_nir: Extract ttn_emulate_tgsi_front_face into its own function.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 8 Feb 2019 21:11:08 +0000 (22:11 +0100)
committerEric Anholt <eric@anholt.net>
Tue, 5 Mar 2019 19:13:27 +0000 (19:13 +0000)
commitf748fa47f84397490bba5c51466f769b18e96f35
tree8e061732491fd200731f364b4e5bcbb54eab5188
parent840c7d1ebd08785b7fff5efdfc1a7fb2a8ff94b1
tgsi_to_nir: Extract ttn_emulate_tgsi_front_face into its own function.

We'll need to use the same logic in other places, so it makes sense to
have a separate function for this.

Signed-Off-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/nir/tgsi_to_nir.c