Blender Git Loki

Git Commits -> Revision b59d2b2

Revision b59d2b2 by Sergey Sharybin (cycles-x)
February 23, 2021, 13:18 (GMT)
Refactor: Move Cycles device declarations closer to implementation

Avoid one header where functions for all devices are declared. Also,
made it so caller will not care about compiled-in features: it should
be possible to request device initialization and enumeration, and if
the compiled-in support is missing it will act similar to case when
the system does not have the requested device.

Makes it so things are more properly black-boxed and separated.
There is still some possible combing to be done, but think this change
is a good first iteration.

Commit Details:

Full Hash: b59d2b2e03e86c25d3f52b4aaa5fb2f0587c6037
Parent Commit: e1a4e86
Lines Changed: +1198, -961

6 Added Paths:

/intern/cycles/device/cpu/device_cpu.h (+35, -0) (View)
/intern/cycles/device/cuda/device_cuda_impl.h (+262, -0) (View)
/intern/cycles/device/dummy/device_dummy.h (+31, -0) (View)
/intern/cycles/device/multi/device_multi.h (+31, -0) (View)
/intern/cycles/device/opencl/device_opencl_impl.h (+663, -0) (View)
/intern/cycles/device/optix/device_optix.h (+35, -0) (View)

1 Deleted Path:

/intern/cycles/device/device_intern.h (+0, -53)

13 Modified Paths:

/intern/cycles/blender/blender_python.cpp (+1, -1) (Diff)
/intern/cycles/device/CMakeLists.txt (+6, -1) (Diff)
/intern/cycles/device/cpu/device_cpu.cpp (+2, -1) (Diff)
/intern/cycles/device/cuda/device_cuda.cpp (+33, -9) (Diff)
/intern/cycles/device/cuda/device_cuda.h (+12, -237) (Diff)
/intern/cycles/device/cuda/device_cuda_impl.cpp (+2, -3) (Diff)
/intern/cycles/device/device.cpp (+6, -1) (Diff)
/intern/cycles/device/dummy/device_dummy.cpp (+2, -1) (Diff)
/intern/cycles/device/multi/device_multi.cpp (+2, -1) (Diff)
/intern/cycles/device/opencl/device_opencl.cpp (+30, -7) (Diff)
/intern/cycles/device/opencl/device_opencl.h (+13, -639) (Diff)
/intern/cycles/device/opencl/opencl_util.cpp (+0, -1) (Diff)
/intern/cycles/device/optix/device_optix.cpp (+32, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021