aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2011-11-03 16:03:07 -0400
committerDave Airlie <airlied@redhat.com>2011-11-07 08:16:34 -0500
commitd41025c0d6a7b3d80d68f07f943b72962d66ac74 (patch)
tree868c2a20eebe3d7698b2c321fbc9c1e6ae0c5856
parente5c8dbb8141e7da81bd8179929d1298302d17128 (diff)
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>
-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,
1747 drm_mode_probed_add(connector, mode); 1747 drm_mode_probed_add(connector, mode);
1748 } 1748 }
1749 1749
1750 /* Move the prefered mode first, help apps pick the right mode. */
1751 if (du->pref_mode)
1752 list_move(&du->pref_mode->head, &connector->probed_modes);
1753
1750 drm_mode_connector_list_update(connector); 1754 drm_mode_connector_list_update(connector);
1751 1755
1752 return 1; 1756 return 1;