gma: Revise scaling on G45
The G45 panel fitter needs a hint how the resulting image will be boxed
to keep aspect ratio. As we can't change the panel fitter configuration
while the pipe is enabled, we always tear the whole pipe down when the
configuration changes.
Change-Id: Ifedc19abbadcbae61892d0051f08592637f90fd7
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/26767
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/common/hw-gfx-gma.adb b/common/hw-gfx-gma.adb
index f962e1c..7e9a959 100644
--- a/common/hw-gfx-gma.adb
+++ b/common/hw-gfx-gma.adb
@@ -237,11 +237,17 @@
is
begin
return
- Cur_Config.Port /= New_Config.Port or else
- Cur_Config.Mode /= New_Config.Mode or else
+ Cur_Config.Port /= New_Config.Port
+ or else
+ Cur_Config.Mode /= New_Config.Mode
+ or else
(Config.Use_PDW_For_EDP_Scaling and then
(Cur_Config.Port = Internal and
- Requires_Scaling (Cur_Config) /= Requires_Scaling (New_Config)));
+ Requires_Scaling (Cur_Config) /= Requires_Scaling (New_Config)))
+ or else
+ (Config.Has_GMCH_PFIT_CONTROL and then
+ (Requires_Scaling (Cur_Config) /= Requires_Scaling (New_Config) or
+ Scaling_Type (Cur_Config) /= Scaling_Type (New_Config)));
end Full_Update;
begin
Old_Configs := Cur_Configs;