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