[Mesa-dev] [PATCH v3] mesa: Optionally build a dricore support library (v3)
Sedat Dilek
sedat.dilek at googlemail.com
Sun Feb 20 15:04:00 PST 2011
On Mon, Feb 14, 2011 at 4:15 AM, Christopher James Halse Rogers
<christopher.halse.rogers at canonical.com> wrote:
> On Sat, 2011-02-12 at 15:19 +0100, Sedat Dilek wrote:
>> Hi,
>>
>> here on radeon RV250 I can only use swrast DRI driver.
>>
>> [ Xorg.log ]
>> ...
>> [ 3354.432] (EE) AIGLX error: Calling driver entry point failed
>> [ 3354.432] (EE) AIGLX: reverting to software rendering
>> ...
>>
>> My autogen-line looks like this:
>>
>> ./autogen.sh --prefix=/usr --with-driver=dri
>> --with-dri-driverdir=/usr/lib/dri --with-dri-drivers=r200
>> --disable-gallium --disable-egl --disable-glu --disable-glut
>> --disable-glw --enable-shared-dricore --enable-glx-tls --enable-debug
>>
>> I have attached my Xorg.log and mesa build-log.
>>
>> I have built ddx and mesa from git against same libdrm, not sure if
>> there is some correlations with mesa-pkgs from experimental.
>>
>> Any ideas why I can't use classic-mesa DRI driver with
>> --enable-shared-dricore (normal built mesa works fine, w/o the new
>> confgure option)?
>
> That build log looks fine to me. Could you also give the output of
> ldd /usr/lib/dri/r200_dri.so (and ldd /usr/lib/dri/swrast_dri.so as a
> control)?
>
>>
>> Regards,
>> - Sedat -
>>
>> P.S.:
>>
>> # LC_ALL=C ls -alt /usr/lib/libGL* /usr/lib/dri/
>> lrwxrwxrwx 1 sd sd 10 Feb 12 14:53 /usr/lib/libGL.so -> libGL.so.1
>> lrwxrwxrwx 1 sd sd 12 Feb 12 14:53 /usr/lib/libGL.so.1 -> libGL.so.1.2
>> -rwxr-xr-x 1 sd sd 2243051 Feb 12 14:53 /usr/lib/libGL.so.1.2
>> lrwxrwxrwx 1 root root 11 Feb 12 12:14 /usr/lib/libGLU.so -> libGLU.so.1
>> lrwxrwxrwx 1 root root 20 Feb 12 12:14 /usr/lib/libGLU.so.1 ->
>> libGLU.so.1.3.071000
>> lrwxrwxrwx 1 root root 16 Feb 10 07:43 /usr/lib/libGLEW.so.1.5 ->
>> libGLEW.so.1.5.8
>> -rw-r--r-- 1 root root 347376 Feb 9 08:57 /usr/lib/libGLEW.so.1.5.8
>> -rw-r--r-- 1 root root 716106 Feb 8 18:31 /usr/lib/libGLU.a
>> -rw-r--r-- 1 root root 454672 Feb 8 18:31 /usr/lib/libGLU.so.1.3.071000
>>
>> /usr/lib/dri/:
>> total 59180
>> drwxr-xr-x 147 root root 81920 Feb 12 14:58 ..
>> -rwxr-xr-x 1 root root 3006212 Feb 12 14:55 r200_dri.so
>> drwxr-xr-x 2 root root 4096 Feb 12 14:55 .
>> -rwxr-xr-x 1 root root 11497967 Feb 12 14:55 libdricore.so
>> -rwxr-xr-x 1 root root 3151116 Feb 12 14:55 libglsl.so
>> -rw-r--r-- 1 root root 13296 Feb 8 19:58 dummy_drv_video.so
>> -rw-r--r-- 1 root root 2969132 Feb 8 18:31 r128_dri.so
>> -rw-r--r-- 1 root root 2977516 Feb 8 18:31 i810_dri.so
>> -rw-r--r-- 1 root root 3131564 Feb 8 18:31 i915_dri.so
>> -rw-r--r-- 1 root root 3034832 Feb 8 18:31 mach64_dri.so
>> -rw-r--r-- 1 root root 3071852 Feb 8 18:31 mga_dri.so
>> -rw-r--r-- 1 root root 3239560 Feb 8 18:31 r300_dri.so
>> -rw-r--r-- 1 root root 3333228 Feb 8 18:31 i965_dri.so
>> -rw-r--r-- 1 root root 3143964 Feb 8 18:31 r600_dri.so
>> -rw-r--r-- 1 root root 3099600 Feb 8 18:31 radeon_dri.so
>> -rw-r--r-- 1 root root 3011696 Feb 8 18:31 savage_dri.so
>> -rw-r--r-- 1 root root 3037932 Feb 8 18:31 sis_dri.so
>> -rw-r--r-- 1 root root 3019500 Feb 8 18:31 tdfx_dri.so
>> -rw-r--r-- 1 root root 2963316 Feb 8 18:31 unichrome_dri.so
>> -rw-r--r-- 1 root root 2780016 Feb 8 18:31 swrast_dri.so
>
> This directory listing doesn't appear to be the result of your configure
> options? You should have fewer *_dri.so if you just passed
> --with-dri-drivers=r200.
>
I have tried again with mesa (master):
commit aa6a5cf1d5625ecb5efff3a43233ed972ab29cad
"Fix --enable-shared-glapi configure option"
And rebuild my Linux-kernel and complete Xorg stack with same gcc-4.5
and binutils from Debian/experimental, but it does not look like it
helped. I still get swrast DRI driver as default.
Anyway, IIRC r200 does not benefit from GLSL, might this be a reason?
- Sedat -
P.S.: Investigations
$ ./autogen.sh --prefix=/usr --with-driver=dri
--with-dri-driverdir=/usr/lib/dri --with-dri-drivers=r200,swrast
--disable-gallium --disable-egl --disable-glu --disable-glut
--disable-glw --enable-shared-dricore --enable-glx-tls --enable-debug
# ldd /usr/lib/dri/r200_dri.so
linux-gate.so.1 => (0xb789e000)
libdricore.so => /usr/lib/dri/libdricore.so (0xb7612000)
libglsl.so => /usr/lib/dri/libglsl.so (0xb7507000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb74e6000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb74c0000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb74a7000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb74a3000)
libdrm_radeon.so.1 => /usr/lib/libdrm_radeon.so.1 (0xb749d000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb73af000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7389000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb736c000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7226000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb721d000)
/lib/ld-linux.so.2 (0xb789f000)
# ldd /usr/lib/dri/swrast_dri.so
linux-gate.so.1 => (0xb7892000)
libdricore.so => /usr/lib/dri/libdricore.so (0xb767d000)
libglsl.so => /usr/lib/dri/libglsl.so (0xb7572000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb7551000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb752b000)
libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7512000)
libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb750e000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7421000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb73fa000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb73dd000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7297000)
librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb728e000)
/lib/ld-linux.so.2 (0xb7893000)
# LIBGL_DEBUG=verbose glxinfo 2>/dev/null | grep -i opengl
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.11-devel
OpenGL shading language version string: 1.20
OpenGL extensions:
# LC_ALL=C ls -lR /usr/lib/libGL.so* /usr/lib/dri/
lrwxrwxrwx 1 sd sd 10 Feb 20 23:48 /usr/lib/libGL.so ->
libGL.so.1
lrwxrwxrwx 1 sd sd 12 Feb 20 23:48 /usr/lib/libGL.so.1 ->
libGL.so.1.2
-rwxr-xr-x 1 sd sd 2243059 Feb 20 23:48 /usr/lib/libGL.so.1.2
/usr/lib/dri/:
total 17572
drwxr-xr-x 2 root root 4096 Feb 20 23:51 backup
-rwxr-xr-x 1 root root 11569101 Feb 20 23:49 libdricore.so
-rwxr-xr-x 1 root root 3154416 Feb 20 23:49 libglsl.so
-rwxr-xr-x 1 root root 2943482 Feb 20 23:49 r200_dri.so
-rwxr-xr-x 1 root root 313839 Feb 20 23:49 swrast_dri.so
/usr/lib/dri/backup:
total 39112
-rw-r--r-- 1 root root 2977516 Feb 16 19:21 i810_dri.so
-rw-r--r-- 1 root root 3131564 Feb 16 19:21 i915_dri.so
-rw-r--r-- 1 root root 3333228 Feb 16 19:21 i965_dri.so
-rw-r--r-- 1 root root 3034832 Feb 16 19:21 mach64_dri.so
-rw-r--r-- 1 root root 3071852 Feb 16 19:21 mga_dri.so
-rw-r--r-- 1 root root 2969132 Feb 16 19:21 r128_dri.so
-rw-r--r-- 1 root root 3239592 Feb 16 19:21 r300_dri.so
-rw-r--r-- 1 root root 3143964 Feb 16 19:21 r600_dri.so
-rw-r--r-- 1 root root 3099600 Feb 16 19:21 radeon_dri.so
-rw-r--r-- 1 root root 3011696 Feb 16 19:21 savage_dri.so
-rw-r--r-- 1 root root 3037932 Feb 16 19:21 sis_dri.so
-rw-r--r-- 1 root root 3019500 Feb 16 19:21 tdfx_dri.so
-rw-r--r-- 1 root root 2963316 Feb 16 19:21 unichrome_dri.so
# ldd /usr/lib/dri/libglsl.so
linux-gate.so.1 => (0xb784e000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb763e000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7618000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb75fa000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb74b4000)
/lib/ld-linux.so.2 (0xb784f000)
# ldd /usr/lib/dri/libdricore.so
linux-gate.so.1 => (0xb77bb000)
libglsl.so => /usr/lib/dri/libglsl.so (0xb74a7000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb73a4000)
libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb737d000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7360000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb721a000)
/lib/ld-linux.so.2 (0xb77bc000)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xorg.0.log
Type: text/x-log
Size: 48651 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110221/88d2e055/attachment-0001.bin>
More information about the mesa-dev
mailing list