freedreno/rnn: Make rnn_decode_enum() respect variants
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 31 Jul 2020 09:41:24 +0000 (11:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 1 Aug 2020 17:51:01 +0000 (17:51 +0000)
commit73241ca53e8e085b1e953ddb5afaa91c455eb038
treee0c460d783f9afecb344e81700b2ae757f0ce7d5
parentb67695d59731c213941c609c0464bc0586e499ef
freedreno/rnn: Make rnn_decode_enum() respect variants

We'll need this for afuc, and we're currently also open-coding the same
thing in rnnutils. It seems this function was added to decode pm4 packet
names, but it currently has no users, so make it useful for what it
was intended to do.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6140>
src/freedreno/rnn/rnndec.c
src/freedreno/rnn/rnndec.h