If the dementia is thought to be caused by a brain tumor, a brain hemorrhage or fluid buildup on the brain, then surgery may be needed.