• Mark Yacoub's avatar
    Fix mode modeset fallback. · d8a3238b
    Mark Yacoub authored
    The CL fixes the following issues:
    1. When looping over pending modeset requests, do not depend on the
    dynamic vector size.
    2. If the display modeset has failed, do not always select the next
    available mode, check that it's valid first.
    3. Retry configuring displays when any of them fail, not just the last
    one.
    4. Use default values for unittest variables.
    
    BUG=b/168800852
    TEST=should configure multiple displays even after the first mode is
    rejected. display_unittests
    
    Change-Id: I285d02f4b7f653588b53c48655cc05514264242d
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2417008Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
    Reviewed-by: default avatarGil Dekel <gildekel@chromium.org>
    Commit-Queue: Mark Yacoub <markyacoub@google.com>
    Cr-Commit-Position: refs/heads/master@{#808472}
    d8a3238b
update_display_configuration_task_unittest.cc 16.2 KB