pan/bi: Test CMP result_type optimization
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 6 Jan 2022 21:43:07 +0000 (16:43 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 27 May 2022 12:14:22 +0000 (12:14 +0000)
commit01ba3460a99d5488ac93ef126714a97808df7ad9
tree8d2ba39750685517d326143f9219e30ddcc21fa0
parent501a66cb5ce76ffca6aa663ea9f8b31d2cd71f07
pan/bi: Test CMP result_type optimization

Add unit tests ensuring the optimization applies in all the cases we care about,
as functional integration tests (CTS and Piglit) won't test this. Also add unit
tests for a few cases where we specifically cannot fuse, in case these cases are
missed by the tests.

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