[coreboot-gerrit] Change in libgfxinit[master]: gfx, gma: Move Requires_Scaling() up into GFX

Nico Huber (Code Review) gerrit at coreboot.org
Sat Jun 2 18:11:51 CEST 2018


Nico Huber has uploaded this change for review. ( https://review.coreboot.org/26765


Change subject: gfx, gma: Move Requires_Scaling() up into GFX
......................................................................

gfx, gma: Move Requires_Scaling() up into GFX

Change-Id: Ie6f855b128ad6d195e5c0a6fb16a6b9a64422b7b
Signed-off-by: Nico Huber <nico.h at gmx.de>
---
M common/hw-gfx-gma.ads
M common/hw-gfx.ads
2 files changed, 5 insertions(+), 4 deletions(-)



  git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/65/26765/1

diff --git a/common/hw-gfx-gma.ads b/common/hw-gfx-gma.ads
index 7fccc0e..99ae279 100644
--- a/common/hw-gfx-gma.ads
+++ b/common/hw-gfx-gma.ads
@@ -161,10 +161,6 @@
 
    Cur_Configs : Pipe_Configs with Part_Of => State;
 
-   function Requires_Scaling (FB : Framebuffer_Type; Mode : Mode_Type)
-      return Boolean is
-     (Rotated_Width (FB) /= Mode.H_Visible or
-      Rotated_Height (FB) /= Mode.V_Visible);
    function Requires_Scaling (Pipe_Cfg : Pipe_Config) return Boolean is
      (Requires_Scaling (Pipe_Cfg.Framebuffer, Pipe_Cfg.Mode));
 
diff --git a/common/hw-gfx.ads b/common/hw-gfx.ads
index 1464b97..71182da 100644
--- a/common/hw-gfx.ads
+++ b/common/hw-gfx.ads
@@ -192,4 +192,9 @@
    function FB_Size (FB : Framebuffer_Type) return Pos32 is
      (Pixel_To_Bytes (FB.Stride * FB.V_Stride, FB));
 
+   function Requires_Scaling (FB : Framebuffer_Type; Mode : Mode_Type)
+      return Boolean is
+     (Rotated_Width (FB) /= Mode.H_Visible or
+      Rotated_Height (FB) /= Mode.V_Visible);
+
 end HW.GFX;

-- 
To view, visit https://review.coreboot.org/26765
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: Ie6f855b128ad6d195e5c0a6fb16a6b9a64422b7b
Gerrit-Change-Number: 26765
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/20180602/278694b5/attachment.html>


More information about the coreboot-gerrit mailing list