Blender Git Commit Log
Git Commits -> Revision f5c9f2c
Revision f5c9f2c by Sergey Sharybin (master) November 10, 2012, 08:37 (GMT) |
Cycles: correction to how device of lists is exposed to blender compute_device_list is using static vector of device information which had pointers (identifier and name) to values from device information structures. That structures are also stored in static vector and being refreshed every 5 seconds. The issue is, as soon as device information is being updated, pointers in vector from compute_device_list became incorrect. Seems it was the reason of issues with sudden switching from CUDA to OpenCL on my desktop and from CUDA to CPU on my laptop, It was also seems to be making persistent images behaves instable. Made it so device identifier and name are copied from device info to structures used by RNA (CCLDeviceInfo). Alternative could be avoid cacheing CCLDeviceInfo and always use actual list of device information by RNA. It shouldn't be so much slow. |
Commit Details:
Full Hash: f5c9f2c2530d21474f8e2ee5ea7dfdb483b7ba7d
SVN Revision: 52065
Parent Commit: c9cd4d6
Lines Changed: +15, -6