-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from johnhaddon/m1MurrayPlus
Apple Silicon fixes
- Loading branch information
Showing
23 changed files
with
197 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- a/src/appleseed/foundation/platform/system.cpp 2021-12-04 10:55:14.000000000 -0800 | ||
+++ b/src/appleseed/foundation/platform/system.cpp 2021-12-04 10:53:42.000000000 -0800 | ||
@@ -70,7 +70,12 @@ | ||
#include <sys/param.h> | ||
#include <sys/sysctl.h> | ||
#include <sys/types.h> | ||
+ | ||
+ #ifdef APPLESEED_X86 | ||
+ | ||
#include <cpuid.h> | ||
+ | ||
+ #endif | ||
|
||
// Linux. | ||
#elif defined __linux__ | ||
@@ -269,6 +274,8 @@ | ||
|
||
namespace | ||
{ | ||
+ #ifdef APPLESEED_X86 | ||
+ | ||
// EAX is set to the value of `index`. Results are returned in `cpuinfo`: | ||
// cpuinfo[0] == EAX | ||
// cpuinfo[1] == EBX | ||
@@ -292,6 +299,8 @@ | ||
return (static_cast<uint64>(edx) << 32) | eax; | ||
} | ||
|
||
+ #endif | ||
+ | ||
size_t get_system_value(const char* name) | ||
{ | ||
size_t value = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- a/src/device/CMakeLists.txt 2022-04-06 12:11:18.000000000 -0700 | ||
+++ b/src/device/CMakeLists.txt 2022-05-07 12:38:45.000000000 -0700 | ||
@@ -187,6 +187,9 @@ | ||
list(APPEND LIB | ||
${METAL_LIBRARY} | ||
) | ||
+ list(APPEND LIB | ||
+ "-framework Foundation" | ||
+ ) | ||
add_definitions(-DWITH_METAL) | ||
list(APPEND SRC | ||
${SRC_METAL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ | |
|
||
}, | ||
|
||
"platform:osx" : { | ||
"platform:macos" : { | ||
|
||
"variables" : { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.