[Bf-blender-cvs] [4d66cbd140b] master: Cleanup: spelling in comments

Campbell Barton noreply at git.blender.org
Wed Sep 22 06:59:46 CEST 2021


Commit: 4d66cbd140b1648b79df0df695046cb718797b70
Author: Campbell Barton
Date:   Wed Sep 22 14:48:01 2021 +1000
Branches: master
https://developer.blender.org/rB4d66cbd140b1648b79df0df695046cb718797b70

Cleanup: spelling in comments

===================================================================

M	intern/cycles/blender/blender_gpu_display.cpp
M	intern/cycles/blender/blender_gpu_display.h
M	intern/cycles/device/cpu/kernel.cpp
M	intern/cycles/device/cuda/kernel.cpp
M	intern/cycles/device/device.h
M	intern/cycles/device/device_denoise.h
M	intern/cycles/device/optix/device_impl.cpp
M	intern/cycles/device/optix/device_impl.h
M	intern/cycles/integrator/denoiser.h
M	intern/cycles/integrator/denoiser_device.cpp
M	intern/cycles/integrator/denoiser_oidn.cpp
M	intern/cycles/integrator/path_trace.cpp
M	intern/cycles/integrator/path_trace.h
M	intern/cycles/integrator/path_trace_work.h
M	intern/cycles/integrator/path_trace_work_gpu.cpp
M	intern/cycles/integrator/render_scheduler.cpp
M	intern/cycles/integrator/render_scheduler.h
M	intern/cycles/integrator/shader_eval.cpp
M	intern/cycles/integrator/work_balancer.h
M	intern/cycles/integrator/work_tile_scheduler.cpp
M	intern/cycles/integrator/work_tile_scheduler.h
M	intern/cycles/kernel/closure/bssrdf.h
M	intern/cycles/kernel/device/cuda/compat.h
M	intern/cycles/kernel/device/optix/compat.h
M	intern/cycles/kernel/integrator/integrator_shade_volume.h
M	intern/cycles/kernel/integrator/integrator_state.h
M	intern/cycles/kernel/kernel_adaptive_sampling.h
M	intern/cycles/kernel/kernel_film.h
M	intern/cycles/kernel/kernel_random.h
M	intern/cycles/kernel/kernel_types.h
M	intern/cycles/kernel/svm/svm_bevel.h
M	intern/cycles/render/buffers.cpp
M	intern/cycles/render/buffers.h
M	intern/cycles/render/gpu_display.h
M	intern/cycles/render/session.cpp
M	intern/cycles/render/session.h
M	intern/cycles/render/tile.cpp
M	intern/cycles/render/tile.h
M	source/blender/blenkernel/intern/geometry_component_instances.cc
M	source/blender/blenkernel/intern/gpencil_geom.cc
M	source/blender/blenkernel/intern/mesh_convert.cc
M	source/blender/editors/space_file/filesel.c
M	source/blender/editors/space_sequencer/sequencer_draw.c
M	source/blender/gpencil_modifiers/intern/MOD_gpencillength.c
M	source/blender/nodes/geometry/nodes/node_geo_curve_sample.cc
M	source/blender/windowmanager/intern/wm_dragdrop.c

===================================================================

