What version of Mesa are you using? Does the problem already happen with Mesa commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6, or if not, can you bisect Mesa?