[Mesa-users] eglInitialize

Alberich de megres alberich2k5 at gmail.com
Tue Dec 14 01:24:10 PST 2010


Hi !!

I got a problem while initializing egl, using the source on git repo:
git clone git://anongit.freedesktop.org/mesa/mesa

So what i do is first

display = (EGLDisplay) eglGetDRMDisplayMESA(fd);
if (display == NULL) return -1;

if (!eglInitialize(display, &major, &minor)) {
... error check
}

When I do that i receive a message:
libEGL warning: failed to create DRM screen

And sometimes i get this other on the same point:
libEGL warning: failed to create DRM screen
libEGL warning: EGL-DRI2: malformed or no PCI ID

I tried with both nourveau modeset=1, and radeon modeset=1

I compiled libdrm with the following options:
./configure --enable-nouveau-experimental-api --enable-vmwgfx-experimental-api

And mesa with the following:
./configure --with-dri-drivers=nouveau --enable-glx-tls
--with-driver=dri --enable-xcb --disable-glut  --enable-egl
--enable-gles2 --with-egl-platforms=drm --disable-gallium

Also i tried those recomended on wayland site:
./configure  --enable-egl --enable-gles2

Can any one point me some light?
thanks!
Albert


More information about the mesa-users mailing list