intel/compiler: reemit boolean resolve for inverted if on gen5
authorDave Airlie <airlied@redhat.com>
Thu, 21 Dec 2023 00:39:08 +0000 (10:39 +1000)
committerEric Engestrom <eric@engestrom.ch>
Tue, 9 Jan 2024 19:37:45 +0000 (19:37 +0000)
commit10bb376e09b1e2d328980446bfc5a227f9821fbd
tree16a0c33168dc60d4bc943ce35b6a171d11e03a22
parent8ee03f2437d4469b161148698720c7734e86f19c
intel/compiler: reemit boolean resolve for inverted if on gen5

Gen5 adds some boolean conversion instructions after nir emits,
but that nir srcs don't line up with them, so reemit the boolean
conversion if we reemit the inot.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 31b5f5a51f3a ("nir/opt_if: Simplify if's with general conditions")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26782>
(cherry picked from commit 56a72e014fcda3c52cf119115cb71fce2fad86d8)
.pick_status.json
src/intel/compiler/brw_fs_nir.cpp