nir/algebraic: mark some optimizations with fsat(NaN) as inexact
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Aug 2020 14:08:55 +0000 (16:08 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 1 Sep 2020 09:20:03 +0000 (11:20 +0200)
commitbc123c396a99b2f6ff845792374d6a8d5de5d15e
tree6f909c4b8d8d4880f70a379784384b73256c1f69
parenta6c4db9798b3a4b496ad18430dcba1839986b896
nir/algebraic: mark some optimizations with fsat(NaN) as inexact

If a is Nan, fsat(NaN) is expected to be 0 and some optimizations
should be marked as inexact.

Fixes a GPU hang with Death Stranding and RADV/ACO (RADV/LLVM
isn't affected because it lowers fsat).

No fossils-db change.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3368
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6519>
src/compiler/nir/nir_opt_algebraic.py