diff options
author | Campbell Barton <campbell@blender.org> | 2022-02-11 01:10:56 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-02-11 01:14:35 +0300 |
commit | 1a705fa139d3c6204b0d31a84a5596df0f25c66f (patch) | |
tree | a4609efb06f2e35abb9f7c65517723e7f35ecdd3 /intern/cycles | |
parent | 2cc47474434aaf7756ef5cfc7fcd099e179c0fd3 (diff) |
Cleanup: clang-format
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/device/metal/device_impl.mm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/intern/cycles/device/metal/device_impl.mm b/intern/cycles/device/metal/device_impl.mm index cdaafc60ab0..e761308b764 100644 --- a/intern/cycles/device/metal/device_impl.mm +++ b/intern/cycles/device/metal/device_impl.mm @@ -458,7 +458,8 @@ MetalDevice::MetalMem *MetalDevice::generic_alloc(device_memory &mem) id<MTLBuffer> metal_buffer = nil; MTLResourceOptions options = default_storage_mode; - /* Workaround for "bake" unit tests which fail if RenderBuffers is allocated with MTLResourceStorageModeShared. */ + /* Workaround for "bake" unit tests which fail if RenderBuffers is allocated with + * MTLResourceStorageModeShared. */ if (strstr(mem.name, "RenderBuffers")) { options = MTLResourceStorageModeManaged; } @@ -769,9 +770,11 @@ void MetalDevice::tex_alloc(device_texture &mem) /* Check that dimensions fit within maximum allowable size. See https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf */ - if (mem.data_width > 16384 || - mem.data_height > 16384) { - set_error(string_printf("Texture exceeds maximum allowed size of 16384 x 16384 (requested: %zu x %zu)", mem.data_width, mem.data_height)); + if (mem.data_width > 16384 || mem.data_height > 16384) { + set_error(string_printf( + "Texture exceeds maximum allowed size of 16384 x 16384 (requested: %zu x %zu)", + mem.data_width, + mem.data_height)); return; } |