nak/legalize: Move a bunch of helpers to a trait
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30141>
This commit is contained in:

committed by
Marge Bot

parent
1b9b6a9529
commit
d9a9bb651c