The Newest Mesa NIR/SPIR-V Code For Handling OpenCL Kernels

Karol Herbst sent out 22 patches this week in regards to adding support for OpenCL kernels within Mesa's NIR and SPIR-V common code. The patches are mostly adding the necessary OpenCL bits to the common NIR/SPIR-V compiler code for handling the intricacies of OpenCL kernels with features like physical pointer support, cl_size/cl_alignment, and other bits.
He's also been working on the NIR back-end for Nouveau though the patches sent out this week are not on that front.
We'll see if this initial Nouveau compute support is ready in time for Mesa 19.0, which is now open on Mesa Git and will be releasing in early 2019, or if this is still an even longer-term effort. It also remains to be seen why Red Hat is investing so much into Nouveau compute support when the performance on recent generations of NVIDIA hardware is crippled due to re-clocking challenges made immensely more difficult by NVIDIA's signed firmware requirements. Last month Red Hat and NVIDIA did announce they would be collaborating on some open-source efforts. We'll see.
5 Comments