agx: Add unit test infrastructure
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 12 Apr 2022 22:06:13 +0000 (18:06 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 2 May 2022 01:58:29 +0000 (21:58 -0400)
commit3d8c2f26932ed28f50f5f5c4d031d498d4606af9
tree7731fc5cddd993599dfb059c6e817c2e337635ae
parent43c701424bead63abb533250b94ea17611a60a77
agx: Add unit test infrastructure

Lifted from Bifrost. Add some basic optimizer tests (they pass!) to show the
compiler is ready to be unit tested. Given we can't have hardware CI for Asahi
yet -- and dEQP is still pretty janky -- unit testing should prove quite useful.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16268>
src/asahi/compiler/meson.build
src/asahi/compiler/test/agx_test.h [new file with mode: 0644]
src/asahi/compiler/test/test-optimizer.cpp [new file with mode: 0644]