Skip to content
New issue

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

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

Already on GitHub? # to your account

Build gles3 and gles2 and EGL on arm linux with VideoCore GPU (Raspberry Pi) #492

Open
wants to merge 20 commits into
base: dev
Choose a base branch
from

Conversation

dkonar
Copy link

@dkonar dkonar commented Feb 2, 2025

Builds and runs smoothly on Raspberry Pi 5

@dkonar dkonar force-pushed the support-gles3-on-linux branch from 36643cc to c8b4c86 Compare February 14, 2025 19:54
@skylersaleh
Copy link
Owner

Thanks for submitting this!

Could you give a shot at creating a github workflow for building the Raspberry Pi variant, so that we can make sure this target stays working through our CI? You can reference the existing workflow files here: https://github.com/skylersaleh/SkyEmu/tree/dev/.github/workflows

@dkonar
Copy link
Author

dkonar commented Feb 17, 2025

So for the action we can do :
OpenGLES3/EGL on arm64 Linux (Pi 3,4,5)

Other possibilities are:
OpenGLES2/EGL on arm64 Linux (Pi Zero 2)
OpenGL 3.x on arm64 Linux is possible on like a Snapdragon X Elite but not a common setup

Anyway will probably remove the GPU detection code and just have explicit options

@skylersaleh
Copy link
Owner

If GLES2.0 works reliably on the Pi 3-5, it might be the way to go.

I don't use any features that OpenGL ES 3.x provides and the GLES 2.x path should work very similarly to the WebGL path which gets a lot of testing.

@skylersaleh
Copy link
Owner

skylersaleh commented Feb 18, 2025

WRT, the broken ios, android, and web builds. There is some patches in sokol_app (and maybe sokol_gfx) that never made it upstream. You'll have to port them to the updated versions of the libraries if you want to upgrade the library versions.

The patches should be pretty simple and easy to pull out by diffing the source files in my repo against the upstream sokol source code of the matching release or by looking back at the history of those files in my repo.

@dkonar
Copy link
Author

dkonar commented Feb 22, 2025

The IOS and Android builds are passing now. The web build is building but failing on permissions on the deploy step (expected?)

@skylersaleh
Copy link
Owner

Awesome, so it is ready for me to review?

@dkonar
Copy link
Author

dkonar commented Feb 24, 2025

Yes it's ready for review

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

Successfully merging this pull request may close these issues.

2 participants