Dali's sense of visual "shock therapy" made the fim as much as the plot. If you haven't seen either one, check out this opening scene from Un Chien Andalou.
He also did set design for Hitchcock's film, Spellbound and worked with Man Ray in creating surrealist photography.