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:
authorSergey Sharybin <sergey@blender.org>2021-10-12 12:54:33 +0300
committerSergey Sharybin <sergey@blender.org>2021-10-12 12:55:23 +0300
commitcc043999378dbe04e1cc601c01b43dc0b727e553 (patch)
tree50c333e1f46d5876b8afcc666b5c08df289fbd80 /intern/cycles/integrator/path_trace_work_gpu.h
parentad1735f8ede966b7d49423928ad05cca25119949 (diff)
Fix missing Cycles volume stack re-allocation
Need to check allocation size, as the features do not change with volume stack depth detection.
Diffstat (limited to 'intern/cycles/integrator/path_trace_work_gpu.h')
-rw-r--r--intern/cycles/integrator/path_trace_work_gpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/integrator/path_trace_work_gpu.h b/intern/cycles/integrator/path_trace_work_gpu.h
index 9212537d2fd..e66851cc8d8 100644
--- a/intern/cycles/integrator/path_trace_work_gpu.h
+++ b/intern/cycles/integrator/path_trace_work_gpu.h
@@ -124,6 +124,7 @@ class PathTraceWorkGPU : public PathTraceWork {
/* SoA arrays for integrator state. */
vector<unique_ptr<device_memory>> integrator_state_soa_;
uint integrator_state_soa_kernel_features_;
+ int integrator_state_soa_volume_stack_size_ = 0;
/* Keep track of number of queued kernels. */
device_vector<IntegratorQueueCounter> integrator_queue_counter_;
/* Shader sorting. */