mirror of https://github.com/acidanthera/audk.git
When EDID comes from hardware INT10 and does not include 800x600, 640x480 and 1024x768, but INT10 supports these modes, add them into GOP mode.
Signed-off-by: Li Elvin <elvin.li@intel.com> Reviewed-by: Ni Ruiyu <ruiyu.ni@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14225 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b2fdb17eb7
commit
1687559138
|
@ -1590,7 +1590,16 @@ BiosVideoCheckForVbe (
|
|||
Timing.HorizontalResolution = BiosVideoPrivate->VbeModeInformationBlock->XResolution;
|
||||
Timing.VerticalResolution = BiosVideoPrivate->VbeModeInformationBlock->YResolution;
|
||||
if (!SearchEdidTiming (&ValidEdidTiming, &Timing)) {
|
||||
//
|
||||
// When EDID comes from INT10 call, EDID does not include 800x600, 640x480 and 1024x768,
|
||||
// but INT10 can support these modes, we add them into GOP mode.
|
||||
//
|
||||
if ((BiosVideoPrivate->EdidDiscovered.SizeOfEdid != 0) &&
|
||||
!((Timing.HorizontalResolution) == 1024 && (Timing.VerticalResolution == 768)) &&
|
||||
!((Timing.HorizontalResolution) == 800 && (Timing.VerticalResolution == 600)) &&
|
||||
!((Timing.HorizontalResolution) == 640 && (Timing.VerticalResolution == 480))) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue