Some Fresh Tests With Mesa's Continuing KHR_no_error Work
Written by Michael Larabel in Mesa on 23 June 2017 at 06:28 AM EDT. 5 Comments
MESA --
Given the continued flow of KHR_no_error patches hitting Mesa 17.2 Git by Valve developers, here is a fresh comparison using the just-updated Padoka PPA with comparing the impact of using this support via the MESA_NO_ERROR=1 switch.

KHR_no_error comes down to disabling error handling at run-time for apps/games that should be in good OpenGL shape, but if errors are encountered, there can potentially be undefined behavior rather than proper error handling. Obviously by being able to avoid some error paths in Mesa, KHR_no_error/MESA_NO_ERROR can save some CPU cycles for spending elsewhere or otherwise for potentially conserving some power.

With a Skylake + Radeon RX 470 test box, I compared Mesa 17.2-dev this week with Linux 4.12 from a stock run of various OpenGL Linux games to one with MESA_NO_ERROR=1 environment variable being set. The Phoronix Test Suite was also monitoring the CPU usage during the testing process.



Or bit greater in very select cases.


Some OpenGL tests appear to benefit slightly from this no-error work in Mesa.




But in the majority of OpenGL Linux games tested, the results were the same or negligible difference.

At least for this Skylake + Radeon RX 470 combination, the CPU usage wasn't noticeably different overall, but it did look like there were fewer CPU spikes. Those interested can dig through more numbers via this OpenBenchmarking.org result file. I'll run these tests on a lighter system next time I have a Pentium/Celeron CPU pulled out, probably closer to the Mesa 17.2 release this summer when more KHR_no_error work has landed.
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