How much measurement independence is needed to demonstrate nonlocality?

How much measurement independence is needed to demonstrate nonlocality?