Cleanup: format

This commit is contained in:
Campbell Barton 2022-10-20 13:53:34 +11:00
parent c58d6b30ad
commit f24dfdcd3c
2 changed files with 4 additions and 4 deletions

View File

@ -339,13 +339,13 @@ bool MetalDevice::compile_and_load(MetalPipelineType pso_type)
MTLCompileOptions *options = [[MTLCompileOptions alloc] init];
#if defined(MAC_OS_VERSION_13_0)
# if defined(MAC_OS_VERSION_13_0)
if (@available(macos 13.0, *)) {
if (device_vendor == METAL_GPU_INTEL) {
[options setOptimizationLevel:MTLLibraryOptimizationLevelSize];
}
}
#endif
# endif
options.fastMathEnabled = YES;
if (@available(macOS 12.0, *)) {

View File

@ -110,11 +110,11 @@ vector<id<MTLDevice>> const &MetalInfo::get_usable_devices()
usable |= (vendor == METAL_GPU_AMD);
}
#if defined(MAC_OS_VERSION_13_0)
# if defined(MAC_OS_VERSION_13_0)
if (@available(macos 13.0, *)) {
usable |= (vendor == METAL_GPU_INTEL);
}
#endif
# endif
if (usable) {
metal_printf("- %s\n", device_name.c_str());