diff --git a/intern/cycles/blender/blender_gpu_display.cpp b/intern/cycles/blender/blender_gpu_display.cpp
index a79232af71f..aa2a9c17a8a 100644
--- a/intern/cycles/blender/blender_gpu_display.cpp
+++ b/intern/cycles/blender/blender_gpu_display.cpp
@@ -338,9 +338,9 @@ bool BlenderGPUDisplay::do_update_begin(const GPUDisplayParams &params,
    * NOTE: Allocate the PBO for the the size which will fit the final render resolution (as in,
    * at a resolution divider 1. This was we don't need to recreate graphics interoperability
    * objects which are costly and which are tied to the specific underlying buffer size.
-   * The downside of this approach is that when graphics interopeability is not used we are sending
-   * too much data to GPU when resolution divider is not 1. */
-  /* TODO(sergey): Investigate whether keeping the PBO exact size of the texute makes non-interop
+   * The downside of this approach is that when graphics interoperability is not used we are
+   * sending too much data to GPU when resolution divider is not 1. */
+  /* TODO(sergey): Investigate whether keeping the PBO exact size of the texture makes non-interop
    * mode faster. */
   const int buffer_width = params.full_size.x;
   const int buffer_height = params.full_size.y;
diff --git a/intern/cycles/blender/blender_gpu_display.h b/intern/cycles/blender/blender_gpu_display.h
index b7eddf0afa7..1014c96cee4 100644
--- a/intern/cycles/blender/blender_gpu_display.h
+++ b/intern/cycles/blender/blender_gpu_display.h
@@ -134,7 +134,7 @@ class BlenderGPUDisplay : public GPUDisplay {
   /* Make sure texture is allocated and its initial configuration is performed. */
   bool gl_texture_resources_ensure();
 
-  /* Ensure all runtime GPU resources needefd for drawing are allocated.
+  /* Ensure all runtime GPU resources needed for drawing are allocated.
    * Returns true if all resources needed for drawing are available. */
   bool gl_draw_resources_ensure();
 
@@ -146,7 +146,7 @@ class BlenderGPUDisplay : public GPUDisplay {
    * NOTE: The texture needs to be bound. */
   void texture_update_if_needed();
 
-  /* Update vetrex buffer with new coordinates of vertex positions and texture coordinates.
+  /* Update vertex buffer with new coordinates of vertex positions and texture coordinates.
    * This buffer is used to render texture in the viewport.
    *
    * NOTE: The buffer needs to be bound. */
@@ -200,7 +200,7 @@ class BlenderGPUDisplay : public GPUDisplay {
   bool gl_draw_resource_creation_attempted_ = false;
   bool gl_draw_resources_created_ = false;
 
-  /* Vertex buffer which hold vertrices of a triangle fan which is textures with the texture
+  /* Vertex buffer which hold vertices of a triangle fan which is textures with the texture
    * holding the render result. */
   uint vertex_buffer_ = 0;
 
diff --git a/intern/cycles/device/cpu/kernel.cpp b/intern/cycles/device/cpu/kernel.cpp
index 0ab58ff8600..91282390e27 100644
--- a/intern/cycles/device/cpu/kernel.cpp
+++ b/intern/cycles/device/cpu/kernel.cpp
@@ -44,7 +44,7 @@ CPUKernels::CPUKernels()
       /* Shader evaluation. */
       REGISTER_KERNEL(shader_eval_displace),
       REGISTER_KERNEL(shader_eval_background),
-      /* Adaptive campling. */
+      /* Adaptive sampling. */
       REGISTER_KERNEL(adaptive_sampling_convergence_check),
       REGISTER_KERNEL(adaptive_sampling_filter_x),
       REGISTER_KERNEL(adaptive_sampling_filter_y),
diff --git a/intern/cycles/device/cuda/kernel.cpp b/intern/cycles/device/cuda/kernel.cpp
index 0ed20ddf8e6..a4a7bfabce0 100644
--- a/intern/cycles/device/cuda/kernel.cpp
+++ b/intern/cycles/device/cuda/kernel.cpp
@@ -28,7 +28,7 @@ void CUDADeviceKernels::load(CUDADevice *device)
   for (int i = 0; i < (int)DEVICE_KERNEL_NUM; i++) {
     CUDADeviceKernel &kernel = kernels_[i];
 
-    /* No megakernel used for GPU. */
+    /* No mega-kernel used for GPU. */
     if (i == DEVICE_KERNEL_INTEGRATOR_MEGAKERNEL) {
       continue;
     }
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h
index 02b6edb56d0..399d5eb91df 100644
--- a/intern/cycles/device/device.h
+++ b/intern/cycles/device/device.h
@@ -213,7 +213,7 @@ class Device {
    * The interoperability comes here by the meaning that the device is capable of computing result
    * directly into an OpenGL (or other graphics library) buffer. */
 
-  /* Check display si to be updated using graphics interoperability.
+  /* Check display is to be updated using graphics interoperability.
    * The interoperability can not be used is it is not supported by the device. But the device
    * might also force disable the interoperability if it detects that it will be slower than
    * copying pixels from the render buffer. */
diff --git a/intern/cycles/device/device_denoise.h b/intern/cycles/device/device_denoise.h
index 02ee63fb0ad..dfdc7cc87b3 100644
--- a/intern/cycles/device/device_denoise.h
+++ b/intern/cycles/device/device_denoise.h
@@ -68,7 +68,7 @@ class DenoiseParams : public Node {
   /* Viewport start sample. */
   int start_sample = 0;
 
-  /* Auxiliry passes. */
+  /* Auxiliary passes. */
   bool use_pass_albedo = true;
   bool use_pass_normal = true;
 
diff --git a/intern/cycles/device/optix/device_impl.cpp b/intern/cycles/device/optix/device_impl.cpp
index cd16b8c9f01..b54d423a183 100644
--- a/intern/cycles/device/optix/device_impl.cpp
+++ b/intern/cycles/device/optix/device_impl.cpp
@@ -571,7 +571,7 @@ class OptiXDevice::DenoiseContext {
     int pass_stride = -1;
   } guiding_params;
 
-  /* Number of input passes. Including the color and extra auxillary passes. */
+  /* Number of input passes. Including the color and extra auxiliary passes. */
   int num_input_passes = 0;
   bool use_pass_albedo = false;
   bool use_pass_normal = false;
@@ -956,7 +956,7 @@ bool OptiXDevice::denoise_run(DenoiseContext &context, const DenoisePass &pass)
   /* Denoise in-place of the noisy input in the render buffers. */
   output_layer = color_layer;
 
-  /* Finally run denonising. */
+  /* Finally run denoising. */
   OptixDenoiserParams params = {}; /* All parameters are disabled/zero. */
   OptixDenoiserLayer image_layers = {};
   image_layers.input = color_layer;
diff --git a/intern/cycles/device/optix/device_impl.h b/intern/cycles/device/optix/device_impl.h
index 742ae0f1bab..91ef52e0a5a 100644
--- a/intern/cycles/device/optix/device_impl.h
+++ b/intern/cycles/device/optix/device_impl.h
@@ -146,7 +146,7 @@ class OptiXDevice : public CUDADevice {
   /* Read guiding passes from the render buffers, preprocess them in a way which is expected by
    * OptiX and store in the guiding passes memory within the given context.
    *
-   * Pre=-processing of the guiding passes is to only hapopen once per context lifetime. DO not
+   * Pre=-processing of the guiding passes is to only happen once per context lifetime. DO not
    * preprocess them for every pass which is being denoised. */
   bool denoise_filter_guiding_preprocess(DenoiseContext &context);
 
diff --git a/intern/cycles/integrator/denoiser.h b/intern/cycles/integrator/denoiser.h
index 3101b45e31b..b02bcbeb046 100644
--- a/intern/cycles/integrator/denoiser.h
+++ b/intern/cycles/integrator/denoiser.h
@@ -33,7 +33,7 @@ class Progress;
 
 /* Implementation of a specific denoising algorithm.
  *
- * This class takes care of breaking down denosiing algorithm into a series of device calls or to
+ * This class takes care of breaking down denoising algorithm into a series of device calls or to
  * calls of an external API to denoise given input.
  *
  * TODO(sergey): Are we better with device or a queue here? */
@@ -53,7 +53,7 @@ class Denoiser {
   const DenoiseParams &get_params() const;
 
   /* Create devices and load kernels needed for denoising.
-   * The progress is used to communicate state when kenrels actually needs to be loaded.
+   * The progress is used to communicate state when kernels actually needs to be loaded.
    *
    * NOTE: The `progress` is an optional argument, can be nullptr. */
   virtual bool load_kernels(Progress *progress);
@@ -64,7 +64,7 @@ class Denoiser {
    * a lower resolution render into a bigger allocated buffer, which is used in viewport during
    * navigation and non-unit pixel size. Use that instead of render_buffers->params.
    *
-   * The buffer might be copming from a "foreign" device from what this denoise is created for.
+   * The buffer might be coming from a "foreign" device from what this denoise is created for.
    * This means that in general case the denoiser will make sure the input data is available on
    * the denoiser device, perform denoising, and put data back to the device where the buffer
    * came from.
@@ -95,8 +95,8 @@ class Denoiser {
    *   using OptiX denoiser and rendering on CPU.
    *
    * - No threading safety is ensured in this call. This means, that it is up to caller to ensure
-   *   that there is no threadingconflict between denoising task lazily initializing the device and
-   *   access to this device happen. */
+   *   that there is no threading-conflict between denoising task lazily initializing the device
+   *   and access to this device happen. */
   Device *get_denoiser_device() const;
 
   function<bool(void)> is_cancelled_cb;
diff --git a/intern/cycles/integrator/denoiser_device.cpp b/intern/cycles/integrator/denoiser_device.cpp
index 8088cfd7800..e8361c50f2f 100644
--- a/intern/cycles/integrator/denoiser_device.cpp
+++ b/intern/cycles/integrator/denoiser_device.cpp
@@ -77,7 +77,7 @@ bool DeviceDenoiser::denoise_buffer(const BufferParams &buffer_params,
     local_render_buffers.reset(buffer_params);
 
     /* NOTE: The local buffer is allocated for an exact size of the effective render size, while
-     * the input render buffer is allcoated for the lowest resolution divider possible. So it is
+     * the input render buffer is allocated for the lowest resolution divider possible. So it is
      * important to only copy actually needed part of the input buffer. */
     memcpy(local_render_buffers.buffer.data(),
            render_buffers->buffer.data(),
diff --git a/intern/cycles/integrator/denoiser_oidn.cpp b/intern/cycles/integrator/denoiser_oidn.cpp
index 1b5a012ec87..7fc2b2b1892 1

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list