pan/va: Unit test va_mark_last
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 15 Jun 2022 21:19:56 +0000 (17:19 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Jun 2022 22:19:59 +0000 (22:19 +0000)
commit40accfd3b71dc1c15e9b911f0f0e56b527e4e256
tree1796fef116c07cbcb6bb522f40d20be124bf9968
parent4b7e337b45da6ac773a4e210391c67ef7e426ab8
pan/va: Unit test va_mark_last

This pass is super easy to unit test, so we have no excuse not to test
thoroughly. va_mark_last only inserts annotations in a shader without any
annotations, so our test cases are simply annotated shaders. The CASE macro just
has to compare the case against the case with the annotations stripped and added
back with va_mark_last.

In retrospect, I should have used that technique for the flow control insertion
tests too.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17091>
src/panfrost/bifrost/meson.build
src/panfrost/bifrost/valhall/test/test-mark-last.cpp [new file with mode: 0644]