FS#29157 - [mesa] --enable-gbm
Attached to Project:
Arch Linux
Opened by stubb (stubb) - Wednesday, 28 March 2012, 20:31 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 19 May 2012, 08:17 GMT
Opened by stubb (stubb) - Wednesday, 28 March 2012, 20:31 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 19 May 2012, 08:17 GMT
|
Details
Description: Please build the package with --enable-gbm
Additional info: * package version(s) 8.0.2-1 * config and/or log files etc. checking for GBM... no configure: error: Package requirements (gbm) were not met: No package 'gbm' found Steps to reproduce: I tried to install Kmscon, it is a simple terminal emulator based on linux kernel mode setting (KMS) from https://github.com/dvdhrm/kmscon . |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Saturday, 19 May 2012, 08:17 GMT
Reason for closing: Implemented
Additional comments about closing: libgbm is now packaged in mesa 8.0.3, if you need further changes open new items.
Saturday, 19 May 2012, 08:17 GMT
Reason for closing: Implemented
Additional comments about closing: libgbm is now packaged in mesa 8.0.3, if you need further changes open new items.
I think to enable it in newer mesa, you need --with-egl-platforms=drm,x11 Default is only x11.
David, you should place x11 as the first item in the list supplied to --with-egl-platforms, unless you have a good reason not to. The first platform listed there becomes the default libEGL platform. If x11 is not the default, then X11 apps that use EGL but forget to set the environment variable EGL_PLATFORM can crash in some corner cases.
On the other hand, why should X11 be the default? Who uses EGL with X11 if there is glx? It is more likely that egl is used with drm or wayland. However, autodetection is rough anyway so an application should always set EGL_PLATFORM.
I encountered the problem when running a GLES2 Piglit test after building Mesa with --with-egl-platforms=wayland,x11. The test was supposed to be run under X11/EGL, but libEGL defaulted to Wayland and the test segfaulted inside libwayland-client.
But, like you said, the autodetection shouldn't be trusted anyway and the application should set EGL_PLATFORM.