Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X11 WSI support for android targets? #435

Open
twaik opened this issue Jul 14, 2023 · 8 comments
Open

X11 WSI support for android targets? #435

twaik opened this issue Jul 14, 2023 · 8 comments

Comments

@twaik
Copy link

twaik commented Jul 14, 2023

Hi. GL4ES can be used on Android devices but there is no X11 support. Can you please port mesa's X11 WSI code (this + this)? Or maybe mesa's vulkan X11 WSI code (this)? You can use AHardwareBuffer API for EGLImage and set it as framebuffer/renderbuffer and attach AHardwareBuffer's udmabuf fd to X server with simple xcb_shm_attach_fd call and then draw it with xcb_shm_put_image call.

Thank you.

@daviDarthemis
Copy link

Interestingly, this would cause the framebuffer to be read by the AHardwareBuffer and sending it to x11, correct?

@twaik
Copy link
Author

twaik commented Sep 22, 2023

Not exactly. It will cause rendering directly to AHardwareBuffer, which will be read by X server during rendering the root window.

@daviDarthemis
Copy link

I hope the implementation is soon

@daviDarthemis
Copy link

You can try opening another poll to try to get an answer

@Mateus2022
Copy link

@ptitSeb please add framebuffer and x11 support when using gl4es on termux or termux-x11 platforms in case of android definitions without NOX11

@ptitSeb
Copy link
Owner

ptitSeb commented Aug 26, 2024

@ptitSeb please add framebuffer and x11 support when using gl4es on termux or termux-x11 platforms in case of android definitions without NOX11

And how do I do that?
I mean, how do I create a context and all the stuffs needed to emulate X1 when NOX11 is used?

@twaik
Copy link
Author

twaik commented Aug 26, 2024

You can create wrap all EGL calls and emulate X11 surface. Try to read this. https://github.com/tareksander/termux-gfx-wrapper/tree/main/src/egl

@Mateus2022
Copy link

@ptitSebadicione framebuffer e suporte x11 ao usar gl4es em plataformas termux ou termux-x11 no caso de definições android sem NOX11

E como eu faço isso? Quero dizer, como eu crio um contexto e todas as coisas necessárias para emular X1 quando NOX11 é usado?

I don't speak English, the shit on Google Translate fails, but I wish that when NOX11 is not used, x11 support would be enabled both in buffers too, there are many projects now that use x11+box64 in Mali gpus, this could be something good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants