Provide automated workaround handling to mesa 23.0
Fixes for workarounds have been nominated for stable branches, but they were implemented using the code generator provided in this merge request.
The initial workaround implementation had several fixes, which have been merged into the fixed commits. See 'backport' references in the commit messages.