diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-11-13 05:07:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-11-13 05:07:13 +0300 |
commit | 1143bf281afc69b931f7d0eb1daa4b800dcc513d (patch) | |
tree | 38e14b6ef4d15085c65b66755260ec0521e50c3c /intern/cycles | |
parent | acc800d24dccc48364c2d64b035c5c6aca895651 (diff) |
Cleanup: spelling in comments, comment block formatting
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/device/hip/device_impl.cpp | 2 | ||||
-rw-r--r-- | intern/cycles/kernel/device/metal/compat.h | 6 | ||||
-rw-r--r-- | intern/cycles/kernel/device/metal/context_end.h | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/intern/cycles/device/hip/device_impl.cpp b/intern/cycles/device/hip/device_impl.cpp index 7874471724a..71f3b7ce4fe 100644 --- a/intern/cycles/device/hip/device_impl.cpp +++ b/intern/cycles/device/hip/device_impl.cpp @@ -243,7 +243,7 @@ string HIPDevice::compile_kernel(const uint kernel_features, const char *name, c hipGetDeviceProperties(&props, hipDevId); /* gcnArchName can contain tokens after the arch name with features, ie. - "gfx1010:sramecc-:xnack-" so we tokenize it to get the first part. */ + * `gfx1010:sramecc-:xnack-` so we tokenize it to get the first part. */ char *arch = strtok(props.gcnArchName, ":"); if (arch == NULL) { arch = props.gcnArchName; diff --git a/intern/cycles/kernel/device/metal/compat.h b/intern/cycles/kernel/device/metal/compat.h index 2fa9b7fed44..a839917a907 100644 --- a/intern/cycles/kernel/device/metal/compat.h +++ b/intern/cycles/kernel/device/metal/compat.h @@ -73,7 +73,8 @@ using namespace metal; #define ccl_gpu_kernel(block_num_threads, thread_num_registers) #define ccl_gpu_kernel_threads(block_num_threads) -/* convert a comma-separated list into a semicolon-separated list (so that we can generate a struct based on kernel entrypoint parameters) */ +/* Convert a comma-separated list into a semicolon-separated list + * (so that we can generate a struct based on kernel entry-point parameters). */ #define FN0() #define FN1(p1) p1; #define FN2(p1, p2) p1; p2; @@ -94,7 +95,8 @@ using namespace metal; #define GET_LAST_ARG(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, ...) p16 #define PARAMS_MAKER(...) GET_LAST_ARG(__VA_ARGS__, FN16, FN15, FN14, FN13, FN12, FN11, FN10, FN9, FN8, FN7, FN6, FN5, FN4, FN3, FN2, FN1, FN0) -/* generate a struct containing the entrypoint parameters and a "run" method which can access them implicitly via this-> */ +/* Generate a struct containing the entry-point parameters and a "run" + * method which can access them implicitly via this-> */ #define ccl_gpu_kernel_signature(name, ...) \ struct kernel_gpu_##name \ { \ diff --git a/intern/cycles/kernel/device/metal/context_end.h b/intern/cycles/kernel/device/metal/context_end.h index 811abdec150..e700f294440 100644 --- a/intern/cycles/kernel/device/metal/context_end.h +++ b/intern/cycles/kernel/device/metal/context_end.h @@ -17,7 +17,7 @@ ; /* end of MetalKernelContext class definition */ /* Silently redirect into the MetalKernelContext instance */ -/* NOTE: These macros will need maintaining as entrypoints change */ +/* NOTE: These macros will need maintaining as entry-points change. */ #undef kernel_integrator_state #define kernel_integrator_state context.launch_params_metal.__integrator_state |