-
Notifications
You must be signed in to change notification settings - Fork 43
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
gles2 renderer - GLSL shader compilation error (aarch64 Linux / Panfrost) #112
Comments
I have tried different values in the |
It can't compile GLES shader, hmm. I remember same on R-Pi, but this works on Android. |
Thank you for that information, good to know that OpenGL 1 is the preferred renderer. |
🤦 It's my bug 🤣 |
Fixed, however if OpenGL 1 is working there - use it. |
Brilliant thank you, I'll give it a test! |
Also I generally improved OpenGL performance, maybe it'll run faster now! |
@zaps166 was able to compile at commit 06c357106827eee5f9845a749aa3d4869cb34cc9 in a docker container, and the gles2 renderer is now working on the Panfrost devices. Thank you for the fix! |
After some changes, GL(ES)2 is now default renderer. |
I see you have been busy! Earlier in the week I was attempting to re-compile for arm32v7 / armhf at commit 7d144a070547260a27a71d5cb6a5dd7af38188f3. Compilation was fine, but at runtime on my devices all 3 renderers would crash with error:
Will try my luck again at HEAD :-) |
Bus error is caused by alignment error, probably floating point numbers. I hope it'll work on current master 🙂 It's working on R-Pi 4 and Android 😄 |
No luck unfortunately. When running
Then same runtime errors as in #112 (comment) This is in an Ubuntu Focal Docker Container (arm32v7 / armhf):
Dependency versions: SDL2 2.26.2, clang 1:10.0-50 and lld 1:10.0-50 Maybe I'm doing something wrong, although it is fine at commits prior to the switch to |
Because I don't use cast, in C it can compile 😄 However I don't have these warnings. Maybe different compiler version? I see Clang 10, I use newer Clang.
32-bit Arch Linux,
I copy floating-point data to aligned stack and use VFP there, so it shouldn't happen. Could you try |
Let me know if I would need to move this another issue but just adding here as I also test with porschemad911's binaries - but on another device using the same OS.
|
You use old version, check current master branch. |
First off, thank you so much for this excellent Linux port of NFS II SE!
I have been attempting to get the GLES renderer working on a couple of devices running JELOS. Both devices are runnning mainline Linux 6.7.5 aarch64 kernels and Mesa 24.1.0 with Panfrost GPU drivers compiled with OpenGL ES 1 and 2 support included and 32-bit libs built. One has a RockChip RK3326 SOC with a Mali G31 GPU, and the other has an Amlogic S922X SOC with a Mali G52 GPU. Both devices support OpenGL ES 3.1 and OpenGL 3.1 according to Panfrost Mesa driver docs.
The OpenGL 1 and 2 renderers work fine and the game runs well. But the GLES render is producing the following error:
It seems to be crashing in
/src/Glide2x/OpenGL2.c
The text was updated successfully, but these errors were encountered: