[coreboot-gerrit] Change in libgfxinit[master]: gma: Fix Ironlake panel fitting, revisited
Nico Huber (Code Review)
gerrit at coreboot.org
Mon Jun 18 17:22:58 CEST 2018
Nico Huber has uploaded this change for review. ( https://review.coreboot.org/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 at gmx.de>
---
M common/hw-gfx-gma-pipe_setup.adb
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/53/27153/1
diff --git a/common/hw-gfx-gma-pipe_setup.adb b/common/hw-gfx-gma-pipe_setup.adb
index 647ba35..656eb13 100644
--- a/common/hw-gfx-gma-pipe_setup.adb
+++ b/common/hw-gfx-gma-pipe_setup.adb
@@ -513,6 +513,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/27153
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: libgfxinit
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib7dfe1fd289661ecd6949eca4b39860dbecc4463
Gerrit-Change-Number: 27153
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h at gmx.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180618/bebf7e42/attachment-0001.html>
More information about the coreboot-gerrit
mailing list