diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-11-11 17:29:35 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-11-11 17:29:35 +0300 |
commit | ce395c84a34225a820002ad551bee324b072f034 (patch) | |
tree | b981bdd0a69272abb6c0aaf1e7cb4f2530f7e254 /intern/cycles/integrator | |
parent | 06a74e78169ff60082716c0bd85c0b76de6bb885 (diff) | |
parent | d26d3cfe193793728cac77be9b44463a84a0f57e (diff) |
Merge branch 'blender-v3.0-release'
Diffstat (limited to 'intern/cycles/integrator')
-rw-r--r-- | intern/cycles/integrator/path_trace_work_gpu.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/intern/cycles/integrator/path_trace_work_gpu.cpp b/intern/cycles/integrator/path_trace_work_gpu.cpp index 2263c9892f4..956aa6a8c90 100644 --- a/intern/cycles/integrator/path_trace_work_gpu.cpp +++ b/intern/cycles/integrator/path_trace_work_gpu.cpp @@ -439,7 +439,15 @@ void PathTraceWorkGPU::enqueue_path_iteration(DeviceKernel kernel, const int num DCHECK_LE(work_size, max_num_paths_); switch (kernel) { - case DEVICE_KERNEL_INTEGRATOR_INTERSECT_CLOSEST: + case DEVICE_KERNEL_INTEGRATOR_INTERSECT_CLOSEST: { + /* Closest ray intersection kernels with integrator state and render buffer. */ + void *d_render_buffer = (void *)buffers_->buffer.device_pointer; + void *args[] = {&d_path_index, &d_render_buffer, const_cast<int *>(&work_size)}; + + queue_->enqueue(kernel, work_size, args); + break; + } + case DEVICE_KERNEL_INTEGRATOR_INTERSECT_SHADOW: case DEVICE_KERNEL_INTEGRATOR_INTERSECT_SUBSURFACE: case DEVICE_KERNEL_INTEGRATOR_INTERSECT_VOLUME_STACK: { |