Merge branch 'master' into 'master'

modesetting: Fix prime screen not display when expansion screen rotates

See merge request xorg/xserver!999
This commit is contained in:
lihongtao 2025-12-11 08:49:03 +00:00
commit b5f312c7fa

View file

@ -459,6 +459,14 @@ ms_present_unflip(ScreenPtr screen, uint64_t event_id)
drmmode_crtc->drmmode->fb_id); drmmode_crtc->drmmode->fb_id);
drmmode_crtc->drmmode->fb_id = 0; drmmode_crtc->drmmode->fb_id = 0;
} }
}
for (i = 0; i < config->num_crtc; i++) {
xf86CrtcPtr crtc = config->crtc[i];
drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;
if (!crtc->enabled)
continue;
if (drmmode_crtc->dpms_mode == DPMSModeOn) if (drmmode_crtc->dpms_mode == DPMSModeOn)
crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation, crtc->funcs->set_mode_major(crtc, &crtc->mode, crtc->rotation,