agx: Validate widths of vectors
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 20 Dec 2022 16:16:55 +0000 (11:16 -0500)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 5 Jan 2023 16:49:22 +0000 (11:49 -0500)
commit73ac73308b079cc66468169b20a5bfd2d880baf3
treebf7fb5ce5bc16da5040d2e4e7dc3269c2f792819
parent6685dba75ea3d91bb3d6809cbb7b28e5709c59ad
agx: Validate widths of vectors

Check the invariant that the widths of vectors in the IR are consistent, by
checking that write registers and read registers match up between the writers
and readers respectively.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20446>
src/asahi/compiler/agx_validate.c