ac/nir: use ordered float comparisons except for not equal
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 23 Feb 2018 13:21:06 +0000 (14:21 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 26 Feb 2018 12:59:04 +0000 (13:59 +0100)
commite05507a427b79e481eb8e45d7aa3c9b4b78376bf
tree4af4eab1d6494bb7a7fee34fa073ee03b058b2b1
parent6451b0703ff3027b746d6268b98dd2b3e6698be5
ac/nir: use ordered float comparisons except for not equal

Original patch from Timothy Arceri, I have just fixed the
not equal case locally.

This fixes one important rendering issue in Wolfenstein 2
(the cutscene transition issue).

RadeonSI uses the same ordered comparisons, so I guess that
what we should do as well.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104302
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104905
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/amd/common/ac_nir_to_llvm.c