The new functions for this extension were added to a separate file (dri2_query_renderer.c) to facilitate unit testing. I tried putting them in dri2_glx.c, and it resulting in an unending chain of dependencies. It was the proverbial threading hanging from a sweater.
4680d23 glx/dri2: Add DRI2 support for GLX_MESA_query_renderer
src/glx/Makefile.am | 1 +
src/glx/dri2.h | 8 ++++
src/glx/dri2_glx.c | 13 +++++-
src/glx/dri2_priv.h | 1 +
src/glx/dri2_query_renderer.c | 97 +++++++++++++++++++++++++++++++++++++++++
5 files changed, 119 insertions(+), 1 deletion(-)