pan/bi: Add fclamp unit tests
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 4 Aug 2021 16:12:31 +0000 (12:12 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 11 Aug 2021 18:59:26 +0000 (14:59 -0400)
commit4f347e96b82d2c149f2edcbb0bf5c6badabb520f
tree2bbe8f112eb42d55a08379cdc5e3c7298937277d
parentac636f5adb57704696c781a17f11609fad9035ec
pan/bi: Add fclamp unit tests

The negative cases here did not pass before this series, showing the bug
in the clamp optimization. By introducing the FCLAMP pseudo op, the bug
is fixed. Let's ensure we don't regress.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12205>
src/panfrost/bifrost/test/test-optimizer.c