diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2015-06-29 15:59:58 -0400 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2015-08-05 08:01:11 -0400 |
commit | f6b05004538ab0933c7527f10a2a6ed88c620f99 (patch) | |
tree | 1d6af79077b60f5d0768be44b449772f077b1333 | |
parent | 352b20dc51488b264abe6b9755395c63c90e807b (diff) |
drm/vmwgfx: Fix kms preferred mode sorting
The preferred mode typically didn't end up first, since the function
drm_mode_connector_list_update() reordered the modes.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index ae87e7ec06ef..ef605b66458f 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | |||
@@ -1554,11 +1554,9 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, | |||
1554 | drm_mode_probed_add(connector, mode); | 1554 | drm_mode_probed_add(connector, mode); |
1555 | } | 1555 | } |
1556 | 1556 | ||
1557 | /* Move the prefered mode first, help apps pick the right mode. */ | ||
1558 | if (du->pref_mode) | ||
1559 | list_move(&du->pref_mode->head, &connector->probed_modes); | ||
1560 | |||
1561 | drm_mode_connector_list_update(connector, true); | 1557 | drm_mode_connector_list_update(connector, true); |
1558 | /* Move the prefered mode first, help apps pick the right mode. */ | ||
1559 | drm_mode_sort(&connector->modes); | ||
1562 | 1560 | ||
1563 | return 1; | 1561 | return 1; |
1564 | } | 1562 | } |