You are not logged in.

#1 2008-05-02 20:49:47

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

xf86-video-intel doesn't work for direct rendering

With xf86-video-intel, I can't use direct rendering.  With LIBGL_DEBUG=verbose, glxinfo says this:

libGL: XF86DRIGetClientDriverName: 1.9.0 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri//i915_dri.so
libGL error: dlopen /usr/lib/xorg/modules/dri//i915_dri.so failed (/usr/lib/xorg/modules/dri//i915_dri.so: undefined symbol: _glapi_tls_Context)
libGL error: unable to load driver: i915_dri.so

And, everything that tries to use 3d segfaults just before it closes, presumably when it unloads the driver.

Offline

#2 2008-05-02 22:44:44

lexiw
Member
Registered: 2008-04-29
Posts: 46

Re: xf86-video-intel doesn't work for direct rendering

Please, tell me the output of:
pacman -Q libgl
pacman -Q libdrm
pacman -Q mesa
pacman -Q xf86-video-intel
pacman -Q xorg-server
uname -r

Offline

#3 2008-05-03 04:40:51

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: xf86-video-intel doesn't work for direct rendering

tavianator@antimatter> pacman -Q libdrm                                   ~
libdrm 2.3.0-1
tavianator@antimatter> pacman -Q mesa                                         ~
mesa 7.0.3rc2-1
tavianator@antimatter> pacman -Q xf86-video-intel                             ~
xf86-video-intel 2.3.0-2
tavianator@antimatter> pacman -Q xorg-server                                  ~
xorg-server 1.4.0.90-9
tavianator@antimatter> uname -r                                               ~
2.6.24-ARCH
tavianator@antimatter>

I compiled the latest xf86-video-intel from source, but the same thing happens with 2.2.1-2, and xf86-video-i810.

Last edited by tavianator (2008-05-03 04:48:16)

Offline

#4 2008-05-03 13:29:32

lexiw
Member
Registered: 2008-04-29
Posts: 46

Re: xf86-video-intel doesn't work for direct rendering

tavianator wrote:
tavianator@antimatter> pacman -Q libdrm                                   ~
libdrm 2.3.0-1
tavianator@antimatter> pacman -Q mesa                                         ~
mesa 7.0.3rc2-1
tavianator@antimatter> pacman -Q xf86-video-intel                             ~
xf86-video-intel 2.3.0-2
tavianator@antimatter> pacman -Q xorg-server                                  ~
xorg-server 1.4.0.90-9
tavianator@antimatter> uname -r                                               ~
2.6.24-ARCH
tavianator@antimatter>

I compiled the latest xf86-video-intel from source, but the same thing happens with 2.2.1-2, and xf86-video-i810.

xorg-server is compiled with tls support (thread local storage, --enable-glx-tls). Your xserver is looking for a tls version of the dri driver but the driver is compiled without tls support.
If you have libgl installed and you are not using custom packages, everything should works. I'm currently using my custom packages but i tried with the extra repo too, everything works as expected.

[lexiw@stroggos ~]$ grep tls /var/abs/extra/xorg-server/PKGBUILD
              --enable-glx-tls \
[lexiw@stroggos ~]$ grep TLS /var/abs/extra/mesa/PKGBUILD
  echo "ARCH_FLAGS += -DGLX_USE_TLS" >> configs/${CONFIG}
[lexiw@stroggos ~]$ grep TLS /var/abs/extra/libgl/PKGBUILD
  echo "ARCH_FLAGS += -DGLX_USE_TLS" >> configs/${CONFIG}
[lexiw@stroggos ~]$ grep TLS /var/abs/extra/xf86-video-intel/PKGBUILD
  echo "ARCH_FLAGS += -DGLX_USE_TLS" >> ${CONFIG}


My system:
[lexiw@stroggos ~]$ pacman -Q libdrm
libdrm 2.3.0-1
[lexiw@stroggos ~]$ pacman -Q mesa
mesa 7.0.3-1
[lexiw@stroggos ~]$ pacman -Q xf86-video-intel
xf86-video-intel 2.3.0-1
[lexiw@stroggos ~]$ pacman -Q xorg-server
xorg-server 1.4.0.90-10
[lexiw@stroggos ~]$ uname -r
2.6.25-ARCH
[lexiw@stroggos ~]$ pacman -Q libgl
libgl 7.0.3-1

Never had any problem with the official packages (even with kernel 2.6.24), every time i had the "tls problem" it was my fault for recompiling with the wrong flags.

Last edited by lexiw (2008-05-03 13:30:25)

Offline

#5 2008-05-03 20:05:00

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: xf86-video-intel doesn't work for direct rendering

I have no idea why, but for some reason, I had catalyst-utils installed instead of libgl.  Everything's good now.  Thanks for pointing that out.

Offline

#6 2008-05-03 21:17:18

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: xf86-video-intel doesn't work for direct rendering

tavianator wrote:

I have no idea why, but for some reason, I had catalyst-utils installed instead of libgl.  Everything's good now.  Thanks for pointing that out.

catalyst-utils provides libgl and pacman probably just searches alphabetically and  c < l

Offline

Board footer

Powered by FluxBB