summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2011-11-03 21:03:07 +0100
committerDave Airlie <airlied@redhat.com>2011-11-07 13:16:34 +0000
commitd41025c0d6a7b3d80d68f07f943b72962d66ac74 (patch)
tree868c2a20eebe3d7698b2c321fbc9c1e6ae0c5856 /drivers
parente5c8dbb8141e7da81bd8179929d1298302d17128 (diff)
downloadlinux-3.10-d41025c0d6a7b3d80d68f07f943b72962d66ac74.tar.gz
linux-3.10-d41025c0d6a7b3d80d68f07f943b72962d66ac74.tar.bz2
linux-3.10-d41025c0d6a7b3d80d68f07f943b72962d66ac74.zip
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.c4
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 66e92acb3c5..8de24836edb 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;