Electronic structure and mass enhancement of the heavy fermion superconductor UPt3