Development Utilities¶
- Mesa demos collection
includes several utility routines in the
src/util/directory.- Piglit
is an open-source test suite for OpenGL and OpenCL implementations.
- ApiTrace
is a project to trace, analyze, and debug OpenGL, Direct3D, and DirectDraw APIs.
- Built-in apitrace tracing
Mesa built with
-Dapitrace=truebuilds apitrace as a subproject and puts its tracers in Mesa’s own dispatch, so no wrapper library has to be loaded in front of Mesa, which makes tracing work where that isn’t possible, like for Android apps. WithMESA_APITRACEset to 1, each process records its GL, GLES, EGL, GLX, and WGL calls before glthread and the driver see them, to the file thatMESA_GL_TRACE_FILEnames. On Windows, where builds with apitrace leave out EGL, this covers apps that load Mesa asopengl32.dlland as an ICD. Calls that stock apitrace can’t replay, like EGLImage and memory object imports, are recorded with equivalents that it can replay, and apps that render only to shared textures get presents, so the traces replay withglretraceandeglretrace. Environment Variables lists the other options, and Android describes tracing Android apps.- GFXReconstruct
is a project to trace and replay Vulkan API calls.
- Valgrind
is a very useful tool for tracking down memory-related problems in your code.
- Coverity
provides static code analysis of Mesa. If you create an account you can see the results and try to fix outstanding issues.
- gpu-ratemeter
is a microbenchmarking tool for driver performance validation, performance comparisons between APIs and API codepaths, and characterizing the performance of undocumented GPU architectures. An indexable mirror is here.