Blender Git Loki
Git Commits -> Revision 052a34b
Revision 052a34b by Sergey Sharybin (cycles-x) April 1, 2021, 13:04 (GMT) |
Cycles: Write samples count pass Done from the path initialization function as it is a single kernel in which it is known path will be terminated (if path was initialized, it will be followed along and eventually terminated). So instead of doing the write in every kernel where path terminates do it in the single place. Needed to pass render buffers along, but this is more of a technical change. The sample number is always positive, as we no longer have multiple tiles rendering at the same time. Probably logic somewhere else can be simplified now. The pass is only available if the rendering did finish. This is due to the way how PathTrace communicates passes to Blender side. |
Commit Details:
Full Hash: 052a34b4a480abd62da1616cb7ea01a4d2db93c3
Parent Commit: bc7af34
Lines Changed: +37, -9
8 Modified Paths:
/intern/cycles/device/cpu/kernel.h (+4, -2) (Diff)
/intern/cycles/integrator/path_trace_work_cpu.cpp (+1, -1) (Diff)
/intern/cycles/integrator/path_trace_work_gpu.cpp (+2, -0) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch.h (+4, -2) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch_impl.h (+5, -3) (Diff)
/intern/cycles/kernel/device/cuda/kernel.cu (+2, -1) (Diff)
/intern/cycles/kernel/integrator/integrator_init_from_camera.h (+4, -0) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+15, -0) (Diff)
/intern/cycles/integrator/path_trace_work_cpu.cpp (+1, -1) (Diff)
/intern/cycles/integrator/path_trace_work_gpu.cpp (+2, -0) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch.h (+4, -2) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch_impl.h (+5, -3) (Diff)
/intern/cycles/kernel/device/cuda/kernel.cu (+2, -1) (Diff)
/intern/cycles/kernel/integrator/integrator_init_from_camera.h (+4, -0) (Diff)
/intern/cycles/kernel/kernel_accumulate.h (+15, -0) (Diff)