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://github.com/pftf/RPi4/issues/73

Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Pete Batard <pete@akeo.ie>
Cc: Andrei Warkentin <awarkentin@vmware.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Signed-off-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Reviewed-by: Andrei Warkentin <awarkentin@vmware.com>
This commit is contained in:
Samer El-Haj-Mahmoud
2020-07-21 22:01:02 -04:00
committed by Ard Biesheuvel
parent 0b3d1a3b5b
commit c276ec5fdf

View File

@@ -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;