gma pipe: Fix source size and scaler limits for Tiger Lake
Some more changes came with Tiger Lake:
* The source size of the display pipeline must have an even width.
* The scaler setup changed: There is no "Scaler Mode" anymore, and
the scaling limits have been lifted.
Change-Id: If6916c43ce986bad4fc652649539de2adbb934ea
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/477
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template
index 3b21351..93e7ca4 100644
--- a/common/hw-gfx-gma-config.ads.template
+++ b/common/hw-gfx-gma-config.ads.template
@@ -212,6 +212,8 @@
Has_Pipeconf_Misc : <hswbool> := Broadwell_On;
Has_Pipeconf_BPC : <hswbool> := not CPU_Haswell;
Has_Plane_Control : <genbool> := Broxton_On;
+ Needs_Even_Source_Width : <genbool> := Tigerlake_On;
+ Has_Skylake_Scaler_Limits : <genbool> := Gen_Broxton or Gen_Skylake;
Has_DSP_Linoff : <genbool> := Up_To_Ironlake;
Has_DSPSURF : <genbool> := G45_On;
Has_PF_Pipe_Select : <ilkhswbool> := CPU_Ivybridge or CPU_Haswell;