yours3lf22
Posts: 1
Joined: Sun Jun 24, 2018 4:37 pm

EGL context creation failes with EGL_BAD_ALLOC

Sun Jun 24, 2018 5:21 pm

Hi,

I'm trying to use the mesa libraries. I built them from source using: https://github.com/anholt/mesa/wiki/Bui ... sa-for-VC4
I enabled debug mode, the vc4 gallium driver and platforms surfaceless, drm, x11.
(--with-gallium-drivers=vc4 --with-dri-drivers= --with-platforms=surfaceless,drm,x11 --enable-debug)

I'm trying to run the following application:
https://pastebin.com/ytEXH35A
It runs fine using the broadcom closed-source drivers.

I'm using raspbian stretch lite (so no X11) on a raspberry pi zero w.

I set LD_LIBRARY_PATH to where --prefix was pointing.
I set the GL driver to full-kms.

The app fails with EGL_BAD_ALLOC at eglCreateContext:
Initialized EGL version: 1.4

Config chosen:
EGL_RED_SIZE: 8
EGL_GREEN_SIZE: 8
EGL_BLUE_SIZE: 8
EGL_ALPHA_SIZE: 8
EGL_DEPTH_SIZE: 24
EGL_CONFIG_CAVEAT: EGL_NONE
EGL_SAMPLE_BUFFERS: 0
EGL_SAMPLES: 0
EGL_MAX_PBUFFER_WIDTH: 4096
EGL_MAX_PBUFFER_HEIGHT: 4096
EGL_NATIVE_RENDERABLE: 1
EGL_RENDERABLE_TYPE: OpenGL OpenGLES

Failed to create EGL context! Error: EGL failed to allocate resources for the requested operation.
Any idea what am I doing wrong?

Return to “OpenGLES”

Who is online

Users browsing this forum: No registered users and 3 guests