Blender Git Loki

Git Commits -> Revision be785ef

Revision be785ef by Brecht Van Lommel (cycles-x)
May 7, 2021, 13:12 (GMT)
Cycles X: refactoring of kernel globals

* Declare kernel globals and associated macros in one place
* Add IntegratorStateGPU for CPU host to access
* Reduce code duplication between CUDA and OptiX
* Make shader sort key part of integrator state template
* Remove unused CPU kernel globals
* Prepare for copying/moving states
* Rename integrator_path_state.h to integrator_state_flow.h, to avoid
confusion with kernel_path_state.h.

Part of these changes were implemented by Sergey for D11172.

Differential Revision: https://developer.blender.org/D11185

Commit Details:

Full Hash: be785ef4f78e3dd7d51963f249177b1c2a8dc5d6
Parent Commit: ccb866f
Lines Changed: +330, -442

1 Added Path:

/intern/cycles/kernel/integrator/integrator_state_flow.h (+115, -0) (View)

1 Deleted Path:

/intern/cycles/kernel/integrator/integrator_path_state.h (+0, -167)

19 Modified Paths:

/intern/cycles/device/cpu/kernel_thread_globals.cpp (+0, -27) (Diff)
/intern/cycles/device/optix/device_impl.cpp (+3, -6) (Diff)
/intern/cycles/device/optix/device_impl.h (+2, -2) (Diff)
/intern/cycles/device/optix/queue.cpp (+7, -6) (Diff)
/intern/cycles/integrator/path_trace_work_gpu.cpp (+25, -32) (Diff)
/intern/cycles/integrator/path_trace_work_gpu.h (+3, -4) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+1, -1) (Diff)
/intern/cycles/kernel/device/cpu/compat.h (+0, -9) (Diff)
/intern/cycles/kernel/device/cpu/globals.h (+5, -14) (Diff)
/intern/cycles/kernel/device/cpu/kernel_arch_impl.h (+1, -1) (Diff)
/intern/cycles/kernel/device/cuda/compat.h (+0, -8) (Diff)
/intern/cycles/kernel/device/cuda/globals.h (+17, -9) (Diff)
/intern/cycles/kernel/device/cuda/kernel.cu (+2, -2) (Diff)
/intern/cycles/kernel/device/cuda/parallel_sorted_index.h (+1, -1) (Diff)
/intern/cycles/kernel/device/optix/compat.h (+0, -4) (Diff)
/intern/cycles/kernel/device/optix/globals.h (+20, -15) (Diff)
/intern/cycles/kernel/device/optix/kernel.cu (+1, -1) (Diff)
/intern/cycles/kernel/integrator/integrator_state.h (+68, -77) (Diff)
/intern/cycles/kernel/integrator/integrator_state_template.h (+59, -56) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021