You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
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:
committed by
Ard Biesheuvel
parent
0b3d1a3b5b
commit
c276ec5fdf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user