diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2011-11-04 00:03:07 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-11-07 17:16:34 +0400 |
commit | d41025c0d6a7b3d80d68f07f943b72962d66ac74 (patch) | |
tree | 868c2a20eebe3d7698b2c321fbc9c1e6ae0c5856 /drivers | |
parent | e5c8dbb8141e7da81bd8179929d1298302d17128 (diff) | |
download | linux-d41025c0d6a7b3d80d68f07f943b72962d66ac74.tar.xz |
vmwgfx: Move the prefered mode first in the list
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 66e92acb3c5b..8de24836edb1 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -1747,6 +1747,10 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, 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); return 1; |