Nico Huber has submitted this change and it was merged. ( https://review.coreboot.org/c/libgfxinit/+/27153 )
Change subject: gma: Fix Ironlake panel fitting, revisited
......................................................................
gma: Fix Ironlake panel fitting, revisited
This time avoid scaling to odd heights, too. At least Sandy Bridge
has trouble with this.
Change-Id: Ib7dfe1fd289661ecd6949eca4b39860dbecc4463
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/27153
Reviewed-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M common/hw-gfx-gma-pipe_setup.adb
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Nico Huber: Verified
Arthur Heymans: Looks good to me, approved
diff --git a/common/hw-gfx-gma-pipe_setup.adb b/common/hw-gfx-gma-pipe_setup.adb
index 76051dd..0a2cbcf 100644
--- a/common/hw-gfx-gma-pipe_setup.adb
+++ b/common/hw-gfx-gma-pipe_setup.adb
@@ -508,6 +508,10 @@
if Width < Mode.H_Visible and Width mod 2 = 1 then
Width := Width + 1;
end if;
+ -- Do not scale to odd height (at least Sandy Bridge makes trouble).
+ if Height < Mode.V_Visible and Height mod 2 = 1 then
+ Height := Height + 1;
+ end if;
X := (Mode.H_Visible - Width) / 2;
Y := (Mode.V_Visible - Height) / 2;
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/27153
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: Ib7dfe1fd289661ecd6949eca4b39860dbecc4463
Gerrit-Change-Number: 27153
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged
Nico Huber has submitted this change and it was merged. ( https://review.coreboot.org/c/libgfxinit/+/27143 )
Change subject: gma config: Enable Restrictions (No_Elaboration_Code)
......................................................................
gma config: Enable Restrictions (No_Elaboration_Code)
Forcing compile-time evaluation seems to be the right thing and works
well now. It also helps to compare binaries after refactorizations.
Change-Id: I4eea973836a05eefcc2c98de75e6721ef3cd278b
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/27143
Reviewed-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M common/hw-gfx-gma-config.ads.template
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Nico Huber: Verified
Arthur Heymans: Looks good to me, approved
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template
index 721252b..bf69dc8 100644
--- a/common/hw-gfx-gma-config.ads.template
+++ b/common/hw-gfx-gma-config.ads.template
@@ -12,6 +12,8 @@
-- GNU General Public License for more details.
--
+pragma Restrictions (No_Elaboration_Code);
+
private package HW.GFX.GMA.Config is
Gen : constant Generation := <<GEN>>;
--
To view, visit https://review.coreboot.org/c/libgfxinit/+/27143
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-Change-Id: I4eea973836a05eefcc2c98de75e6721ef3cd278b
Gerrit-Change-Number: 27143
Gerrit-PatchSet: 3
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: merged