The check for Mesa needed to be before the more coarse check about an AMD GPU. Also, it seems the newer drivers do not have `X.Org` in the vendor string. Checking for `Mesa` in the version string seems to be the correct way. Pull Request: https://projects.blender.org/blender/blender/pulls/140204