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

More verbose Init error message needed #27

Closed
MagaTailor opened this issue Jun 13, 2017 · 6 comments
Closed

More verbose Init error message needed #27

MagaTailor opened this issue Jun 13, 2017 · 6 comments

Comments

@MagaTailor
Copy link

MagaTailor commented Jun 13, 2017

I'm trying to find out the state of egl/mali support on an S905 tv box running Ubuntu 16.04 and here's what I get from trying to run glxgears:

odroid@amlogic:~/gl4es$ glxgears
LIBGL: Initialising gl4es
LIBGL: v0.9.7 built on Jun 13 2017 20:22:17
LIBGL:loaded: libGLESv1_CM.so
LIBGL:loaded: libEGL.so
LIBGL: Error while gathering supported extension (Init issue), default to none 
LIBGL: Current folder is:/home/ odroid/gl4es 
LIBGL: Unable to create EGL display. 
Error: glXCreateContext failed

I'm not sure what the issue is about (hope I'm not mixing 32/64 bit code) so the error message could be more helpful.

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 13, 2017

Wow, "Init issue" is not good. That mean it cannot create a PBuffer context. Looks like there is no GLES 1.1 support at all to me.

Look here: https://github.com/ptitSeb/gl4es/blob/master/src/glx/hardext.c#L78 that error message means it cannot initialize EGL Display...

@MagaTailor
Copy link
Author

I expected it was going to be broken, however it's the same chip found in Odroid C2 (I assume ARM64 gl4es is fully usable on that board) so maybe some pieces of the Mali stack are missing.

I'll investigate tomorrow.

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 14, 2017

gl4es is compatible with 64bits build, and it seems to be working fine on Odroid C2.

Anyway, more detailled EGL error message with commit d71ca21

Closing the issue.

@ptitSeb ptitSeb closed this as completed Jun 14, 2017
@MagaTailor
Copy link
Author

Thanks, now it provides this info:

(eglInitialize: EGL_BAD_ALLOC)

Any idea if it's about the kernel or the userspace part of the Mali stack?

@ptitSeb
Copy link
Owner

ptitSeb commented Jun 14, 2017

Well, according to https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglInitialize.xhtml eglInitialize is not supposed to give a EGL_BAD_ALLOC.

And also:

EGL_BAD_ALLOC
EGL failed to allocate resources for the requested operation.

@MagaTailor
Copy link
Author

Progress! (see here and here)

So, the output from LIBGL_FB=3 glxgears produces some moving colored sprites:

screenshot at 2017-06-15 15 26 03

The other two FB modes lead to segfaults.

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