Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorteza Mostajab <mmostajab>2022-10-19 19:09:23 +0300
committerMichael Jones <michael_p_jones@apple.com>2022-10-19 19:09:38 +0300
commite6902d19a0d8b034e65f28df6dba914a876b08df (patch)
tree9e1522a21aeacc8669a4ef9aba860613fbc13f4b /intern/cycles/device/metal/util.mm
parent053fc35b01593dbfa83858bf5a0debea39c5f1ef (diff)
Cycles: Allow Intel GPUs under Metal
Known Issues: - Command buffer failures when using binary archives (binary archives is disabled for Intel GPUs as a workaround) - Wrong texture sampler being applied (to be addressed in the future) Ref T92212 Reviewed By: brecht Maniphest Tasks: T92212 Differential Revision: https://developer.blender.org/D16253
Diffstat (limited to 'intern/cycles/device/metal/util.mm')
-rw-r--r--intern/cycles/device/metal/util.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/device/metal/util.mm b/intern/cycles/device/metal/util.mm
index 65c67c400fe..eb77aeb6a54 100644
--- a/intern/cycles/device/metal/util.mm
+++ b/intern/cycles/device/metal/util.mm
@@ -110,6 +110,10 @@ vector<id<MTLDevice>> const &MetalInfo::get_usable_devices()
usable |= (vendor == METAL_GPU_AMD);
}
+ if (@available(macos 13.0, *)) {
+ usable |= (vendor == METAL_GPU_INTEL);
+ }
+
if (usable) {
metal_printf("- %s\n", device_name.c_str());
[device retain];