A new guide has been published: Building Mesa from Source (with VA-API) on Fedora 37
carteakey.dev published a tutorial showing you how to rebuild the Mesa packages on Fedora 37 with support for the VA-API codecs.
Read more @ Linux Compatible