Bug 9335 - (int-158815) egl fb config attributes support broken (doesnt follow egl spec at any rate).
(int-158815)
: egl fb config attributes support broken (doesnt follow egl spec at any rate).
Status: NEW
Product: Core
X Server
: 5.0/(3.2010.02-8)
: N900 Maemo
: Unspecified major with 1 vote (vote)
: ---
Assigned To: unassigned
: x-server-bugs
: http://www.rasterman.com/files/e17-n9...
:
:
:
  Show dependency tree
 
Reported: 2010-03-01 14:46 UTC by Carsten Haitzler
Modified: 2011-05-12 11:27 UTC (History)
3 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Carsten Haitzler (reporter) 2010-03-01 14:46:40 UTC
SOFTWARE VERSION:
5.0/(3.2010.02-8)

EXACT STEPS LEADING TO PROBLEM:

use extra software indicated - run expedite -e gl or elementary_test with gl
engine enabled (see below for references to previous bug report).

eglCreateWindowSurface() fails with EGL_BAD_CONFIG if you use a config which
has:

   config_attrs[n++] = EGL_RED_SIZE;
   config_attrs[n++] = 1;
   config_attrs[n++] = EGL_GREEN_SIZE;
   config_attrs[n++] = 1;
   config_attrs[n++] = EGL_BLUE_SIZE;
   config_attrs[n++] = 1;

in it (chosen by eglChooseConfig() which chooses a config and doesnt fail). the
values (minimum bits) for r, g, b et.c can be 1, 8 - doesnt matter. it fails
the moment you have them.

EXPECTED OUTCOME:

eglCreateWindowSurface() should succeed as the config is valid for the given
display - you have red, green and blue components there of at least 1 bit... :)

ACTUAL OUTCOME:

call fails (error as above)

REPRODUCIBILITY:

always

EXTRA SOFTWARE INSTALLED:
http://www.rasterman.com/files/e17-n900-broken.tar.gz

special broken version for you. same installation/removal as
https://bugs.maemo.org/show_bug.cgi?id=9320

OTHER COMMENTS:

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14)
Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14
Comment 1 Andre Klapper maemo.org 2010-03-01 15:25:32 UTC
Hi Carsten, thanks for reporting this!
Comment 2 Carsten Haitzler (reporter) 2010-03-01 16:00:35 UTC
cool! people looking at it - sorry for the other bug report:

https://bugs.maemo.org/show_bug.cgi?id=9320

it's a bit more of a monster - harder to have isolated to some simple calls to
fix, but needs fixing either way. u'll want to refer to it for info on
installing software and testing things.
Comment 3 Bartosz Taudul 2010-03-11 02:02:38 UTC
Confirming. My limited experimentation unrelated to this bug showed that
EGL_BUFFER_SIZE must be specified in a call to eglChooseConfig(), even if spec
states that "The smallest color buffer of at least the specified size is
preferred. The default value is 0.". If this is left at default, any color
buffer size should be acceptable.
Comment 4 Matti Lehtonen 2011-05-12 11:27:50 UTC
Confirm. eglCreateWindowSurface() fails with EGL_BAD_CONFIG.