intel-virtual-output: Disable panning before setting mode on CRTC
For whatever reason, presumably to do with the switch between CRTCs, we need to disable the panning before setting the mode in order for our desired CRTC position to take effect. Reported-by: Jeff Katz <bugzilla@kraln.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76146 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5079830bd5
commit
a55bbe3b59
|
|
@ -1252,6 +1252,10 @@ err:
|
|||
dst->x, dst->y, dst->mode.width, dst->mode.height,
|
||||
dst->rotation, (long)rr_crtc, dst->mode.id));
|
||||
|
||||
ret = XRRSetPanning(dst->dpy, res, rr_crtc, memset(&panning, 0, sizeof(panning)));
|
||||
DBG(("%s-%s: XRRSetPanning %s\n", DisplayString(dst->dpy), dst->name, ret ? "failed" : "success"));
|
||||
(void)ret;
|
||||
|
||||
ret = XRRSetCrtcConfig(dst->dpy, res, rr_crtc, CurrentTime,
|
||||
dst->x, dst->y, dst->mode.id, dst->rotation,
|
||||
&dst->rr_output, 1);
|
||||
|
|
@ -1259,10 +1263,6 @@ err:
|
|||
if (ret)
|
||||
goto err;
|
||||
|
||||
ret = XRRSetPanning(dst->dpy, res, rr_crtc, memset(&panning, 0, sizeof(panning)));
|
||||
DBG(("%s-%s: XRRSetPanning %s\n", DisplayString(dst->dpy), dst->name, ret ? "failed" : "success"));
|
||||
(void)ret;
|
||||
|
||||
if (EXTRA_DBG) {
|
||||
XRRCrtcInfo *c;
|
||||
XRRPanning *p;
|
||||
|
|
|
|||
Loading…
Reference in New Issue