ozone/drm: Pick the first preferred mode
Ozone/drm selects a native mode looking at the preferred mode of a connector when a monitor is plugged in. KMS specification (https://01.org/linuxgraphics/gfx-docs/drm/gpu/drm-kms.html) says that there should be at most one preferred mode, but we found that is not the case on some monitors. This CL changes the behavior of the selected preferred mode when more than one mode is listed and it now selects the first preferred mode instead of the last one. Bug: 999630 Test: DrmUtilTest.TestDisplayModesExtraction Change-Id: I862ed2a1f4eaddf09b6ffb920bd494411746c43e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1777281 Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Reviewed-by:Daniel Nicoara <dnicoara@chromium.org> Reviewed-by:
Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#692367}
Showing
Please register or sign in to comment