Magmatic segregation deposits are called cumulates, formed by slow cooling of mafic of ultramafic intrusions - minerals with the highest melting points crystalise first (chromite, magnetite and olivine). These minerals are high density and sink, olivine is less dense and any convections keep it in circulation. If convections slackens then olivine will settle. Repeated magma injections can develop layers of the dense minerals.