[PATCH openEuler-5.10-LTS 053/427] drm/plane: Move range check for format_count earlier