<p>Nico Huber has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/26765">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gfx, gma: Move Requires_Scaling() up into GFX<br><br>Change-Id: Ie6f855b128ad6d195e5c0a6fb16a6b9a64422b7b<br>Signed-off-by: Nico Huber <nico.h@gmx.de><br>---<br>M common/hw-gfx-gma.ads<br>M common/hw-gfx.ads<br>2 files changed, 5 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/65/26765/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/common/hw-gfx-gma.ads b/common/hw-gfx-gma.ads</span><br><span>index 7fccc0e..99ae279 100644</span><br><span>--- a/common/hw-gfx-gma.ads</span><br><span>+++ b/common/hw-gfx-gma.ads</span><br><span>@@ -161,10 +161,6 @@</span><br><span> </span><br><span>    Cur_Configs : Pipe_Configs with Part_Of => State;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   function Requires_Scaling (FB : Framebuffer_Type; Mode : Mode_Type)</span><br><span style="color: hsl(0, 100%, 40%);">-      return Boolean is</span><br><span style="color: hsl(0, 100%, 40%);">-     (Rotated_Width (FB) /= Mode.H_Visible or</span><br><span style="color: hsl(0, 100%, 40%);">-      Rotated_Height (FB) /= Mode.V_Visible);</span><br><span>    function Requires_Scaling (Pipe_Cfg : Pipe_Config) return Boolean is</span><br><span>      (Requires_Scaling (Pipe_Cfg.Framebuffer, Pipe_Cfg.Mode));</span><br><span> </span><br><span>diff --git a/common/hw-gfx.ads b/common/hw-gfx.ads</span><br><span>index 1464b97..71182da 100644</span><br><span>--- a/common/hw-gfx.ads</span><br><span>+++ b/common/hw-gfx.ads</span><br><span>@@ -192,4 +192,9 @@</span><br><span>    function FB_Size (FB : Framebuffer_Type) return Pos32 is</span><br><span>      (Pixel_To_Bytes (FB.Stride * FB.V_Stride, FB));</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   function Requires_Scaling (FB : Framebuffer_Type; Mode : Mode_Type)</span><br><span style="color: hsl(120, 100%, 40%);">+      return Boolean is</span><br><span style="color: hsl(120, 100%, 40%);">+     (Rotated_Width (FB) /= Mode.H_Visible or</span><br><span style="color: hsl(120, 100%, 40%);">+      Rotated_Height (FB) /= Mode.V_Visible);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> end HW.GFX;</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26765">change 26765</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/26765"/><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: Ie6f855b128ad6d195e5c0a6fb16a6b9a64422b7b </div>
<div style="display:none"> Gerrit-Change-Number: 26765 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>