pan/bi: Lower {i,u}{min,max} instructions
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 18 Oct 2020 19:52:25 +0000 (21:52 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 26 Oct 2020 18:11:24 +0000 (19:11 +0100)
commitf77bbc92364e9bcf82f892fdacbc090822b358d8
tree2a4373639dbee2fc92085e9b99ba9c98dce22cb3
parent1c8b8e3c82e2aa7bbbc9aae3f7b4982eee869ab6
pan/bi: Lower {i,u}{min,max} instructions

There's no native integer min/min instruction on Bifrost, lower those
to a cmp+bcsel pair.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7314>
src/panfrost/bifrost/bifrost_nir_algebraic.py