Should be fixed in mesa master and 9.1 branch with the following commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b69207642079fe8ba33c594750415e8d9c66a06f