[Mesa-dev] [PATCH 04/13] meson: build r600 driver

Eric Engestrom eric.engestrom at imgtec.com
Thu Nov 2 12:03:17 UTC 2017


On Thursday, 2017-11-02 11:32:44 +0100, Marc Dietrich wrote:
> Hi Dylan,
> 
> Am Mittwoch, 1. November 2017, 23:49:39 CET schrieb Dylan Baker:
> > Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
> > Tested-by: Aaron Watry <awatry at gmail.com>
> > ---
> >  meson.build                          |  20 ++++--
> >  meson_options.txt                    |   2 +-
> >  src/gallium/drivers/r600/meson.build | 128
> > +++++++++++++++++++++++++++++++++++ src/gallium/meson.build              | 
> >  4 +-
> >  src/gallium/targets/dri/meson.build  |   7 +-
> >  5 files changed, 153 insertions(+), 8 deletions(-)
> >  create mode 100644 src/gallium/drivers/r600/meson.build
> 
> r600 driver (on RS780) seems to work here (X starts, some games play). During 
> setup, I wondered why the vulkan drivers are enabled by default? This is 
> different from the autotools setup. Maybe there was a discussion in the past 
> about it and I just didn't got it.
> 
> Another thing which caught my eyes is the .so names are different. Autotools 
> produces a 3 number versions for all libs while meson generates a 
>   - no version for libglapi
>   - single number for libEGL_mesa.so.0, libGLESv2.so.2,libGLX_mesa.so.0 
>   - two versions for libGLESv1_CM.so.1.1
>   - there numbers for libOSMesa.so.8.0.0, and libwayland-egl.so.1.0.0

meson adds as many numbers for the .so filename versions as are given in
the `version` field of shared_library(). For instance, GLESv2 has
`version : '2'`, while wayland-egl has `version : '1.0.0'`.

It's trivially easy to fix, but the question is: does it matter? Does
anything use more than the major number? (Honest question, I simply
don't know)
Might be worth normalizing to either "always major.minor.patch" or
"only the non-zero", but afaiu it doesn't matter which one we pick.

> 
> I built with:
> 
> meson \                                 
>     --prefix=/usr/local \                                                                             
>     -Dgallium-drivers=r600,swrast \                                                                   
>     -Dvulkan-drivers= \                                                                               
>     -Dtexture-float=true \                                                                            
>     -Dgles1=true -Dgles2=true \                                                                       
>     -Dgallium-media=omx,va,vdpau,xvmc \                                                               
>     -Dglvnd=true \                                                                                    
>     -Ddri-drivers= \                                                                                  
>     -Dosmesa=gallium \                                                                                
>     build                                                                                             
> 
> Marc


More information about the mesa-dev mailing list