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

Overhauling Mesa's GLSL Compiler Performance

Mesa

Published on 12 November 2009 09:33 PM EST
Written by Michael Larabel in Mesa
10 Comments

We like hearing about performance improvements for Linux and also Linux graphics in general, but when there's something about performance improvements for Linux graphics, it certainly gets us excited and garners our interest. This time we get to report on work being done to Mesa's GLSL compiler, which is now running drastically faster in a branch of Mesa that will be published in about a week.

Intel's Ian Romanick has been working on optimizing GLSL IR and reworking the assembly shader (among other things) after ditching his efforts to write a new GLSL compiler, but VMware's Michal Krol has been rewriting the GLSL compiler pre-processor for Mesa as a step towards improving the GL Shading Language support and making it easier to strap in a new syntax parser in the future.

Once Michal wrote the new pre-processor, the existing syntax parser ended up being a huge bottleneck, and while Ian was going to be writing a new syntax parser, Michal ended up writing a new simple one. This new Mesa GLSL compiler syntax parser is similar in functionality to the "current" one, but it's much simpler and it's very fast.

Benchmarking was done of the new pre-processor and syntax parser for the Mesa GLSL compiler by measuring the time it takes to complete the two steps with an advanced shader. Michal's numbers show an impressive 27x speed-up with the new implementation over the old. Even more impressive, if simply measuring the performance of the new syntax parser, it's a 122x improvement over the current code in Mesa's master Git tree!

This code is being initially funneled into a branch of Mesa that will be called glsl-pp-rework-2 and VMware should make it available in about a week. The mailing list message detailing this pre-processor and syntax parsing work for Mesa's GLSL functionality can be found on mesa3d-dev.

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. ASRock X99 Extreme3 Is An Affordable Choice For Linux Users
  2. A Walkthrough Of The New 32 System Open-Source Linux Benchmarking Test Farm
  3. Habey MITX-6771: Mini-ITX Board With Quad-Core J1900 Bay Trail
  4. OCZ Vector 150 SSD On Linux
Latest Linux Articles
  1. 2014 Year-End NVIDIA Linux Benchmark Comparison
  2. 2014 Catalyst Linux Graphics Benchmarks Year-In-Review
  3. 17-Way Linux Graphics Card Comparison With Civilization Beyond Earth
  4. AMD Kaveri: Open-Source Radeon Gallium3D vs. Catalyst 14.12 Omega Driver
Latest Linux News
  1. GNU Binutils 2.25 Released With Port To Andes NDS32
  2. Merry Christmas & Happy Holidays 2014
  3. OpenMW 0.34 Released With Many Changes
  4. Ruby 2.2 Released With A Better Garbage Collector
  5. Xonotic 0.8 Is Slowly Creeping Closer To Being Released
  6. NVIDIA Sends Out 11 Nouveau Patches For Christmas
  7. Kodi 14.0 Released For The Holidays - Formerly Known As XBMC
  8. Devuan Is Still Moving Along As A Debian Fork Without Systemd
  9. UEFI Secure Boot Tools Updated For v2.4
  10. Phoronix Test Suite 5.4.1 Released
Latest Forum Discussions
  1. Need some hand holding with upgrading xserver
  2. Why is it that Radeon cannot run good old (ancient) Doom 3 engine games?
  3. Aliens vs predator for Linux
  4. Debian init discussion in Phoenix Wright format
  5. FPS capped on Linux (AMD fglrx drivers)
  6. Speeding up systemd networking service
  7. Storm Engine 2 (Doom 3 BFG GPL fork) got entry on IndieDb
  8. New build, first Linux PC, what could go wrong? ;)