Commit d41025c0 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Dave Airlie
Browse files

vmwgfx: Move the prefered mode first in the list

Signed-off-by: default avatarJakob Bornecrantz <>
Signed-off-by: default avatarThomas Hellstrom <>
Signed-off-by: default avatarDave Airlie <>
parent e5c8dbb8
...@@ -1747,6 +1747,10 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, ...@@ -1747,6 +1747,10 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector,
drm_mode_probed_add(connector, mode); drm_mode_probed_add(connector, mode);
} }
/* Move the prefered mode first, help apps pick the right mode. */
if (du->pref_mode)
list_move(&du->pref_mode->head, &connector->probed_modes);
drm_mode_connector_list_update(connector); drm_mode_connector_list_update(connector);
return 1; return 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment