maemo.org Bugzilla – Bug 9335
egl fb config attributes support broken (doesnt follow egl spec at any rate).
Last modified: 2011-05-12 11:27:50 UTC
You need to log in before you can comment on or make changes to this bug.
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
Hi Carsten, thanks for reporting this!
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.
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.
Confirm. eglCreateWindowSurface() fails with EGL_BAD_CONFIG.