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 · 4 comments
Open

X11 WSI support for android targets? #435

twaik opened this issue Jul 14, 2023 · 4 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

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

2 participants