gma pipe_setup: Pass `Pipe_Config` down into scaler configuration
Instead of only passing the `Framebuffer` and `Cursor`, pass the whole
`Pipe_Config`, which includes scaling settings now.
Change-Id: I0081eed64b02b718bed71284023a55f7521eaf48
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/518
Reviewed-by: Thomas Heijligen <src@posteo.de>
Tested-by: Nico Huber <nico.h@gmx.de>
diff --git a/common/hw-gfx-gma.adb b/common/hw-gfx-gma.adb
index 2bc6554..33f8ef6 100644
--- a/common/hw-gfx-gma.adb
+++ b/common/hw-gfx-gma.adb
@@ -196,9 +196,8 @@
if Success then
Display_Controller.On
(Pipe => Pipe,
- Port_Cfg => Port_Cfg,
- Framebuffer => Pipe_Cfg.Framebuffer,
- Cursor => Pipe_Cfg.Cursor);
+ Pipe_Cfg => Pipe_Cfg,
+ Port_Cfg => Port_Cfg);
Connectors.Post_On
(Pipe => Pipe,
@@ -391,7 +390,7 @@
Cur_Config.Framebuffer /= New_Config.Framebuffer
then
Display_Controller.Setup_FB
- (Pipe, New_Config.Mode, New_Config.Framebuffer);
+ (Pipe, New_Config, New_Config.Mode);
Display_Controller.Update_Cursor
(Pipe, New_Config.Framebuffer, New_Config.Cursor);
Cur_Config := New_Config;