Blender Git Loki
Git Commits -> Revision 070a668
Revision 070a668 by Brecht Van Lommel (master) October 23, 2017, 23:25 (GMT) |
Code refactor: move more memory allocation logic into device API. * Remove tex_* and pixels_* functions, replace by mem_*. * Add MEM_TEXTURE and MEM_PIXELS as memory types recognized by devices. * No longer create device_memory and call mem_* directly, always go through device_only_memory, device_vector and device_pixels. |
Commit Details:
Full Hash: 070a668d04844610059aaedc80c49e9038fd1779
Parent Commit: aa8b4c5
Lines Changed: +934, -855
30 Modified Paths:
/intern/cycles/device/device.cpp (+3, -19) (Diff)
/intern/cycles/device/device.h (+15, -17) (Diff)
/intern/cycles/device/device_cpu.cpp (+50, -26) (Diff)
/intern/cycles/device/device_cuda.cpp (+151, -112) (Diff)
/intern/cycles/device/device_denoising.cpp (+18, -26) (Diff)
/intern/cycles/device/device_memory.cpp (+62, -0) (Diff)
/intern/cycles/device/device_memory.h (+184, -56) (Diff)
/intern/cycles/device/device_multi.cpp (+60, -101) (Diff)
/intern/cycles/device/device_network.cpp (+46, -93) (Diff)
/intern/cycles/device/device_network.h (+5, -0) (Diff)
/intern/cycles/device/device_split_kernel.cpp (+14, -23) (Diff)
/intern/cycles/device/opencl/memory_manager.cpp (+3, -5) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+45, -30) (Diff)
/intern/cycles/device/opencl/opencl_split.cpp (+6, -7) (Diff)
/intern/cycles/render/bake.cpp (+10, -12) (Diff)
/intern/cycles/render/buffers.cpp (+23, -68) (Diff)
/intern/cycles/render/buffers.h (+7, -19) (Diff)
/intern/cycles/render/image.cpp (+57, -25) (Diff)
/intern/cycles/render/integrator.cpp (+4, -5) (Diff)
/intern/cycles/render/light.cpp (+24, -34) (Diff)
/intern/cycles/render/mesh.cpp (+60, -83) (Diff)
/intern/cycles/render/mesh_displace.cpp (+10, -12) (Diff)
/intern/cycles/render/object.cpp (+13, -19) (Diff)
/intern/cycles/render/particles.cpp (+5, -6) (Diff)
/intern/cycles/render/scene.cpp (+34, -34) (Diff)
/intern/cycles/render/session.cpp (+6, -6) (Diff)
/intern/cycles/render/shader.cpp (+5, -7) (Diff)
/intern/cycles/render/svm.cpp (+2, -3) (Diff)
/intern/cycles/render/tables.cpp (+4, -7) (Diff)
/intern/cycles/util/util_vector.h (+8, -0) (Diff)
/intern/cycles/device/device.h (+15, -17) (Diff)
/intern/cycles/device/device_cpu.cpp (+50, -26) (Diff)
/intern/cycles/device/device_cuda.cpp (+151, -112) (Diff)
/intern/cycles/device/device_denoising.cpp (+18, -26) (Diff)
/intern/cycles/device/device_memory.cpp (+62, -0) (Diff)
/intern/cycles/device/device_memory.h (+184, -56) (Diff)
/intern/cycles/device/device_multi.cpp (+60, -101) (Diff)
/intern/cycles/device/device_network.cpp (+46, -93) (Diff)
/intern/cycles/device/device_network.h (+5, -0) (Diff)
/intern/cycles/device/device_split_kernel.cpp (+14, -23) (Diff)
/intern/cycles/device/opencl/memory_manager.cpp (+3, -5) (Diff)
/intern/cycles/device/opencl/opencl_base.cpp (+45, -30) (Diff)
/intern/cycles/device/opencl/opencl_split.cpp (+6, -7) (Diff)
/intern/cycles/render/bake.cpp (+10, -12) (Diff)
/intern/cycles/render/buffers.cpp (+23, -68) (Diff)
/intern/cycles/render/buffers.h (+7, -19) (Diff)
/intern/cycles/render/image.cpp (+57, -25) (Diff)
/intern/cycles/render/integrator.cpp (+4, -5) (Diff)
/intern/cycles/render/light.cpp (+24, -34) (Diff)
/intern/cycles/render/mesh.cpp (+60, -83) (Diff)
/intern/cycles/render/mesh_displace.cpp (+10, -12) (Diff)
/intern/cycles/render/object.cpp (+13, -19) (Diff)
/intern/cycles/render/particles.cpp (+5, -6) (Diff)
/intern/cycles/render/scene.cpp (+34, -34) (Diff)
/intern/cycles/render/session.cpp (+6, -6) (Diff)
/intern/cycles/render/shader.cpp (+5, -7) (Diff)
/intern/cycles/render/svm.cpp (+2, -3) (Diff)
/intern/cycles/render/tables.cpp (+4, -7) (Diff)
/intern/cycles/util/util_vector.h (+8, -0) (Diff)