From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smarthost01c.sbp.mail.zen.net.uk (smarthost01c.sbp.mail.zen.net.uk [212.23.1.5]) by mx.groups.io with SMTP id smtpd.web12.60953.1643787177580083670 for ; Tue, 01 Feb 2022 23:32:58 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=permerror, err=parse error for token &{10 18 sdn.klaviyomail.com}: permanent DNS error (domain: starlabs.systems, ip: 212.23.1.5, mailfrom: sean@starlabs.systems) Received: from [51.148.147.4] (helo=sean-StarBook.lan) by smarthost01c.sbp.mail.zen.net.uk with esmtp (Exim 4.90_1) (envelope-from ) id 1nFA8L-0002m8-Th; Wed, 02 Feb 2022 07:32:53 +0000 From: "Sean Rhodes" To: devel@edk2.groups.io Cc: zhichao.gao@intel.com, guo.dong@intel.com, Sean Rhodes Subject: [PATCH 1/2] MdeModulePackage: Add option to follow BGRT spec Date: Wed, 2 Feb 2022 07:32:50 +0000 Message-Id: <53c055b8f160277e7c24cb156e5c11921c7b897c.1643787071.git.sean@starlabs.systems> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Originating-smarthost01c-IP: [51.148.147.4] Feedback-ID: 51.148.147.4 Content-Transfer-Encoding: quoted-printable Add option to centre the Boot Logo 38.2% from the top of screen, following the BGRT specification. Signed-off-by: Sean Rhodes --- MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 7 ++++++- MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf | 3 +++ MdeModulePkg/MdeModulePkg.dec | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c b/MdeModulePkg/= Library/BootLogoLib/BootLogoLib.c index 478ec2d40e..a9b4c6444b 100644 --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c @@ -176,7 +176,12 @@ BootLogoEnableLogo ( break;=0D case EdkiiPlatformLogoDisplayAttributeCenter:=0D DestX =3D (SizeOfX - Image.Width) / 2;=0D - DestY =3D (SizeOfY - Image.Height) / 2;=0D + if (FixedPcdGetBool (PcdFollowBGRTSpec) =3D=3D TRUE) {=0D + DestY =3D (SizeOfY * 382) / 1000 - Image.Height / 2;=0D + } else {=0D + DestY =3D (SizeOfY - Image.Height) / 2;=0D + }=0D +=0D break;=0D case EdkiiPlatformLogoDisplayAttributeCenterRight:=0D DestX =3D SizeOfX - Image.Width;=0D diff --git a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf b/MdeModulePk= g/Library/BootLogoLib/BootLogoLib.inf index 7d50f2dfa3..03ff038f47 100644 --- a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf +++ b/MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf @@ -48,5 +48,8 @@ gEfiUserManagerProtocolGuid ## CONSUMES=0D gEdkiiPlatformLogoProtocolGuid ## CONSUMES=0D =0D +[Pcd]=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdFollowBGRTSpec=0D +=0D [FeaturePcd]=0D gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport ## CONSUMES=0D diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 463e889e9a..b4855431b0 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -2079,6 +2079,9 @@ # @Prompt Enable PCIe Resizable BAR Capability support.=0D gEfiMdeModulePkgTokenSpaceGuid.PcdPcieResizableBarSupport|FALSE|BOOLEAN|= 0x10000024=0D =0D + # Follow BGRT Specifcation=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdFollowBGRTSpec|FALSE|BOOLEAN|0x0000002= 5=0D +=0D [PcdsPatchableInModule]=0D ## Specify memory size with page number for PEI code when=0D # Loading Module at Fixed Address feature is enabled.=0D --=20 2.32.0