Based on xMeM patches + added a workaround for virpipe gallium driver when using virglrenderer-android on mali and some gpus with (maxcb <= PIPE_MAX_CONSTANT_BUFFERS) issue.
Credits and build scripts:
https://github.com/xMeM/termux-packages/tree/dev/mesa/packages/mesa
https://github.com/termux/termux-packages/tree/master/packages/mesa