Commits

Ryan Schmidt authored 93841773d08
minivmac*: Don't require discrete GPU for bootstrap

This code is unfinished and insufficiently tested so only use it for the short-running bootstrap variation, not for variations built for the user.
No tags

emulators/minivmac/files/AutomaticGraphicsSwitching.patch

Added
1 +https://www.gryphel.com/c/mail/v8.html#m0
2 +https://developer.apple.com/library/archive/qa/qa1734/
3 +https://developer.apple.com/library/archive/technotes/tn2229/
4 +--- src/Info.plist.orig 2018-06-22 05:58:58.000000000 -0500
5 ++++ src/Info.plist 2018-06-22 06:01:11.000000000 -0500
6 +@@ -3,4 +3,6 @@
7 + <plist version="1.0">
8 + <dict>
9 ++ <key>NSSupportsAutomaticGraphicsSwitching</key>
10 ++ <true/>
11 + <key>CFBundleDevelopmentRegion</key>
12 + <string>English</string>
13 +--- src/OSGLUCCO.m.orig 2018-06-09 03:53:21.000000000 -0500
14 ++++ src/OSGLUCCO.m 2018-06-22 06:33:03.000000000 -0500
15 +@@ -51,6 +51,8 @@
16 +
17 + typedef struct __CFError * CFErrorRef;
18 +
19 ++#define NSOpenGLPFAAllowOfflineRenderers (NSOpenGLPixelFormatAttribute)96
20 ++
21 + #endif
22 +
23 + #if MAC_OS_X_VERSION_10_6 > MAC_OS_X_VERSION_MAX_ALLOWED
24 +@@ -3160,2 +3162,3 @@
25 + NSOpenGLPixelFormatAttribute attr[] = {
26 ++ NSOpenGLPFAAllowOfflineRenderers,
27 + 0};
28 +@@ -3164,2 +3167,9 @@
29 + fmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr];
30 ++#if MAC_OS_X_VERSION_10_5 > MAC_OS_X_VERSION_MIN_REQUIRED
31 ++ if (nil == fmt) {
32 ++ /* NSOpenGLPFAAllowOfflineRenderers is not supported; remove it */
33 ++ attr[0] = (NSOpenGLPixelFormatAttribute)0;
34 ++ fmt = [[NSOpenGLPixelFormat alloc] initWithAttributes:attr];
35 ++ }
36 ++#endif
37 + if (nil == fmt) {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut