pan/va: Dump unencodable instructions
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 22 Jun 2022 21:01:02 +0000 (17:01 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 13 Jul 2022 18:01:56 +0000 (18:01 +0000)
commitcc94409d70f4b2be6a0b5ccb290905f45f6b1297
tree2c45427650c4d6bb9c5adbf646a6c61a3a9228e5
parentfd1edbc6e56a3816757bc8122231f74c3dbbec29
pan/va: Dump unencodable instructions

When we assert out due to certain invalid encoding, it's helpful to know what
instruction is causing the failure, since it may not be obvious from the
assembly for large shaders. Now we get nice errors when failing:

   Invalid opcode:
      br0 = VAR_TEX.f32.flow8.store.skip.lod_mode.center , texture_index:0, varying_index: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