OvmfPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the OvmfPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -37,11 +37,11 @@
|
||||
**/
|
||||
VOID
|
||||
ReleaseGopResources (
|
||||
IN OUT VGPU_GOP *VgpuGop,
|
||||
IN BOOLEAN DisableHead
|
||||
IN OUT VGPU_GOP *VgpuGop,
|
||||
IN BOOLEAN DisableHead
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_STATUS Status;
|
||||
|
||||
ASSERT (VgpuGop->ResourceId != 0);
|
||||
ASSERT (VgpuGop->BackingStore != NULL);
|
||||
@@ -58,7 +58,10 @@ ReleaseGopResources (
|
||||
//
|
||||
Status = VirtioGpuSetScanout (
|
||||
VgpuGop->ParentBus, // VgpuDev
|
||||
0, 0, 0, 0, // X, Y, Width, Height
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0, // X, Y, Width, Height
|
||||
0, // ScanoutId
|
||||
0 // ResourceId
|
||||
);
|
||||
@@ -116,8 +119,8 @@ ReleaseGopResources (
|
||||
VgpuGop->BackingStore, // HostAddress
|
||||
VgpuGop->BackingStoreMap // Mapping
|
||||
);
|
||||
VgpuGop->BackingStore = NULL;
|
||||
VgpuGop->NumberOfPages = 0;
|
||||
VgpuGop->BackingStore = NULL;
|
||||
VgpuGop->NumberOfPages = 0;
|
||||
VgpuGop->BackingStoreMap = NULL;
|
||||
|
||||
//
|
||||
@@ -131,6 +134,7 @@ ReleaseGopResources (
|
||||
if (EFI_ERROR (Status)) {
|
||||
CpuDeadLoop ();
|
||||
}
|
||||
|
||||
VgpuGop->ResourceId = 0;
|
||||
}
|
||||
|
||||
@@ -138,31 +142,31 @@ ReleaseGopResources (
|
||||
// The resolutions supported by this driver.
|
||||
//
|
||||
typedef struct {
|
||||
UINT32 Width;
|
||||
UINT32 Height;
|
||||
UINT32 Width;
|
||||
UINT32 Height;
|
||||
} GOP_RESOLUTION;
|
||||
|
||||
STATIC CONST GOP_RESOLUTION mGopResolutions[] = {
|
||||
{ 640, 480 },
|
||||
{ 800, 480 },
|
||||
{ 800, 600 },
|
||||
{ 832, 624 },
|
||||
{ 960, 640 },
|
||||
{ 1024, 600 },
|
||||
{ 1024, 768 },
|
||||
{ 1152, 864 },
|
||||
{ 1152, 870 },
|
||||
{ 1280, 720 },
|
||||
{ 1280, 760 },
|
||||
{ 1280, 768 },
|
||||
{ 1280, 800 },
|
||||
{ 1280, 960 },
|
||||
STATIC CONST GOP_RESOLUTION mGopResolutions[] = {
|
||||
{ 640, 480 },
|
||||
{ 800, 480 },
|
||||
{ 800, 600 },
|
||||
{ 832, 624 },
|
||||
{ 960, 640 },
|
||||
{ 1024, 600 },
|
||||
{ 1024, 768 },
|
||||
{ 1152, 864 },
|
||||
{ 1152, 870 },
|
||||
{ 1280, 720 },
|
||||
{ 1280, 760 },
|
||||
{ 1280, 768 },
|
||||
{ 1280, 800 },
|
||||
{ 1280, 960 },
|
||||
{ 1280, 1024 },
|
||||
{ 1360, 768 },
|
||||
{ 1366, 768 },
|
||||
{ 1360, 768 },
|
||||
{ 1366, 768 },
|
||||
{ 1400, 1050 },
|
||||
{ 1440, 900 },
|
||||
{ 1600, 900 },
|
||||
{ 1440, 900 },
|
||||
{ 1600, 900 },
|
||||
{ 1600, 1200 },
|
||||
{ 1680, 1050 },
|
||||
{ 1920, 1080 },
|
||||
@@ -195,13 +199,13 @@ STATIC
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
GopQueryMode (
|
||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
|
||||
IN UINT32 ModeNumber,
|
||||
OUT UINTN *SizeOfInfo,
|
||||
OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **Info
|
||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
|
||||
IN UINT32 ModeNumber,
|
||||
OUT UINTN *SizeOfInfo,
|
||||
OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **Info
|
||||
)
|
||||
{
|
||||
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *GopModeInfo;
|
||||
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *GopModeInfo;
|
||||
|
||||
if (ModeNumber >= ARRAY_SIZE (mGopResolutions)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
@@ -218,7 +222,7 @@ GopQueryMode (
|
||||
GopModeInfo->PixelsPerScanLine = mGopResolutions[ModeNumber].Width;
|
||||
|
||||
*SizeOfInfo = sizeof *GopModeInfo;
|
||||
*Info = GopModeInfo;
|
||||
*Info = GopModeInfo;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -226,20 +230,20 @@ STATIC
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
GopSetMode (
|
||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
|
||||
IN UINT32 ModeNumber
|
||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
|
||||
IN UINT32 ModeNumber
|
||||
)
|
||||
{
|
||||
VGPU_GOP *VgpuGop;
|
||||
UINT32 NewResourceId;
|
||||
UINTN NewNumberOfBytes;
|
||||
UINTN NewNumberOfPages;
|
||||
VOID *NewBackingStore;
|
||||
EFI_PHYSICAL_ADDRESS NewBackingStoreDeviceAddress;
|
||||
VOID *NewBackingStoreMap;
|
||||
VGPU_GOP *VgpuGop;
|
||||
UINT32 NewResourceId;
|
||||
UINTN NewNumberOfBytes;
|
||||
UINTN NewNumberOfPages;
|
||||
VOID *NewBackingStore;
|
||||
EFI_PHYSICAL_ADDRESS NewBackingStoreDeviceAddress;
|
||||
VOID *NewBackingStoreMap;
|
||||
|
||||
EFI_STATUS Status;
|
||||
EFI_STATUS Status2;
|
||||
EFI_STATUS Status;
|
||||
EFI_STATUS Status2;
|
||||
|
||||
if (ModeNumber >= ARRAY_SIZE (mGopResolutions)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
@@ -260,9 +264,9 @@ GopSetMode (
|
||||
//
|
||||
VgpuGop->Gop.Mode = &VgpuGop->GopMode;
|
||||
|
||||
VgpuGop->GopMode.MaxMode = (UINT32)(ARRAY_SIZE (mGopResolutions));
|
||||
VgpuGop->GopMode.Info = &VgpuGop->GopModeInfo;
|
||||
VgpuGop->GopMode.SizeOfInfo = sizeof VgpuGop->GopModeInfo;
|
||||
VgpuGop->GopMode.MaxMode = (UINT32)(ARRAY_SIZE (mGopResolutions));
|
||||
VgpuGop->GopMode.Info = &VgpuGop->GopModeInfo;
|
||||
VgpuGop->GopMode.SizeOfInfo = sizeof VgpuGop->GopModeInfo;
|
||||
|
||||
VgpuGop->GopModeInfo.PixelFormat = PixelBltOnly;
|
||||
|
||||
@@ -302,13 +306,13 @@ GopSetMode (
|
||||
NewNumberOfBytes = mGopResolutions[ModeNumber].Width *
|
||||
mGopResolutions[ModeNumber].Height * sizeof (UINT32);
|
||||
NewNumberOfPages = EFI_SIZE_TO_PAGES (NewNumberOfBytes);
|
||||
Status = VirtioGpuAllocateZeroAndMapBackingStore (
|
||||
VgpuGop->ParentBus, // VgpuDev
|
||||
NewNumberOfPages, // NumberOfPages
|
||||
&NewBackingStore, // HostAddress
|
||||
&NewBackingStoreDeviceAddress, // DeviceAddress
|
||||
&NewBackingStoreMap // Mapping
|
||||
);
|
||||
Status = VirtioGpuAllocateZeroAndMapBackingStore (
|
||||
VgpuGop->ParentBus, // VgpuDev
|
||||
NewNumberOfPages, // NumberOfPages
|
||||
&NewBackingStore, // HostAddress
|
||||
&NewBackingStoreDeviceAddress, // DeviceAddress
|
||||
&NewBackingStoreMap // Mapping
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto DestroyHostResource;
|
||||
}
|
||||
@@ -375,6 +379,7 @@ GopSetMode (
|
||||
if (EFI_ERROR (Status2)) {
|
||||
CpuDeadLoop ();
|
||||
}
|
||||
|
||||
goto DetachBackingStore;
|
||||
}
|
||||
|
||||
@@ -393,19 +398,19 @@ GopSetMode (
|
||||
ASSERT (VgpuGop->ResourceId == 0);
|
||||
ASSERT (VgpuGop->BackingStore == NULL);
|
||||
|
||||
VgpuGop->ResourceId = NewResourceId;
|
||||
VgpuGop->BackingStore = NewBackingStore;
|
||||
VgpuGop->NumberOfPages = NewNumberOfPages;
|
||||
VgpuGop->ResourceId = NewResourceId;
|
||||
VgpuGop->BackingStore = NewBackingStore;
|
||||
VgpuGop->NumberOfPages = NewNumberOfPages;
|
||||
VgpuGop->BackingStoreMap = NewBackingStoreMap;
|
||||
|
||||
//
|
||||
// Populate Mode and ModeInfo (mutable fields only).
|
||||
//
|
||||
VgpuGop->GopMode.Mode = ModeNumber;
|
||||
VgpuGop->GopMode.Mode = ModeNumber;
|
||||
VgpuGop->GopModeInfo.HorizontalResolution =
|
||||
mGopResolutions[ModeNumber].Width;
|
||||
mGopResolutions[ModeNumber].Width;
|
||||
VgpuGop->GopModeInfo.VerticalResolution = mGopResolutions[ModeNumber].Height;
|
||||
VgpuGop->GopModeInfo.PixelsPerScanLine = mGopResolutions[ModeNumber].Width;
|
||||
VgpuGop->GopModeInfo.PixelsPerScanLine = mGopResolutions[ModeNumber].Width;
|
||||
return EFI_SUCCESS;
|
||||
|
||||
DetachBackingStore:
|
||||
@@ -437,27 +442,27 @@ STATIC
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
GopBlt (
|
||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
|
||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer OPTIONAL,
|
||||
IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation,
|
||||
IN UINTN SourceX,
|
||||
IN UINTN SourceY,
|
||||
IN UINTN DestinationX,
|
||||
IN UINTN DestinationY,
|
||||
IN UINTN Width,
|
||||
IN UINTN Height,
|
||||
IN UINTN Delta OPTIONAL
|
||||
IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This,
|
||||
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer OPTIONAL,
|
||||
IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation,
|
||||
IN UINTN SourceX,
|
||||
IN UINTN SourceY,
|
||||
IN UINTN DestinationX,
|
||||
IN UINTN DestinationY,
|
||||
IN UINTN Width,
|
||||
IN UINTN Height,
|
||||
IN UINTN Delta OPTIONAL
|
||||
)
|
||||
{
|
||||
VGPU_GOP *VgpuGop;
|
||||
UINT32 CurrentHorizontal;
|
||||
UINT32 CurrentVertical;
|
||||
UINTN SegmentSize;
|
||||
UINTN Y;
|
||||
UINTN ResourceOffset;
|
||||
EFI_STATUS Status;
|
||||
VGPU_GOP *VgpuGop;
|
||||
UINT32 CurrentHorizontal;
|
||||
UINT32 CurrentVertical;
|
||||
UINTN SegmentSize;
|
||||
UINTN Y;
|
||||
UINTN ResourceOffset;
|
||||
EFI_STATUS Status;
|
||||
|
||||
VgpuGop = VGPU_GOP_FROM_GOP (This);
|
||||
VgpuGop = VGPU_GOP_FROM_GOP (This);
|
||||
CurrentHorizontal = VgpuGop->GopModeInfo.HorizontalResolution;
|
||||
CurrentVertical = VgpuGop->GopModeInfo.VerticalResolution;
|
||||
|
||||
@@ -476,8 +481,9 @@ GopBlt (
|
||||
// zero, then Width is the entire width of BltBuffer, and the stride is
|
||||
// supposed to be calculated from Width.
|
||||
//
|
||||
if (BltOperation == EfiBltVideoToBltBuffer ||
|
||||
BltOperation == EfiBltBufferToVideo) {
|
||||
if ((BltOperation == EfiBltVideoToBltBuffer) ||
|
||||
(BltOperation == EfiBltBufferToVideo))
|
||||
{
|
||||
if (Delta == 0) {
|
||||
Delta = SegmentSize;
|
||||
}
|
||||
@@ -487,13 +493,15 @@ GopBlt (
|
||||
// For operations that write to the display, check if the destination fits
|
||||
// onto the display.
|
||||
//
|
||||
if (BltOperation == EfiBltVideoFill ||
|
||||
BltOperation == EfiBltBufferToVideo ||
|
||||
BltOperation == EfiBltVideoToVideo) {
|
||||
if (DestinationX > CurrentHorizontal ||
|
||||
Width > CurrentHorizontal - DestinationX ||
|
||||
DestinationY > CurrentVertical ||
|
||||
Height > CurrentVertical - DestinationY) {
|
||||
if ((BltOperation == EfiBltVideoFill) ||
|
||||
(BltOperation == EfiBltBufferToVideo) ||
|
||||
(BltOperation == EfiBltVideoToVideo))
|
||||
{
|
||||
if ((DestinationX > CurrentHorizontal) ||
|
||||
(Width > CurrentHorizontal - DestinationX) ||
|
||||
(DestinationY > CurrentVertical) ||
|
||||
(Height > CurrentVertical - DestinationY))
|
||||
{
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
}
|
||||
@@ -502,12 +510,14 @@ GopBlt (
|
||||
// For operations that read from the display, check if the source fits onto
|
||||
// the display.
|
||||
//
|
||||
if (BltOperation == EfiBltVideoToBltBuffer ||
|
||||
BltOperation == EfiBltVideoToVideo) {
|
||||
if (SourceX > CurrentHorizontal ||
|
||||
Width > CurrentHorizontal - SourceX ||
|
||||
SourceY > CurrentVertical ||
|
||||
Height > CurrentVertical - SourceY) {
|
||||
if ((BltOperation == EfiBltVideoToBltBuffer) ||
|
||||
(BltOperation == EfiBltVideoToVideo))
|
||||
{
|
||||
if ((SourceX > CurrentHorizontal) ||
|
||||
(Width > CurrentHorizontal - SourceX) ||
|
||||
(SourceY > CurrentVertical) ||
|
||||
(Height > CurrentVertical - SourceY))
|
||||
{
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
}
|
||||
@@ -517,99 +527,103 @@ GopBlt (
|
||||
// won't be further steps.
|
||||
//
|
||||
switch (BltOperation) {
|
||||
case EfiBltVideoFill:
|
||||
//
|
||||
// Write data from the BltBuffer pixel (0, 0) directly to every pixel of
|
||||
// the video display rectangle (DestinationX, DestinationY) (DestinationX +
|
||||
// Width, DestinationY + Height). Only one pixel will be used from the
|
||||
// BltBuffer. Delta is NOT used.
|
||||
//
|
||||
for (Y = 0; Y < Height; ++Y) {
|
||||
SetMem32 (
|
||||
VgpuGop->BackingStore +
|
||||
case EfiBltVideoFill:
|
||||
//
|
||||
// Write data from the BltBuffer pixel (0, 0) directly to every pixel of
|
||||
// the video display rectangle (DestinationX, DestinationY) (DestinationX +
|
||||
// Width, DestinationY + Height). Only one pixel will be used from the
|
||||
// BltBuffer. Delta is NOT used.
|
||||
//
|
||||
for (Y = 0; Y < Height; ++Y) {
|
||||
SetMem32 (
|
||||
VgpuGop->BackingStore +
|
||||
(DestinationY + Y) * CurrentHorizontal + DestinationX,
|
||||
SegmentSize,
|
||||
*(UINT32 *)BltBuffer
|
||||
);
|
||||
}
|
||||
break;
|
||||
SegmentSize,
|
||||
*(UINT32 *)BltBuffer
|
||||
);
|
||||
}
|
||||
|
||||
case EfiBltVideoToBltBuffer:
|
||||
//
|
||||
// Read data from the video display rectangle (SourceX, SourceY) (SourceX +
|
||||
// Width, SourceY + Height) and place it in the BltBuffer rectangle
|
||||
// (DestinationX, DestinationY ) (DestinationX + Width, DestinationY +
|
||||
// Height). If DestinationX or DestinationY is not zero then Delta must be
|
||||
// set to the length in bytes of a row in the BltBuffer.
|
||||
//
|
||||
for (Y = 0; Y < Height; ++Y) {
|
||||
CopyMem (
|
||||
(UINT8 *)BltBuffer +
|
||||
(DestinationY + Y) * Delta + DestinationX * sizeof *BltBuffer,
|
||||
VgpuGop->BackingStore +
|
||||
(SourceY + Y) * CurrentHorizontal + SourceX,
|
||||
SegmentSize
|
||||
);
|
||||
}
|
||||
return EFI_SUCCESS;
|
||||
break;
|
||||
|
||||
case EfiBltBufferToVideo:
|
||||
//
|
||||
// Write data from the BltBuffer rectangle (SourceX, SourceY) (SourceX +
|
||||
// Width, SourceY + Height) directly to the video display rectangle
|
||||
// (DestinationX, DestinationY) (DestinationX + Width, DestinationY +
|
||||
// Height). If SourceX or SourceY is not zero then Delta must be set to the
|
||||
// length in bytes of a row in the BltBuffer.
|
||||
//
|
||||
for (Y = 0; Y < Height; ++Y) {
|
||||
CopyMem (
|
||||
VgpuGop->BackingStore +
|
||||
(DestinationY + Y) * CurrentHorizontal + DestinationX,
|
||||
(UINT8 *)BltBuffer +
|
||||
(SourceY + Y) * Delta + SourceX * sizeof *BltBuffer,
|
||||
SegmentSize
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case EfiBltVideoToVideo:
|
||||
//
|
||||
// Copy from the video display rectangle (SourceX, SourceY) (SourceX +
|
||||
// Width, SourceY + Height) to the video display rectangle (DestinationX,
|
||||
// DestinationY) (DestinationX + Width, DestinationY + Height). The
|
||||
// BltBuffer and Delta are not used in this mode.
|
||||
//
|
||||
// A single invocation of CopyMem() handles overlap between source and
|
||||
// destination (that is, within a single line), but for multiple
|
||||
// invocations, we must handle overlaps.
|
||||
//
|
||||
if (SourceY < DestinationY) {
|
||||
Y = Height;
|
||||
while (Y > 0) {
|
||||
--Y;
|
||||
case EfiBltVideoToBltBuffer:
|
||||
//
|
||||
// Read data from the video display rectangle (SourceX, SourceY) (SourceX +
|
||||
// Width, SourceY + Height) and place it in the BltBuffer rectangle
|
||||
// (DestinationX, DestinationY ) (DestinationX + Width, DestinationY +
|
||||
// Height). If DestinationX or DestinationY is not zero then Delta must be
|
||||
// set to the length in bytes of a row in the BltBuffer.
|
||||
//
|
||||
for (Y = 0; Y < Height; ++Y) {
|
||||
CopyMem (
|
||||
(UINT8 *)BltBuffer +
|
||||
(DestinationY + Y) * Delta + DestinationX * sizeof *BltBuffer,
|
||||
VgpuGop->BackingStore +
|
||||
(DestinationY + Y) * CurrentHorizontal + DestinationX,
|
||||
VgpuGop->BackingStore +
|
||||
(SourceY + Y) * CurrentHorizontal + SourceX,
|
||||
(SourceY + Y) * CurrentHorizontal + SourceX,
|
||||
SegmentSize
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
||||
case EfiBltBufferToVideo:
|
||||
//
|
||||
// Write data from the BltBuffer rectangle (SourceX, SourceY) (SourceX +
|
||||
// Width, SourceY + Height) directly to the video display rectangle
|
||||
// (DestinationX, DestinationY) (DestinationX + Width, DestinationY +
|
||||
// Height). If SourceX or SourceY is not zero then Delta must be set to the
|
||||
// length in bytes of a row in the BltBuffer.
|
||||
//
|
||||
for (Y = 0; Y < Height; ++Y) {
|
||||
CopyMem (
|
||||
VgpuGop->BackingStore +
|
||||
(DestinationY + Y) * CurrentHorizontal + DestinationX,
|
||||
VgpuGop->BackingStore +
|
||||
(SourceY + Y) * CurrentHorizontal + SourceX,
|
||||
(DestinationY + Y) * CurrentHorizontal + DestinationX,
|
||||
(UINT8 *)BltBuffer +
|
||||
(SourceY + Y) * Delta + SourceX * sizeof *BltBuffer,
|
||||
SegmentSize
|
||||
);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
return EFI_INVALID_PARAMETER;
|
||||
break;
|
||||
|
||||
case EfiBltVideoToVideo:
|
||||
//
|
||||
// Copy from the video display rectangle (SourceX, SourceY) (SourceX +
|
||||
// Width, SourceY + Height) to the video display rectangle (DestinationX,
|
||||
// DestinationY) (DestinationX + Width, DestinationY + Height). The
|
||||
// BltBuffer and Delta are not used in this mode.
|
||||
//
|
||||
// A single invocation of CopyMem() handles overlap between source and
|
||||
// destination (that is, within a single line), but for multiple
|
||||
// invocations, we must handle overlaps.
|
||||
//
|
||||
if (SourceY < DestinationY) {
|
||||
Y = Height;
|
||||
while (Y > 0) {
|
||||
--Y;
|
||||
CopyMem (
|
||||
VgpuGop->BackingStore +
|
||||
(DestinationY + Y) * CurrentHorizontal + DestinationX,
|
||||
VgpuGop->BackingStore +
|
||||
(SourceY + Y) * CurrentHorizontal + SourceX,
|
||||
SegmentSize
|
||||
);
|
||||
}
|
||||
} else {
|
||||
for (Y = 0; Y < Height; ++Y) {
|
||||
CopyMem (
|
||||
VgpuGop->BackingStore +
|
||||
(DestinationY + Y) * CurrentHorizontal + DestinationX,
|
||||
VgpuGop->BackingStore +
|
||||
(SourceY + Y) * CurrentHorizontal + SourceX,
|
||||
SegmentSize
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -648,7 +662,7 @@ GopBlt (
|
||||
//
|
||||
// Template for initializing VGPU_GOP.Gop.
|
||||
//
|
||||
CONST EFI_GRAPHICS_OUTPUT_PROTOCOL mGopTemplate = {
|
||||
CONST EFI_GRAPHICS_OUTPUT_PROTOCOL mGopTemplate = {
|
||||
GopQueryMode,
|
||||
GopSetMode,
|
||||
GopBlt,
|
||||
|
Reference in New Issue
Block a user