M-theory and a topological string duality