I think Syd Barrett did contribute one song--"Jugband Blues"--to 'A Saucerful of Secrets' as well as contributing some guitar work to a couple of other tracks, but there's no doubt he was mentally and functionally drifting away during this period before getting the boot for good. Tragic story.