Up to plasma 5.5 the icons on the desktop used a background rectangle and not shadows.
Shadows do not work when QML is being rendered by software.
I used a check like the one that already exists in the SDDM, if the rendering is being done by software, the method used until the plasma 5.5 should be used.