tgsi_to_nir: Fix TGSI LIT translation by using flt.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 13 Feb 2019 22:45:47 +0000 (00:45 +0200)
committerEric Anholt <eric@anholt.net>
Tue, 5 Mar 2019 19:13:27 +0000 (19:13 +0000)
commitfa076acbc097b9251044f7419760b1d4be56992c
tree5ed46f1de77331d128e232be9d8b7b047efdd623
parent28be7b33b959da0eccf8a24b72a441471b7df5f7
tgsi_to_nir: Fix TGSI LIT translation by using flt.

TGSI spec says LIT needs a "greater than" comparison. NIR doesn't have that,
so let's use "less than" and swap the arguments. Previously "greater than or equal"
was used by tgsi_to_nir which is incorrect.

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