Reduce the number of lights to support lower spec hardware
The lighting uniform struts have changed, so we need to adjust what
is available for the reduced lights configuration. Both the maximum
number of lights and the maximum number of directional lights need
to be reduced in order to fit within the per-stage uniform budget on
drivers that count UBO contents against the default uniform vector
limit (such as the Vivante GC7000 series).
With the previous reduced values (8 lights, 2 directional lights),
the shadow code path of the generated material shader pushes the
fragment shader past the per-stage uniform cap, resulting in
"Failed to link shader program: Too many uniforms" link errors.
Reducing to 4 lights and 1 directional light keeps the worst-case
shader within the cap, including when shadows are enabled.
Pick-to: 6.11
Change-Id: I2e9c4eebe52b30175ee2cccfcead32d288d49b7f
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>