<p>Nico Huber has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27153">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gma: Fix Ironlake panel fitting, revisited<br><br>This time avoid scaling to odd heights, too. At least Sandy Bridge<br>has trouble with this.<br><br>Change-Id: Ib7dfe1fd289661ecd6949eca4b39860dbecc4463<br>Signed-off-by: Nico Huber <nico.h@gmx.de><br>---<br>M common/hw-gfx-gma-pipe_setup.adb<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/53/27153/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/common/hw-gfx-gma-pipe_setup.adb b/common/hw-gfx-gma-pipe_setup.adb</span><br><span>index 647ba35..656eb13 100644</span><br><span>--- a/common/hw-gfx-gma-pipe_setup.adb</span><br><span>+++ b/common/hw-gfx-gma-pipe_setup.adb</span><br><span>@@ -513,6 +513,10 @@</span><br><span>       if Width < Mode.H_Visible and Width mod 2 = 1 then</span><br><span>          Width := Width + 1;</span><br><span>       end if;</span><br><span style="color: hsl(120, 100%, 40%);">+      -- Do not scale to odd height (at least Sandy Bridge makes trouble).</span><br><span style="color: hsl(120, 100%, 40%);">+      if Height < Mode.V_Visible and Height mod 2 = 1 then</span><br><span style="color: hsl(120, 100%, 40%);">+         Height := Height + 1;</span><br><span style="color: hsl(120, 100%, 40%);">+      end if;</span><br><span> </span><br><span>       X := (Mode.H_Visible - Width) / 2;</span><br><span>       Y := (Mode.V_Visible - Height) / 2;</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27153">change 27153</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27153"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libgfxinit </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ib7dfe1fd289661ecd6949eca4b39860dbecc4463 </div>
<div style="display:none"> Gerrit-Change-Number: 27153 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>