i've been trying to port some OpenGLES games to the Zero but unfortunely, they all unexpectly crash on it.
Let's start with gltron, this one is really strange.https://github.com/gameblabla/gltron_gcw0https://github.com/gameblabla/gltron_gcw0/blob/master/gltron.elf.trace?raw=truehttps://github.com/gameblabla/gltron_gcw0/raw/master/gltron.opk
The menu, (which is using OpenGLES), works fine but trying to start a game makes the GCW0 freeze..
Starting gltron without an initiliased EGL context does work however but then, you would have no graphics on screen.
Since it is freezing, i cannot debug it using GDB.
When i do try using GDB, it tells me it gets stuck in an ioctl call.
The source code doesn't have such a call.
I tried apitrace and i got some errors with glDrawArrays so commented out all of them
but even after that, it still freezes.
There's a trace file for those who want to try.
Next, we have Lugaru.
The OpenGLES port was made by Pickle and using a EGL context on my PC and OpenGL ES 1.1, it works just fine.
However, it is different on my zero and it crashes when making any kind of OpenGLES calls.
When i disable the offenders, i only get a black screen after the (working) loading red screen.
On my PC, disabling the offenders gives me the expected results with menu partially working.
Btw, i can't debug it with Apitrace and gdb because it throws me a bunch of errors saying it can't load some libraries or something...
Yes, i even tried running the terminal and then running the game but it still gives me those errors.
Running it from a OPK file however, works just fine.https://github.com/gameblabla/lugaru-gcw0https://github.com/gameblabla/lugaru-gcw0/raw/master/lugaru.opk
How am i supposed to debug them if i am completely blind ?
Could some developpers here please try to compile them (or use the bundled binary in the opk file) and give it a try ?
What can i do ?
Btw, for me, there's no doubt the culprit here is etna_viv.
Perhaps it might be a good idea to release a GCW0 firmware using the Vivante's driver and test my games against it,
if it is more full-featured than etna_viv anyway.