Reviewed-by: Andrei Warkentin <awarken...@vmware.com> ________________________________ From: Samer El-Haj-Mahmoud <samer.el-haj-mahm...@arm.com> Sent: Tuesday, July 21, 2020 9:01 PM To: devel@edk2.groups.io <devel@edk2.groups.io> Cc: Leif Lindholm <l...@nuviainc.com>; Pete Batard <p...@akeo.ie>; Andrei Warkentin <awarken...@vmware.com>; Ard Biesheuvel <ard.biesheu...@arm.com> Subject: [edk2-platform][PATCH v1 2/3] Platforms/RaspberryPi: Return GOP PixelInformation in QueryMode()
Return correct values of PixelInformation in QueryMode(). This fixes the QueryMode_Func failures reported by SCT tests at https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpftf%2FRPi4%2Fissues%2F73&data=02%7C01%7Cawarkentin%40vmware.com%7C97fe0ab6da2a480623a208d82de317f2%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637309800678332179&sdata=wecctIMVYrU2YhzqOouRS6THUMosi%2Bu7kt2e2gH4oIY%3D&reserved=0 Cc: Leif Lindholm <l...@nuviainc.com> Cc: Pete Batard <p...@akeo.ie> Cc: Andrei Warkentin <awarken...@vmware.com> Cc: Ard Biesheuvel <ard.biesheu...@arm.com> Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahm...@arm.com> --- Platform/RaspberryPi/Drivers/DisplayDxe/DisplayDxe.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Platform/RaspberryPi/Drivers/DisplayDxe/DisplayDxe.c b/Platform/RaspberryPi/Drivers/DisplayDxe/DisplayDxe.c index 80d0f7b2cb3c..f50ffc816cf1 100644 --- a/Platform/RaspberryPi/Drivers/DisplayDxe/DisplayDxe.c +++ b/Platform/RaspberryPi/Drivers/DisplayDxe/DisplayDxe.c @@ -191,6 +191,10 @@ DisplayQueryMode ( (*Info)->HorizontalResolution = Mode->Width; (*Info)->VerticalResolution = Mode->Height; (*Info)->PixelFormat = This->Mode->Info->PixelFormat; + (*Info)->PixelInformation.RedMask = This->Mode->Info->PixelInformation.RedMask; + (*Info)->PixelInformation.GreenMask = This->Mode->Info->PixelInformation.GreenMask; + (*Info)->PixelInformation.BlueMask = This->Mode->Info->PixelInformation.BlueMask; + (*Info)->PixelInformation.ReservedMask = This->Mode->Info->PixelInformation.ReservedMask; (*Info)->PixelsPerScanLine = Mode->Width; return EFI_SUCCESS; -- 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63070): https://edk2.groups.io/g/devel/message/63070 Mute This Topic: https://groups.io/mt/75717278/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-