Comparing that with http://en.wikipedia.org/wiki/Evolution_of_fungi "A rich diversity of fungi is known from the lower Devonian Rhynie chert", and lower Devonian = early Devonian, I very tentatively conclude fungi precluded trees. Given that, I (not hindered by much specific knowledge of the subject) expect that fungi breaking down cellulose co-evolved with trees.