Mesa 25.0 Clover OpenCL Drops Support For NIR Drivers
([Mesa] 5 Hours Ago
Go Rusticl Go)
- Reference: 0001505364
- News link: https://www.phoronix.com/news/Mesa-25.0-Clover-Drops-NIR
- Source link:
As part of the transition to eventually drop the long dormant [1]Clover OpenCL state tracker from Mesa's Gallium3D codebase in favor of the modern OpenCL [2]Rusticl Rust-written driver, Mesa 25.0 has ended Clover support for NIR-based drivers.
[3]Rusticl has been maturing well for a modern Rust-based OpenCL driver for use with Mesa Gallium3D hardware drivers. Rusticl is exposing OpenCL 3.0, well maintained, working with an increasing number of drivers, and much better off than the effectively dead Clover code. Clover hasn't seen much feature activity in years... The last time AMD, for example, was contributing to Clover was in the pre-ROCm days.
Red Hat engineer Karol Herbst who leads Rusticl development has finally been able to merge the eight month old [4]merge request for ending NIR-based driver support by Clover. Herbst commented there:
"Development basically is non existent and it allows for some clean ups and space savings.
[As far as I know] there are no reasons to not do this. This also drops PIPE_SHADER_IR_NIR_SERIALIZED which is something that shouldn't have been added in the first place."
Dropping the NIR driver support from Clover lightens the Mesa codebase by nearly two thousand lines of code. This change is merged for next quarter's Mesa 25.0 release. Eventually the Clover code itself will be completely removed from the Mesa codebase in favor of Rusticl.
[1] https://www.phoronix.com/search/Clover
[2] https://www.phoronix.com/search/Rusticl
[3] https://www.phoronix.com/news/Rusticl-2024-Status-Update
[4] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27783
[3]Rusticl has been maturing well for a modern Rust-based OpenCL driver for use with Mesa Gallium3D hardware drivers. Rusticl is exposing OpenCL 3.0, well maintained, working with an increasing number of drivers, and much better off than the effectively dead Clover code. Clover hasn't seen much feature activity in years... The last time AMD, for example, was contributing to Clover was in the pre-ROCm days.
Red Hat engineer Karol Herbst who leads Rusticl development has finally been able to merge the eight month old [4]merge request for ending NIR-based driver support by Clover. Herbst commented there:
"Development basically is non existent and it allows for some clean ups and space savings.
[As far as I know] there are no reasons to not do this. This also drops PIPE_SHADER_IR_NIR_SERIALIZED which is something that shouldn't have been added in the first place."
Dropping the NIR driver support from Clover lightens the Mesa codebase by nearly two thousand lines of code. This change is merged for next quarter's Mesa 25.0 release. Eventually the Clover code itself will be completely removed from the Mesa codebase in favor of Rusticl.
[1] https://www.phoronix.com/search/Clover
[2] https://www.phoronix.com/search/Rusticl
[3] https://www.phoronix.com/news/Rusticl-2024-Status-Update
[4] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27783
Eirikr1848