[Mesa-dev] [radeonsi] meson vs autotools used disk space observations

Dieter Nützel Dieter at nuetzel-hh.de
Mon May 13 11:13:04 UTC 2019


Am 13.05.2019 11:06, schrieb Eric Engestrom:
> On Monday, 2019-05-13 01:05:10 +0200, Dieter Nützel wrote:
>> Am 13.05.2019 00:03, schrieb Jason Ekstrand:
>> > Likely you're either getting slightly different build flags for some
>> > reason it else something extra is getting linked into the gallium
>> > driver that want before. Not all they concerning but I'll happily
>> > agree it is a bit odd and probably worth some investigation. If
>> > nothing else, your build setup isn't identical between the two
>> > somehow.  That said, without knowing your meson config parameters it's
>> > impossible to guess what that would be.
>> 
>> Hello Jason,
>> 
>> thank you that you step in.
>> 
>> > You provided some CMake thing
>> > but that looks irrelevant.
>> 
>> Oh, sh... (see below).
>> 
>> > On May 12, 2019 15:13:59 Dieter Nützel <Dieter at nuetzel-hh.de> wrote:
>> >
>> > > Hello to all of you,
>> > >
>> > > after long fiddling with fading away of autotools I have to present my
>> > > observations about used disk space at least for the radeonsi driver.
>> > > Same goes for radeon.
>> > >
>> > > autotools
>> > > -rwxr-xr-x   4 root root  4903184 12. Mai 19:28 radeonsi_drv_video.so
>> > > -rwxr-xr-x   4 root root  4903184 12. Mai 19:28 r600_drv_video.so
>> > > -rwxr-xr-x   8 root root 10933808 12. Mai 19:28 swrast_dri.so
>> > > -rwxr-xr-x   8 root root 10933808 12. Mai 19:28 radeonsi_dri.so
>> > > -rwxr-xr-x   8 root root 10933808 12. Mai 19:28 r600_dri.so
>> > > -rwxr-xr-x   8 root root 10933808 12. Mai 19:28 kms_swrast_dri.so
>> > >
>> > > meson ~940 k more
>> > > -rwxr-xr-x   6 root root  4903184 12. Mai 19:28 radeonsi_drv_video.so
>> > > -rwxr-xr-x   6 root root  4903184 12. Mai 19:28 r600_drv_video.so
>> > > -rwxr-xr-x   8 root root 11876040 12. Mai 21:26 swrast_dri.so
>> > > -rwxr-xr-x   8 root root 11876040 12. Mai 21:26 radeonsi_dri.so
>> > > -rwxr-xr-x   8 root root 11876040 12. Mai 21:26 r600_dri.so
>> > > -rwxr-xr-x   8 root root 11876040 12. Mai 21:26 kms_swrast_dri.so
>> > >
>> > > @Marek
>> > > Aren't *_drv_video.so needed any longer? They aren't built/installed
>> > > by
>> > > meson any more.
>> > >
>> > > autotools
>> > > -rwxr-xr-x   4 root root 4931824 12. Mai 19:28
>> > > libvdpau_radeonsi.so.1.0.0
>> > > -rwxr-xr-x   4 root root 4931824 12. Mai 19:28 libvdpau_r600.so.1.0.0
>> > >
>> > > meson ~430k more
>> > > -rwxr-xr-x   4 root root 5365912 12. Mai 21:26
>> > > libvdpau_radeonsi.so.1.0.0
>> > > -rwxr-xr-x   4 root root 5365912 12. Mai 21:26 libvdpau_r600.so.1.0.0
>> > >
>> > > autotools
>> > > -rwxr-xr-x  1 root root    26408 12. Mai 19:28 libGLESv1_CM.so.1.1.0
>> > > -rwxr-xr-x  1 root root    26408 12. Mai 19:28 libGLESv1_CM.so.1.0.0
>> > > -rwxr-xr-x  1 root root    42792 12. Mai 19:28 libGLESv2.so.2.0.0
>> > > -rwxr-xr-x  1 root root   467872 12. Mai 19:28 libGLX_mesa.so.0.0.0
>> > > -rwxr-xr-x  1 root root 24152656 12. Mai 19:28 libOpenCL.so.1.0.0
>> > > -rwxr-xr-x  1 root root   221696 12. Mai 19:28 libEGL_mesa.so.0.0.0
>> > > -rwxr-xr-x  1 root root   203064 12. Mai 19:28 libglapi.so.0.0.0
>> > > -rwxr-xr-x  1 root root  3392464 12. Mai 19:28 libvulkan_radeon.so
>> > > -rwxr-xr-x  1 root root  2150968 12. Mai 19:28 libXvMCr600.so.1.0.0
>> > >
>> > > meson
>> > > -rwxr-xr-x 1 root root    26408 12. Mai 19:28 libGLESv1_CM.so.1.1.0
>> > > -rwxr-xr-x 1 root root    26408 12. Mai 19:28 libGLESv1_CM.so.1.0.0
>> > > -rwxr-xr-x 1 root root    42792 12. Mai 19:28 libGLESv2.so.2.0.0
>> > > -rwxr-xr-x 1 root root  2150968 12. Mai 19:28 libXvMCr600.so.1.0.0
>> > > -rwxr-xr-x 1 root root   203072 12. Mai 21:26 libglapi.so.0.0.0
>> > > -rwxr-xr-x 1 root root  3683296 12. Mai 21:26 libvulkan_radeon.so
>> > > 290k more
>> > >
>> > > -rwxr-xr-x 1 root root   480160 12. Mai 21:26 libGLX_mesa.so.0.0.0
>> > > 130k more
>> > >
>> > > -rwxr-xr-x 1 root root   234016 12. Mai 21:26 libEGL_mesa.so.0.0.0
>> > > 130k more
>> > >
>> > > -rwxr-xr-x 1 root root 24144432 12. Mai 21:26 libOpenCL.so.1.0.0
>> > >
>> > > libGLE* aren't build/installed, too.
>> > >
>> > > This was last tested with mesa git #4111c380b05, because of 'final'
>> > > deletion of autotools. git revert xxx autotools commits.
>> > >
>> > > My configuration:
>> > > autotools
>> > > ./autogen.sh --prefix=/usr/local --with-dri-drivers=""
>> > > --with-platforms=drm,x11 --with-gallium-drivers=r600,radeonsi,swrast
>> > > --with-vulkan-drivers=radeon --enable-nine --enable-opencl
>> > > --disable-opencl_icd --enable-libglvnd --enable-autotools
>> > >
>> > > meson
>> > > cmake -DLLVM_TARGETS_TO_BUILD="X86;AMDGPU" -DLLVM_APPEND_VC_REV=OFF
>> > > -DCMAKE_BUILD_TYPE="Release" -DLLVM_LINK_LLVM_DYLIB=ON
>> > > -DLLVM_ENABLE_RTTI=ON -DLLVM_PARALLEL_COMPILE_JOBS="9" ../
>> 
>> Argh,
>> 
>> this shouldn't show up. Not sure what I did...;-)
>> 
>> Should be:
>> 
>> meson ../ --strip --buildtype debugoptimized -Ddri-drivers=
> 
> Not really surprising the meson debug build contains more than the
> autotools release build ;P
> 
> Try comparing with `--buildtype release`?

Hello Eric,

'to short jumped'...;-)
Tried it last _night_ ( ;-) ), too. --- Even bigger.
Next hint?

BTW --strip do not work on all installed files.

Dieter

>> -Dplatforms=drm,x11 -Dgallium-drivers=r600,radeonsi,swrast
>> -Dvulkan-drivers=amd -Dgallium-nine=true -Dgallium-opencl=standalone
>> -Dglvnd=true -Dgallium-va=false -Dgallium-xvmc=false 
>> -Dgallium-omx=disabled
>> -Dgallium-xa=false
>> 
>> I'm on openSUSE Tumbleweed, latest meson-0.50.1.
>> Do you need some Tumbleweed meson build flags, too?
>> 
>> Thanks,
>> Dieter
>> 
>> > > Thanks,
>> > >
>> > > Dieter
>> > > _______________________________________________
>> > > mesa-dev mailing list
>> > > mesa-dev at lists.freedesktop.org
>> > > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list