[Mesa-dev] [PATCH v3] mesa: Optionally build a dricore support library (v3)

Sedat Dilek sedat.dilek at googlemail.com
Mon Feb 14 08:31:12 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)?
>

I have now built with --with-dri-drivers=r200,swrast (rest same as above).

root at tbox:~# ldd /usr/lib/dri/r200_dri.so
        linux-gate.so.1 =>  (0xb78e0000)
        libdricore.so => /usr/lib/dri/libdricore.so (0xb7654000)
        libglsl.so => /usr/lib/dri/libglsl.so (0xb7549000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb7528000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7502000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb74e9000)
        libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb74e5000)
        libdrm_radeon.so.1 => /usr/lib/libdrm_radeon.so.1 (0xb74df000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb73f2000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb73cc000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb73af000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7269000)
        librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7260000)
        /lib/ld-linux.so.2 (0xb78e1000)
root at tbox:~# ldd /usr/lib/dri/swrast_dri.so
        linux-gate.so.1 =>  (0xb77c0000)
        libdricore.so => /usr/lib/dri/libdricore.so (0xb75ab000)
        libglsl.so => /usr/lib/dri/libglsl.so (0xb74a0000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb747f000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7459000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7440000)
        libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb743c000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7350000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7329000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb730c000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb71c6000)
        librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb71bd000)
        /lib/ld-linux.so.2 (0xb77c1000)
root at tbox:~# ldd /usr/lib/dri/libdricore.so
        linux-gate.so.1 =>  (0xb789b000)
        libglsl.so => /usr/lib/dri/libglsl.so (0xb7587000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7485000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb745e000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7441000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb72fb000)
        /lib/ld-linux.so.2 (0xb789c000)
root at tbox:~# ldd /usr/lib/dri/libglsl.so
        linux-gate.so.1 =>  (0xb77cb000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb75bc000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7596000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7578000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7432000)
        /lib/ld-linux.so.2 (0xb77cc000
root at tbox:~# egrep -i 'aiglx|swrast' /var/log/Xorg.0.log
[  2863.123] (==) AIGLX enabled
[  2863.275] (EE) AIGLX error: Calling driver entry point failed
[  2863.276] (EE) AIGLX: reverting to software rendering
[  2863.276] (II) AIGLX: Screen 0 is not DRI capable
[  2863.277] (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
[  2863.277] (II) GLX: Initialized DRISWRAST GL provider for screen 0

>>
>> 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.
>

Rest of the mesa dri drivers are from the mesa Debian package, I moved
them all to  /usr/lib/dri/backup/.
This should not interfere anymore (I hope so).

- Sedat -

P.S.:

root at tbox:~# LC_ALL=C ls -lR /usr/lib/libGL.so* /usr/lib/dri/
lrwxrwxrwx 1 sd   sd        10 Feb 14 17:13 /usr/lib/libGL.so -> libGL.so.1
lrwxrwxrwx 1 sd   sd        12 Feb 14 17:13 /usr/lib/libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 sd   sd   2243051 Feb 14 17:13 /usr/lib/libGL.so.1.2

/usr/lib/dri/:
total 17500
drwxr-xr-x 2 root root     4096 Feb 14 17:25 backup
-rwxr-xr-x 1 root root 11497967 Feb 14 17:14 libdricore.so
-rwxr-xr-x 1 root root  3151116 Feb 14 17:14 libglsl.so
-rwxr-xr-x 1 root root  2942874 Feb 14 17:14 r200_dri.so
-rwxr-xr-x 1 root root   313167 Feb 14 17:14 swrast_dri.so

/usr/lib/dri/backup:
total 39128
-rw-r--r-- 1 root root   13296 Feb 13 19:05 dummy_drv_video.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 3333228 Feb  8 18:31 i965_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 2969132 Feb  8 18:31 r128_dri.so
-rw-r--r-- 1 root root 3239560 Feb  8 18:31 r300_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


More information about the mesa-dev mailing list