Blender Git Loki
Git Commits -> Revision 09dc470
Revision 09dc470 by Sergey Sharybin (master) June 27, 2015, 13:13 (GMT) |
Cycles: Rework the way how OpenCL devices are created It was annoying copy-paste happened across OpenCL device constructor, device enumeration and split kernel checks. Now those areas are using an utility function which returns pairs of platform and device IDs for devices which are supported by Cycles and enumeration is happening inside that list. This makes it so filtering is happening in a single place, so there's no need to keep 3 different functions in sync. This commit also fixes a bug with wrong enumeration of devices caused by recent fixes. Those fixes were in fact wrong and only happened to appear to be working on laptop with optimus card on Linux. Root of those issues is in fact in bad Linux driver for optimus cards. |
Commit Details:
Full Hash: 09dc470982c9ceb1e4dc72ee34cf4e752ba074dc
Parent Commit: 17f12fc
Lines Changed: +266, -309
1 Modified Path:
/intern/cycles/device/device_opencl.cpp (+266, -309) (Diff)