The trial has started for a man accused of stabbing his roommate while he slept and leaving him to bleed to death in Swindon.