nir: update nir_is_supported_terminator_condition()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 11 Aug 2022 01:09:26 +0000 (11:09 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Sep 2022 01:01:14 +0000 (01:01 +0000)
commit96c19d23c95700c51a50c2c979067cc552abe441
tree76e2686c2412702e178947a0850f595aa9d6d4a7
parentae7532e0cce8b5987335aadda712f1dc3f8ad5e3
nir: update nir_is_supported_terminator_condition()

Ever since 4246c2869c3c and 7d85dc4f350b loop unrolling can no
longer depend on inot being eliminated from the loop
terminator condition so we need to be able to handle it.

Here we simply check to see if the inot contains a simple
terminator condition we previously handled. We also update
the previous users of this function to use a newly name
copy of the previous behaviour
nir_is_terminator_condition_with_two_inputs().

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18006>
src/compiler/nir/nir_inline_uniforms.c
src/compiler/nir/nir_loop_analyze.c
src/compiler/nir/nir_loop_analyze.h
src/gallium/frontends/lavapipe/lvp_inline_uniforms.c