
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.
Add A Comment