DRI does not define any callback to flush the current context. GLX loader simply calls glFlush. Follow the GLX loader here.