Blender Git Loki

Git Commits -> Revision 0d89483

Revision 0d89483 by Sergey Sharybin (master)
January 18, 2021, 14:47 (GMT)
Cycles: Fix missing OpenCL extensions in certain cases

If extensions string is longer than 1024 then the old code would have
reported empty string instead of extensions.

Now the code does dynamic string allocation to store result of request,
similar to what is done in `OpenCLInfo::get_hardware_id`.

The code looks a bit ugly, but it didn't really change much with this
patch. In other words, the code can become more modern and clear, but
it is considered to be outside of the scope of this change.

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

Commit Details:

Full Hash: 0d8948387e8d9f47e1a2c7f9dd701c81df331bb8
Parent Commit: 4fde594
Lines Changed: +34, -20

1 Modified Path:

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