summaryrefslogtreecommitdiff
path: root/src/sna/sna_driver.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-05-27 16:46:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-05-27 17:02:06 +0100
commit36d53ff52b055b2b5fc03aff7b2cab83037d9f42 (patch)
treed8c350373da7e388294354b4e9194e1556e4273c /src/sna/sna_driver.c
parent7fdd8bd6d2ba7bf113d4109e6bb6f750f909565f (diff)
sna: Validate all CRTCs after updating one
Updating one CRTC may cause the kernel to turn off another, so be paranoid and run the check in a loop after applying the CRTC set. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_driver.c')
-rw-r--r--src/sna/sna_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index f3f19e19..39e67c45 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -608,7 +608,7 @@ sna_handle_uevents(int fd, void *closure)
if (memcmp(&s.st_rdev, &udev_devnum, sizeof (dev_t)) == 0 &&
hotplug && atoi(hotplug) == 1) {
DBG(("%s: hotplug event\n", __FUNCTION__));
- sna_mode_hotplug(sna);
+ sna_mode_update(sna);
RRGetInfo(xf86ScrnToScreen(scrn), TRUE);
}