pan/va: Print instructions with pack assert fails
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 8 Jul 2022 15:46:11 +0000 (11:46 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Jul 2022 18:01:56 +0000 (18:01 +0000)
commit2171412c66b1a0c9156cc78dda6f0b0e3c90bdab
treea7d8e6e8237acc9e93aa292239c9165336968c9f
parentcfeafef75514edd11d4bb127a43d9887162c0c31
pan/va: Print instructions with pack assert fails

va_pack asserts a large number of invariants about the instruction being packed.
If one of these fails (due to an invalid instruction), it's helpful to inspect
the failing instruction, as it may not be apparent in a large shader. Pass the
instruction through with all the assertions in va_pack for easier debugging.

Now assertion failures when packing are easier to debug:

   Invalid invariant lo.type == hi.type:
       = STORE.i32.flow2.wls br5, br2, wls_ptr[1], byte_offset:0

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