From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smarthost01a.ixn.mail.zen.net.uk (smarthost01a.ixn.mail.zen.net.uk [212.23.1.20]) by mx.groups.io with SMTP id smtpd.web12.3467.1645393077483625774 for ; Sun, 20 Feb 2022 13:37:57 -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.20, mailfrom: sean@starlabs.systems) Received: from [217.155.46.38] (helo=sean-StarBook.lan) by smarthost01a.ixn.mail.zen.net.uk with esmtp (Exim 4.90_1) (envelope-from ) id 1nLtty-0001Sx-QJ; Sun, 20 Feb 2022 21:37:54 +0000 From: "Sean Rhodes" To: devel@edk2.groups.io Cc: guo.dong@intel.com, Sean Rhodes , Zhichao Gao , Ray Ni Subject: [PATCH 1/2] MdeModulePackage: Add option to follow BGRT spec Date: Sun, 20 Feb 2022 21:37:51 +0000 Message-Id: <1bedbe7cb8e546a98e6b34932d221e3b46ddd10e.1645393072.git.sean@starlabs.systems> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Originating-smarthost01a-IP: [217.155.46.38] Feedback-ID: 217.155.46.38 Content-Transfer-Encoding: quoted-printable Add option to centre the Boot Logo 38.2% from the top of screen, following the BGRT specification. Cc: Zhichao Gao Cc: Ray Ni Signed-off-by: Sean Rhodes --- MdeModulePkg/Library/BootLogoLib/BootLogoLib.c | 7 ++++++- MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf | 3 +++ MdeModulePkg/Library/BrotliCustomDecompressLib/brotli | 2 +- MdeModulePkg/MdeModulePkg.dec | 3 +++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Library/BootLogoLib/BootLogoLib.c b/MdeModulePkg/= Library/BootLogoLib/BootLogoLib.c index 478ec2d40e..928f37a2e1 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)) {=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/Library/BrotliCustomDecompressLib/brotli b/MdeMod= ulePkg/Library/BrotliCustomDecompressLib/brotli index f4153a09f8..666c3280cc 160000 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli @@ -1 +1 @@ -Subproject commit f4153a09f87cbb9c826d8fc12c74642bb2d879ea +Subproject commit 666c3280cc11dc433c303d79a83d4ffbdd12cc8d 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