Intel's OpenGL Driver Will Now Make Better Use Of KHR_debug For Shader Debugging

Written by Michael Larabel in Intel on 8 December 2018 at 07:15 AM EST. Add A Comment
INTEL
Intel's Mesa OpenGL driver has been supporting KHR_debug as required by OpenGL 4.3+, but without making full use of the extension. Now though to help with the shader debugging process, it will be exposing more information via this OpenGL debugging extension.

KHR_debug provides the framework for allowing OpenGL drivers to notify applications/games of different events that are useful for debugging and performance profiling, such as warnings and other information. Up to now the Intel driver has just been dumping shader assembly and other data to the standard output error stream but now a patch series is pending for exposing more of that data via the KHR_debug extension. This allows for a cleaner and more sane approach for debugging OpenGL shaders with the Intel driver and can easily integrate into the various GL debugging/profiling applications.

With 11 patches posted on Friday, the Intel driver can provide the GLSL IR representation of shaders via KHR_debug as well as the shader assembly, the shader cache, and NIR. Presumably this work will land in time for the Mesa 19.0 release due out early next year.
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