1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

An Initial Version Of LunarGLASS-LLVM For Mesa

Mesa

Published on 03 February 2011 10:09 AM EST
Written by Michael Larabel in Mesa
7 Comments

In October of last year there was a proposal by LunarG, a small consulting company focusing upon Gallium3D and Mesa that was formed by some of the original Tungsten Graphics crew, to create a common kernel and shader compiler stack. This stack would utilize LLVM (the Low-Level Virtual Machine) for optimizations This work was published as LunarGLASS and there is now a specification and initial implementation of it for Mesa.

The focus is upon removing the number of IRs (intermediate representations) and to turn to using LLVM IR as the common representation. The original LunarGLASS proposal also praised Low-Level Virtual Machine as being a better candidate for being able to handle OpenCL and more complex GLSL (GL Shading Language) going forward.

While the LunarGLASS proposal is very interesting, some parties (such as the Intel developers who last year invested significantly in rewriting Mesa's GLSL compiler) objected to using LLVM IR as it not being the right solution for high and low level optimizations. Some questioned whether this was even possible of using LLVM IR and then translating it to TGSI (the Gallium3D instruction language) or Mesa IR. The end result of LunarGLASS is to reduce the development burden in creating advanced graphics compiler stacks and to increase the level of optimizations for real-world graphics workloads.

LunarG in the months since has been working out to figure if this will indeed work. Today they are indeed announcing progress and that it is in fact working.

LunarG's John Kessenich announced last night on the Mesa mailing list the availability of the LunarGLASS exploration. To prove that LunarGLASS is possible, LunarG had to define the LLVM IR and then to produce a working experiment to see if translating these IRs was possible and efficient.

LunarG has published their initial IR specification at LunarGLASS.org. They have also setup a Google Code page for their current source-code hosting and to have a mailing list discussion group.

John says in his email message, "Results so far are quite encouraging for the few simple shaders we targeted (still absent flow control). In short, we were able to generate identical results to glsl2 when targeting Mesa IR, using LLVM optimizations instead of glsl2 optimizations. That is, going through the path GLSL -> glsl2-front-end -> Top-IR -> LLVM optimizations -> Mesa-IR."

While this is certainly progress in the right direction, it's not yet production-ready and the LunarGLASS design is still subject to change.

LunarG has put LunarGLASS code under the GPLv2 and the specification under the Creative Commons Attribution No Derivatives license. Though when digging around the LunarGLASS web-site, contributions to LunarGLASS must require accepting LunarG's contributors agreement

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. A Walkthrough Of The New 32 System Open-Source Linux Benchmarking Test Farm
  2. Habey MITX-6771: Mini-ITX Board With Quad-Core J1900 Bay Trail
  3. OCZ Vector 150 SSD On Linux
  4. Noctua i4 CPU Cooler: Great For Cooling High-End LGA-2011v3 CPUs
Latest Linux Articles
  1. AMD Kaveri: Open-Source Radeon Gallium3D vs. Catalyst 14.12 Omega Driver
  2. 12-Way AMD Catalyst 14.12 vs. NVIDIA 346 Series Linux GPU Comparison
  3. AMD Catalyst 14.12 Omega Driver Brings Mixed Results For Linux Users
  4. 6-Way Winter 2014 Linux Distribution Comparison
Latest Linux News
  1. FSF's High Priority Project List Now Has A Committee
  2. Details On Using OpenACC & GPUs With GCC
  3. Ubuntu 15.04 Alpha 1 For Its Various Flavors
  4. Git 2.2.1 Released To Fix Critical Security Issue
  5. WTFTW: A Tiling Window Manager Written In Rust
  6. Jolla's Sailfish OS Update 10 Is Now Available
  7. HP To Launch Linux++ Operating System Next Year
  8. Civilization: Beyond Earth Launches For Linux
  9. NIR Has Been Revised As A New IR For Mesa
  10. New 64-bit Linux Kernel Vulnerabilities Disclosed This Week
Latest Forum Discussions
  1. The New SuperTuxKart Looks Better, But Can Cause GPU/Driver Problems
  2. Debian init discussion in Phoenix Wright format
  3. XLennart: A Game For Systemd Haters With Nothing Better To Do
  4. Bench specific mount point
  5. Tool for measuring FPS in games
  6. Need some hand holding with upgrading xserver
  7. Ubuntu Developers Still Thinking What To Do About Adobe Flash Support
  8. Microsoft buying Mojang