Hi Hiep,
This and potential follow on questions are probably best discussed on the Mali forums http://forums.arm.com/index.php?/forum/10-mali-forums/ at least when it comes to the capabilities of the binary driver.
On Wed, Apr 17, 2013 at 7:53 AM, Hiep Pham hiepnp@gcs-vn.com wrote:
Hi all,
I'm trying GLES on Snowball board with Mali GPU, without X.
The board was installed linaro-nano 12.07 (with mali400-dev package installed) and had been connected with an TV via HDMI cable; After booting up, I run "hdmistart" command and /dev/fb0 appeared; HDMI ran fine with "cat /dev/urandom > /dev/fb0" command.
However, when testing GLES with sample codes from Mali SDK (http://malideveloper.arm.com/downloads/Mali_OpenGL_ES_2.0_SDK_for_Linux_On_A...)
I got following error: Error: eglGetError(): 12288 (0x3000) Error: No EGL Display available at /root/Mali_OpenGL_ES_2.0_SDK_for_Linux_On_ARM_v1.2.0/simple-framework/src/EGLRuntime.cpp:105
The argument of eglGetDisplay is EGL_DEFAULT_DISPLAY: EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
So I wonder if Mali can works without X or not? Any help will be greatly appreciate,
EGL doesn't imply X. For instance Android as of 2.3 (gingerbread) has EGL and there's certainly no X involved in that use case.
The rub as I'm sure you know is that EGL need to be connected to something, X, Wayland, drm...
With Mesa for instance configuring with --enable-egl-platforms=drm would do that, however obviously with the mali driver you're not running Mesa and I would imagine that the Mali SDK provides it's own EGL. It'll be a capabilities of that EGL implementation that you'll be interested in. Thus the reference to make a posting to the Mali fora.
You do bring up a good use case tho and one that seems well worth documenting in a FAQ.
Hiep
-- Regards, Tom
"Where's the kaboom!? There was supposed to be an earth-shattering kaboom!" Marvin Martian Tech Lead, Graphics Working Group | Linaro.org │ Open source software for ARM SoCs w) tom.gall att linaro.org h) tom_gall att mac.com