xf86-video-intel: src/i830_lvds.c
Zhenyu Wang
zhen at kemper.freedesktop.org
Sun Aug 17 20:18:05 PDT 2008
src/i830_lvds.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 76b5a7ff5c943cfaa254d2fd94b6397c91d1f8e6
Author: Shaohua Li <shaohua.li at intel.com>
Date: Mon Aug 18 11:13:20 2008 +0800
[PATCH] avoid duplicate mode set in lvds
xf86SetDesiredModes() already sets lvds to full mode. later when
xf86CrtcScreenInit() initialized randr12, i830_lvds_set_property will
recall xf86CrtcSetMode and set mode to full. This patch is to remove the
duplication. In my test, this can save about 0.2 - 0.4s x startup time.
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 96e9f00..e5feab0 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -1115,6 +1115,9 @@ i830_lvds_set_property(xf86OutputPtr output, Atom property,
if (ret < 0)
return FALSE;
+ if (dev_priv->fitting_mode == ret)
+ return TRUE;
+
dev_priv->fitting_mode = ret;
if (output->crtc) {
More information about the xorg-commit
mailing list