Forum Topic - eglChooseConfig always get 0 in 4th parameter: (5 Items)
   
eglChooseConfig always get 0 in 4th parameter  
Hi 

When I test with the gles-egl-gears sample code in the function 

eglChooseConfig(egl_disp, (EGLint*)&egl_conf_attr,
        egl_configs, 1, &egl_num_configs);

when I test with the config from 1 to 3 the egl_num_configs 1 
but when the config from 4 to 10 , the gel_num_configs is always  0 

It looks like 

http://www.imgtec.com/forum/forum_posts.asp?TID=21


and when I force layer to 1 the gel_num_configs  is 4 

my platform is omap3530 ,  I  test it both on the omap3530 (ES 3.1)and saras (ES 2.1) with driver from

http://community.qnx.com/sf/frs/do/viewRelease/projects.customer_farmington_hills/frs.sgx_graphics.drop11_sgx_and_flash


Thanks  and Best regards 
Re: eglChooseConfig always get 0 in 4th parameter  
ok, just to verify your statements, in the case where things "do not work", you are just using the default level, but 
when things "are working", you are forcing the EGL_LEVEL?
Re: eglChooseConfig always get 0 in 4th parameter  
Hi 

yes .

As example .

my egl-config 

1 rgb565 layer 0
2 rgb888 layer 0
3 argb565 layer 0
4 argb8888 layer 1
5 rgb565 layer 1
6 argb1555 layer 1

when I use gles1-egl-gears -config= 1 2 3 , it works . and when I use gles1-egl-gears  -config=4 5 6 . the 
egl_num_configs is get 0 

when I use gles1-egl-gears -layer=1 . It works . the egl_num_configs is 4 . 
RE: eglChooseConfig always get 0 in 4th parameter  
Is this using your modified driver with the 3 real/3 virtual layers?

I am not saying the problem is with your driver, maybe in the EGL, but
is your omap_layer_query() callout in the driver OK?

Have you extended it to do all 6 layers?  My _guess_ is the library goes
into a loop, and when the layer query fails, it stops (in default case).
Maybe when you specify the layer, it bypasses this loop?

Do you see any layer query calls coming into your driver during this
failure?

Thanks!

-----Original Message-----
From: Xiongwei Huang [mailto:community-noreply@qnx.com] 
Sent: Thursday, August 05, 2010 9:32 PM
To: opengles-graphics
Subject: Re: eglChooseConfig always get 0 in 4th parameter

Hi 

yes .

As example .

my egl-config 

1 rgb565 layer 0
2 rgb888 layer 0
3 argb565 layer 0
4 argb8888 layer 1
5 rgb565 layer 1
6 argb1555 layer 1

when I use gles1-egl-gears -config= 1 2 3 , it works . and when I use
gles1-egl-gears  -config=4 5 6 . the egl_num_configs is get 0 

when I use gles1-egl-gears -layer=1 . It works . the egl_num_configs is
4 . 



_______________________________________________

OpenGL ES
http://community.qnx.com/sf/go/post61943
Re: RE: eglChooseConfig always get 0 in 4th parameter  
Hi 

I test it on the original driver . and I think it will be the same on my modified driver .

I just test it up to layer 2. 

I could check in the driver log for loop query . 

but the flash config file  works fine . it also use the egl config index number .