freedreno/rnn: Make addvariant work for fields in the same reg
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Thu, 11 May 2023 11:32:28 +0000 (13:32 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 12 Jul 2023 13:33:27 +0000 (13:33 +0000)
commitdfe650f3f9b3454b78323fb4ad8743f766a80280
tree07f981c70cfcfb5429f928efb4fb65745cda6f2e
parent15db60fbbc7e4c659a933ebda7a18cb6f78c19ce
freedreno/rnn: Make addvariant work for fields in the same reg

Previously if addvariant was processed after other fields in the reg
these fields would never get matched. Fix this by moving bitfields that
add variant to the beginning of the list.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23881>
src/freedreno/rnn/rnn.c