freedreno/afuc: Fix PM4 enum parsing
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 31 Jul 2020 09:07:17 +0000 (11:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Aug 2020 17:51:01 +0000 (17:51 +0000)
commit27eea627ef2c6f02a276c7fa05216e6fee98c9ee
tree13dc18009a2eb1f06183d928cdb5d50bd2fc9b88
parenta5daaed587caba51cd485791d75a2aaa30409b9f
freedreno/afuc: Fix PM4 enum parsing

We were open-coding it, and getting variant parsing wrong for things
like "A4XX-" which don't explicitly include the version being
disassembled. Use the rnn function instead. This makes CP_INDIRECT show
up again. Also propagate const-ness to users.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6140>
src/freedreno/afuc/disasm.c