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:
authorBrecht Van Lommel <brecht@blender.org>2021-10-20 15:45:17 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-10-20 18:50:31 +0300
commit52c5300214e58776623b308de4e5ac33fc8f17d5 (patch)
treeefd8e549bef61effc67d60eb27deb6f447ea789c /intern/cycles/kernel
parentcccfa597ba69944817e0913944cf3c3d0a6e1165 (diff)
Cleanup: some renaming to better distinguish main and shadow paths
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r--intern/cycles/kernel/integrator/integrator_state.h2
-rw-r--r--intern/cycles/kernel/integrator/integrator_state_util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/integrator/integrator_state.h b/intern/cycles/kernel/integrator/integrator_state.h
index 84efcb00349..09b399ff1b8 100644
--- a/intern/cycles/kernel/integrator/integrator_state.h
+++ b/intern/cycles/kernel/integrator/integrator_state.h
@@ -139,7 +139,7 @@ typedef struct IntegratorStateGPU {
ccl_global int *next_shadow_path_index;
/* Index of main path which will be used by a next shadow catcher split. */
- ccl_global int *next_shadow_catcher_path_index;
+ ccl_global int *next_main_path_index;
} IntegratorStateGPU;
/* Abstraction
diff --git a/intern/cycles/kernel/integrator/integrator_state_util.h b/intern/cycles/kernel/integrator/integrator_state_util.h
index 5bcb9cc2d67..6da41cddcf8 100644
--- a/intern/cycles/kernel/integrator/integrator_state_util.h
+++ b/intern/cycles/kernel/integrator/integrator_state_util.h
@@ -274,7 +274,7 @@ ccl_device_inline void integrator_state_shadow_catcher_split(KernelGlobals kg,
{
#if defined(__KERNEL_GPU__)
ConstIntegratorState to_state = atomic_fetch_and_add_uint32(
- &kernel_integrator_state.next_shadow_catcher_path_index[0], 1);
+ &kernel_integrator_state.next_main_path_index[0], 1);
integrator_state_copy_only(kg, to_state, state);
#else