Blender Git Loki

Git Commits -> Revision 64c9077

Revision 64c9077 by Sergey Sharybin (cycles-x)
June 29, 2021, 09:52 (GMT)
Fix Cycles X multi-device type generation

The info type can not be set to first device type because the device
might be ignored. So delay type assignment until we have a device which
is known to be used.

Fixes issue in viewport when OptiX+OptiX will be considered an OptiX
device with 2 sub-devices, and OptiX+OptiX+CPU will be considered a
Multi device. The issue with the latter one is that the info IDs in
both cases are the same, but not the type, making it a wrong comparison
in `DeviceInfo::operator==`.

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

Commit Details:

Full Hash: 64c9077d792fcfe32960ef4651d300496122fc74
Parent Commit: 6e039b0
Lines Changed: +5, -2

1 Modified Path:

/intern/cycles/device/device.cpp (+5, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021