nir: fix typo in lower_double options handling
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 10 Nov 2022 10:24:48 +0000 (21:24 +1100)
committerEric Engestrom <eric@engestrom.ch>
Thu, 17 Nov 2022 14:05:03 +0000 (14:05 +0000)
commit18a8b0a122292bfa9a984b4035e2898476b8525c
tree97a8ef755ce080120d20b08484e80f0b1c63e9a8
parentf77567942a5b4de2d90f93494328bcab2f4f9601
nir: fix typo in lower_double options handling

Seems the intention was to check that both flags were not enabled
instead we were checking that the floor flag was both set and not
set so the result would always be false.

Fixes: 3749a6ecd282 ("nir: honor lower_double options for ffloor and ffract")

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19642>
(cherry picked from commit 34c52d8cb98e74a9debcd2605b377170c025582a)
.pick_status.json
src/compiler/nir/nir_opt_algebraic.py