summaryrefslogtreecommitdiff
authorMatthias Hopf <mhopf@suse.de>2009-03-10 14:49:49 (GMT)
committer Matthias Hopf <mhopf@suse.de>2009-03-10 14:49:49 (GMT)
commitcadf65a6e190a8952ad3cc216dc9ea55241de91a (patch) (side-by-side diff)
treef57894e626a8cc4bd0072614d293b075e622c0fd
parent6544490700051b3b5e88ac1890d71b35634c9100 (diff)
downloadxserver-cadf65a6e190a8952ad3cc216dc9ea55241de91a.zip
xserver-cadf65a6e190a8952ad3cc216dc9ea55241de91a.tar.gz
randr: Nuke broken set_origin shortcut
Shortcut is impossible to implement this way, because we don't know for sure whether the crtc of an output has changed or not.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--hw/xfree86/modes/xf86Crtc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 7d6feaf..c6eed33 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -306,19 +306,6 @@ xf86CrtcSetModeTransform (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotati
} else
crtc->transformPresent = FALSE;
- if (crtc->funcs->set_origin &&
- memcmp (mode, &saved_mode, sizeof(saved_mode)) == 0 &&
- saved_rotation == rotation &&
- saved_transform_present == crtc->transformPresent &&
- (!crtc->transformPresent || RRTransformEqual(&saved_transform, &crtc->transform)))
- {
- if (!xf86CrtcRotate (crtc))
- goto done;
- crtc->funcs->set_origin (crtc, crtc->x, crtc->y);
- ret = TRUE;
- goto done;
- }
-
/* Pass our mode to the outputs and the CRTC to give them a chance to
* adjust it according to limitations or output properties, and also
* a chance to reject the mode entirely.