Return correct values of PixelInformation in QueryMode(). This fixes the QueryMode_Func failures reported by SCT tests at https://github.com/pftf/RPi4/issues/73
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 (#63043): https://edk2.groups.io/g/devel/message/63043 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] -=-=-=-=-=-=-=-=-=-=-=-