pan/bi: Lower 8-bit min/max to bcsel+comparison
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 24 Jun 2022 13:30:04 +0000 (09:30 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 19 Sep 2022 17:22:58 +0000 (17:22 +0000)
commit82b912f8445732ebb46ab3834cee2ce97fe7eb18
tree463e735f56442c45e151980ee0cec2606603ab43
parent4ee56ecd9c8b02b917fece87d80c17f641fa2568
pan/bi: Lower 8-bit min/max to bcsel+comparison

We don't have an 8-bit CSEL, so this is the best we can do. It's easier to write
the lowering as an algebraic rule since we don't need to do anything clever.
Fixes integer_ops.integer_clamp.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18656>
src/panfrost/bifrost/bifrost_nir_algebraic.py