Skip to content

Commit

Permalink
Drop invalid dummy graphics and provide alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jun 6, 2021
1 parent 419a1c4 commit da91b0c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 82 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ UEFIGraphicsFB
[![Build Status](https://github.com/acidanthera/UEFIGraphicsFB/workflows/CI/badge.svg?branch=master)](https://github.com/acidanthera/UEFIGraphicsFB/actions) [![Scan Status](https://scan.coverity.com/projects/23074/badge.svg?flat=1)](https://scan.coverity.com/projects/23074)

IOGraphics framebuffer based on UEFI framebuffer passed over XNU boot arguments. Provides basic
display output without hardware acceleration on certain virtual machines.
display output without hardware acceleration on generic hardware.

#### Disabling other GPUs

If there are other conflicting GPUs in the system, one can disable them by injecting the following properties:

- `name` = `<unused>`
- `class-code` = `<FF FF FF FF>`

#### Credits
- [Apple](https://www.apple.com) for macOS
Expand Down
8 changes: 0 additions & 8 deletions UEFIGraphicsFB.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
416882EE263E3DD5005A10E2 /* UEFIGraphicsFB.h in Headers */ = {isa = PBXBuildFile; fileRef = 416882ED263E3DD5005A10E2 /* UEFIGraphicsFB.h */; };
416882F0263E3DD5005A10E2 /* UEFIGraphicsFB.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 416882EF263E3DD5005A10E2 /* UEFIGraphicsFB.cpp */; };
CEAE89A026404DF40073A6D6 /* libkmod.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CEAE899F26404DF40073A6D6 /* libkmod.a */; };
CEFF7E9526412BB600D6B242 /* DummyGraphics.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CEFF7E9326412BB600D6B242 /* DummyGraphics.cpp */; };
CEFF7E9626412BB600D6B242 /* DummyGraphics.h in Headers */ = {isa = PBXBuildFile; fileRef = CEFF7E9426412BB600D6B242 /* DummyGraphics.h */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -20,8 +18,6 @@
416882EF263E3DD5005A10E2 /* UEFIGraphicsFB.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = UEFIGraphicsFB.cpp; sourceTree = "<group>"; };
416882F1263E3DD5005A10E2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
CEAE899F26404DF40073A6D6 /* libkmod.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libkmod.a; path = ../Lilu/MacKernelSDK/Library/x86_64/libkmod.a; sourceTree = "<group>"; };
CEFF7E9326412BB600D6B242 /* DummyGraphics.cpp */ = {isa = PBXFileReference; indentWidth = 2; lastKnownFileType = sourcecode.cpp.cpp; path = DummyGraphics.cpp; sourceTree = "<group>"; tabWidth = 2; usesTabs = 0; };
CEFF7E9426412BB600D6B242 /* DummyGraphics.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DummyGraphics.h; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -59,8 +55,6 @@
416882EC263E3DD5005A10E2 /* UEFIGraphicsFB */ = {
isa = PBXGroup;
children = (
CEFF7E9426412BB600D6B242 /* DummyGraphics.h */,
CEFF7E9326412BB600D6B242 /* DummyGraphics.cpp */,
416882ED263E3DD5005A10E2 /* UEFIGraphicsFB.h */,
416882EF263E3DD5005A10E2 /* UEFIGraphicsFB.cpp */,
416882F1263E3DD5005A10E2 /* Info.plist */,
Expand All @@ -83,7 +77,6 @@
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
CEFF7E9626412BB600D6B242 /* DummyGraphics.h in Headers */,
416882EE263E3DD5005A10E2 /* UEFIGraphicsFB.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -178,7 +171,6 @@
buildActionMask = 2147483647;
files = (
416882F0263E3DD5005A10E2 /* UEFIGraphicsFB.cpp in Sources */,
CEFF7E9526412BB600D6B242 /* DummyGraphics.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
29 changes: 0 additions & 29 deletions UEFIGraphicsFB/DummyGraphics.cpp

This file was deleted.

26 changes: 0 additions & 26 deletions UEFIGraphicsFB/DummyGraphics.h

This file was deleted.

17 changes: 0 additions & 17 deletions UEFIGraphicsFB/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,6 @@
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>IOKitPersonalities</key>
<dict>
<key>DummyGraphics</key>
<dict>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>IOClass</key>
<string>DummyGraphics</string>
<key>IOMatchCategory</key>
<string>IOFramebuffer</string>
<key>IOPCIClassMatch</key>
<string>0x03000000&amp;0xFF000000</string>
<key>IOPCITunnelCompatible</key>
<true/>
<key>IOProbeScore</key>
<integer>100000</integer>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<key>UEFIGraphicsFB</key>
<dict>
<key>CFBundleIdentifier</key>
Expand Down
2 changes: 1 addition & 1 deletion UEFIGraphicsFB/UEFIGraphicsFB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ bool UEFIGraphicsFB::start(IOService *provider) {
//
registerService();

SYSLOG("Framebuffer is at 0x%X (width %u height %u bits %u bytes/row %u)", videoBaseAddress, videoWidth, videoHeight, videoDepth, videoBytesPerRow);
DBGLOG("Framebuffer is at 0x%X (width %u height %u bits %u bytes/row %u)", videoBaseAddress, videoWidth, videoHeight, videoDepth, videoBytesPerRow);
return true;
}

0 comments on commit da91b0c

Please sign in to comment.