Blender Git Commit Log

Git Commits -> Revision f840239

January 20, 2017, 10:25 (GMT)
Cycles: Refactor Device selection to allow individual GPU compute device selection

Previously, it was only possible to choose a single GPU or all of that type (CUDA or OpenCL).
Now, a toggle button is displayed for every device.
These settings are tied to the PCI Bus ID of the devices, so they're consistent across hardware addition and removal (but not when swapping/moving cards).

From the code perspective, the more important change is that now, the compute device properties are stored in the Addon preferences of the Cycles addon, instead of directly in the User Preferences.
This allows for a cleaner implementation, removing the Cycles C API functions that were called by the RNA code to specify the enum items.

Note that this change is neither backwards- nor forwards-compatible, but since it's only a User Preference no existing files are broken.

Reviewers: #cycles, brecht

Reviewed By: #cycles, brecht

Subscribers: brecht, juicyfruit, mib2berlin, Blendify

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

Commit Details:

Full Hash: f840239ee04354e873bb1cc6bce5675052f44cae
Parent Commit: c89d8dd
Committed By: Sergey Sharybin
Lines Changed: +310, -363

18 Modified Paths:

/intern/cycles/blender/addon/properties.py (+109, -1) (Diff)
/intern/cycles/blender/addon/ui.py (+25, -11) (Diff)
/intern/cycles/blender/blender_python.cpp (+23, -68) (Diff)
/intern/cycles/blender/blender_sync.cpp (+37, -10) (Diff)
/intern/cycles/blender/CCL_api.h (+0, -11) (Diff)
/intern/cycles/device/device.cpp (+35, -19) (Diff)
/intern/cycles/device/device.h (+8, -1) (Diff)
/intern/cycles/device/device_cuda.cpp (+6, -1) (Diff)
/intern/cycles/device/device_intern.h (+0, -1) (Diff)
/intern/cycles/device/device_multi.cpp (+0, -115) (Diff)
/intern/cycles/device/device_opencl.cpp (+6, -1) (Diff)
/intern/cycles/device/opencl/opencl.h (+7, -2) (Diff)
/intern/cycles/device/opencl/opencl_util.cpp (+24, -1) (Diff)
/intern/cycles/render/session.h (+1, -2) (Diff)
/release/scripts/startup/bl_operators/wm.py (+29, -0) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+0, -7) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+0, -107) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+0, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021