The computer in question was overheating while building Mesa. I've fixed it today, and with new Mesa from git everything is working properly.