[Mesa-dev] [Bug 32825] egl_glx driver completely broken in 7.9 branch [fix in master]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 8 01:09:10 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=32825

--- Comment #9 from Chia-I Wu <olvaffe at gmail.com> 2011-01-08 01:09:10 PST ---
(In reply to comment #8)
> hi, 
> I'm running a small test program against the egl-glx version with the fix
> mentioned below, and when I run the following piece of code:
> ----------------------------------------
> static EGLint const attribute_list[] = {
>         EGL_RED_SIZE, 1,
>         EGL_GREEN_SIZE, 1,
>         EGL_BLUE_SIZE, 1,
>         EGL_NONE
> };
> ...
>         fprintf(stderr,"Calling eglChooseConfig\n");
>         if (eglChooseConfig(egld, attribute_list, &config, 1, &num_config) ==
> EGL_FALSE) {
>                 fprintf(stderr, "eglChooseConfig failed. err=%x\n",
> eglGetError());
>                 exit(1);
>         } else {
>                 fprintf(stderr, "eglChooseConfig finished ok\n");
>         }
> -------------------------------------------
> 
> I get the following output:
> --------------------------
> Calling eglChooseConfig
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the criteria
> (0x1)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the criteria
> (0x1)
> libEGL debug: the value (0x8) of attribute 0x3040 did not meet the criteria
> (0x1)
> ...[repeats about 100 times]...
> eglChooseConfig finished ok
> --------------------------
> 
> is this related to this bug?
Nope.  You should specifiy EGL_RENDERABLE_TYPE (0x3040) in the test program. 
It is default to EGL_OPENGL_ES1_BIT (0x1), and egl_glx only supports
EGL_OPENGL_BIT (0x8).
> Also, eglgears_screen and egltri_screen fail with this error:
> -------------------------------------------------------
> libEGL debug: attribute 0x3033 has an invalid value 0x8
> libEGL debug: EGL user error 0x3004 (EGL_BAD_ATTRIBUTE) in eglChooseConfig
> -------------------------------------------------------
> 
> but I never ran those before today so I don't know if they are supposed to work
> or not.
Those suffixed with _screen do not work with egl_glx.  They requre
EGL_MESA_screen_surface extension.  They should output better error message
though.
>  thanks,
>    csd

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list