Raspberry Pi's VC4 Gallium3D Driver Switches To Using NIR
Written by Michael Larabel in Mesa on 2 April 2015 at 09:48 AM EDT. 6 Comments
With the latest Git code for Mesa 10.6 development, the Raspberry Pi VC4 Gallium3D driver has switched to using the NIR intermediate representation.

Intel's been working toward NIR usage in their driver (currently hidden by an environment variable) while Eric Anholt at Broadcom has also been pursuing NIR support. With the newest code this week, the VC4 driver by default has become a NIR consumer.

The VC4 driver uses a conversion pass to turn Gallium3D's IR (TGSI) into NIR that is then handled by the VC4 driver. Using NIR means better optimizations, the possibility to share IR optimizations between the different drivers, and other features not possible if sticking to TGSI or GLSL IR.

The conversion to consuming NIR by this Broadcom Gallium3D driver was around 700 lines of code changed. Details via this Git commit.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week