From 7b6ac3b38f32e0bc482ccc0f87856871a0af8f5c Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Mon, 14 Jun 2021 23:02:04 +0000 Subject: [PATCH] intel driver: internal panels need HWtarget for link and fitter --- src/add-ons/accelerants/intel_extreme/Ports.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/Ports.cpp b/src/add-ons/accelerants/intel_extreme/Ports.cpp index b1b458d9c4..beee02bd55 100644 --- a/src/add-ons/accelerants/intel_extreme/Ports.cpp +++ b/src/add-ons/accelerants/intel_extreme/Ports.cpp @@ -500,14 +500,6 @@ LVDSPort::SetDisplayMode(display_mode* target, uint32 colorMode) } } - // Setup PanelFitter and Train FDI if it exists - PanelFitter* fitter = fPipe->PFT(); - if (fitter != NULL) - fitter->Enable(*target); - FDILink* link = fPipe->FDI(); - if (link != NULL) - link->Train(target); - // For LVDS panels, we may need to set the timings according to the panel // native video mode, and let the panel fitter do the scaling. But the // place where the scaling happens varies accross generations of devices. @@ -546,6 +538,14 @@ LVDSPort::SetDisplayMode(display_mode* target, uint32 colorMode) hardwareTarget = *target; } + // Setup PanelFitter and Train FDI if it exists + PanelFitter* fitter = fPipe->PFT(); + if (fitter != NULL) + fitter->Enable(hardwareTarget); + FDILink* link = fPipe->FDI(); + if (link != NULL) + link->Train(&hardwareTarget); + pll_divisors divisors; compute_pll_divisors(&hardwareTarget, &divisors, true);