LLVM Back-End For Gallium3D Almost There

Written by Michael Larabel in X.Org on 28 December 2008 at 07:34 PM EST. 11 Comments
X.ORG
While Tungsten's Gallium3D architecture is still a ways out from being used by most open-source graphics drivers and then being picked up by end-users, it continues to pickup new technical features. Corbin Simpson and Stephane Marchesin that work on the Radeon and Nouveau projects, respectively, have been working to building LLVM back-ends for Gallium3D. Corbin is a step closer to getting his LLVM compiler working: it now builds, but it ends with a segmentation fault.

LLVM, or the Low-Level Virtual Machine, is a compiler infrastructure written in C++ but can handle building programs in other languages too. LLVM is being used by Gallium3D for optimization purposes and using a real compiler to compile the shaders for the GPU. Corbin's LLVM back-end has been for an R300 vertex shader. We first talked about LLVM and Gallium3D back in February with the possibility of a GPGPU API in Gallium3D.

There's still plenty of work ahead, but this is a step in the right direction. Some other recent activity with the Gallium3D project includes the Nouveau driver being merged in Gallium3D v0.2, Generic Gallium3D Video Decoding, and new APIs coming to Gallium3D.

Confirmation of Corbin's initial R300 LLVM back-end building can be found on dri-devel. More on Gallium3D's LLVM can be found in this header file. For more on the Low-Level Virtual Machine Compiler Infrastructure, check out its web-site.
Related News
About The Author
Michael Larabel

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, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week