Commit 7fb63c85 authored by Kishore409's avatar Kishore409 🏏
Browse files

modesetting: Fix the call to function set_mode_major

In drmmode_set_desired_modes(), the call crtc->funcs->set_mode_major
is split in the source code, resulting in garbage values.
This eventually breaks multiple functionalities like VTswitch and
there by system suspend/resume.

Closes: #1010
Signed-off-by: Kishore409's avatarKishore Kadiyala <>
parent add3df20
Pipeline #203088 passed with stages
in 6 minutes and 52 seconds
......@@ -3619,9 +3619,9 @@ drmmode_set_desired_modes(ScrnInfoPtr pScrn, drmmode_ptr drmmode, Bool set_hw)
if (set_hw) {
if (!crtc->funcs->
set_mode_major(crtc, &crtc->desiredMode, crtc->desiredRotation,
crtc->desiredX, crtc->desiredY))
if (!crtc->funcs->set_mode_major(crtc, &crtc->desiredMode,
crtc->desiredX, crtc->desiredY))
return FALSE;
} else {
crtc->mode = crtc->desiredMode;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment