The surgery was just the extraction of a wisdom tooth. If Philip K. Dick was brain damaged, it probably wasn't from that, but from the years of heavy drug use (he praised/romanticized LSD, but by most accounts he didn't take it more than a few times - meth was his drug).