Question: How to implement custom WSI? (non-mesa).
That is not mesa issue, but developers of mesa will likely have an answer.
Android's EGL library has no X11 support so it is pretty not usable with X11 windows.
We tried to wrap pbuffer surface and glReadPixels
to memory fragment shared with X server but it seems to be slow. We tried to wait for XCB_PRESENT_COMPLETE_NOTIFY but the problem is that when we aren't bombarding X with frames, the time after the last frame completed and the next one is processed on the CPU could be too high.
Can you please give us some advices for implementing custom WSI?
Related code: https://github.com/tareksander/termux-gfx-wrapper/blob/main/src/egl/x11-display.cpp
Related issues: EGL X11 support, Using full GL with android drivers. [Currently pure theory] .
Thank you.