A semiconductor package includes a package substrate, an optical device
die atop the package substrate, a transparent optical element atop the
die, an optional dam around the die, and an encapsulant entirely covering
the die and partially covering the transparent optical element.