This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

eglChooseConfig filed when using EGL_PIXMAP_BIT

Hi all,

 

I write OpenGL ES code on TI EVM, but it failed when I call eglCooseConfig() with EGL_PIXMAP_BIT. It seems like only support EGL_WINDOW_BIT. Below is my environment and some information.

Regards,

 

[Environment]

EVM: DM814x/AM387x

EZSDK version: 5.02.02.60 and 5.03.00.09

GraphicsSDK version: 4.05.00.02


[Error message]

EGL version 1.4
EGL init: failed to get at least one EGL config


[Code]

The code like this:

EGLDisplay eglDisplay = eglGetDisplay((EGLNativeDisplayType)nativedisplay);
EGLConfig confs[64];
EGLint numConfigs = 0;
EGLint fbAttrs[256];

fbAttrs[0] =     EGL_BUFFER_SIZE;                       fbAttrs[1] =     EGL_DONT_CARE;
fbAttrs[2] =     EGL_DEPTH_SIZE;                         fbAttrs[3] =     16;
fbAttrs[4] =     EGL_RED_SIZE;                              fbAttrs[5] =     8;
fbAttrs[6] =     EGL_BLUE_SIZE;                            fbAttrs[7] =    8;
fbAttrs[8] =     EGL_GREEN_SIZE;                        fbAttrs[9] =     8;
fbAttrs[10] =     EGL_ALPHA_SIZE;                      fbAttrs[11] =     8;
fbAttrs[12] =     EGL_RENDERABLE_TYPE;        fbAttrs[13] =     EGL_OPENGL_ES2_BIT;
fbAttrs[14] =     EGL_SURFACE_TYPE;                fbAttrs[15] =     EGL_PIXMAP_BIT
fbAttrs[16] =     EGL_STENCIL_SIZE;                   fbAttrs[17] =     8;
fbAttrs[18] =     EGL_NONE;                                  fbAttrs[19] = 0;

eglChooseConfig(eglDisplay, fbAttrs, confs, 64, &numConfigs)

 

[OpenGL ES Configuration list]

Below is configuration information that I retrieved by eglGetConfigAttrib()

           eglGetConfigs get EGL configs, numOfConfigs=10, configList=0x0
           eglChooseConfig get EGL configs, numOfConfigs=3

           Config 0:   

EGL_BUFFER_SIZE = 32    EGL_RED_SIZE = 8    EGL_GREEN_SIZE = 8    EGL_BLUE_SIZE = 8

EGL_ALPHA_SIZE = 8        EGL_DEPTH_SIZE = 0    EGL_STENCIL_SIZE = 0    EGL_SAMPLES_BUFFERS = 0

EGL_SAMPLES = 0    EGL_RENDERABLE_TYPE = 6


Config 1:

EGL_BUFFER_SIZE = 32    EGL_RED_SIZE = 8    EGL_GREEN_SIZE = 8    EGL_BLUE_SIZE = 8   

EGL_ALPHA_SIZE = 8        EGL_DEPTH_SIZE = 24    EGL_STENCIL_SIZE = 8    EGL_SAMPLES_BUFFERS = 0

EGL_SAMPLES = 0    EGL_RENDERABLE_TYPE = 6


Config 2:

EGL_BUFFER_SIZE = 32    EGL_RED_SIZE = 8    EGL_GREEN_SIZE = 8    EGL_BLUE_SIZE = 8

EGL_ALPHA_SIZE = 8   EGL_DEPTH_SIZE = 24    EGL_STENCIL_SIZE = 8    EGL_SAMPLES_BUFFERS = 1

EGL_SAMPLES = 4    EGL_RENDERABLE_TYPE = 6

 

  • Always ensure the environment is provided when posting SGX issues, based on below script:

    http://processors.wiki.ti.com/index.php/SGXDbg#Baselining_the_current_SGX_driver_environment

     

    You should take a look at the below code, for correctly using the pixmap bit.

    https://gitorious.org/tigraphics/sgxperf/blobs/master/sgxperf_gles20_vg.cpp