Does mineral formation impact rock formation?