[Mesa-dev] More gratitude for Meson

Dylan Baker dylan at pnwbakers.com
Wed Nov 1 22:21:51 UTC 2017


Quoting Chad Versace (2017-11-01 14:43:28)
> Wow. 10 seconds from a clean checkout to an installed Vulkan driver.
> 
> I don't know how qualify my surprise...
> 
> Wow.
> 
> The Intel Vulkan driver is often all I need, so I was tempted to
> investigate whether Meson allowed building and installing just anvil and
> nothing else. No OpenGL, no OpenGL ES, no EGL, no GLX,... just
> libvulkan_intel.so, the icd json, and the pkg-config files.
> 
> I benchmarked the time to configure, build, and install from a clean git
> checkout. I tested with vkcube.
> 
>     $ tmpdir=$(mktemp -d --tmpdir mesa.XXXXXXXX)
> 
>     $ time meson \
>         --prefix="$tmpdir/prefix" \
>         -Dbuildtype=debug \
>         -Dvalgrind=true \
>         -Dplatforms=x11,drm,wayland,surfaceless \
>         -Ddri-drivers= \
>         -Dvulkan-drivers=intel \
>         -Dgallium-drivers= \
>         -Dgles1=false \
>         -Dgles2=false \
>         -Dopengl=false \
>         "$tmpdir/build"
>     real    0m4.970s
>     user    0m3.420s
>     sys     0m1.100s
> 
>     $ ninja -C /tmp/mesa.fnQzVfsc/build
>     real    0m5.080s
>     user    2m18.93s
>     sys     0m18.330s
> 
>     $ ninja -C /tmp/mesa.fnQzVfsc/build install
>     real    0m0.460s
>     user    0m0.36s
>     sys     0m0.070s

Glad that it's working out for you guys!

Can I convince you to wire the anvil and i965 android/arc++ bits? ;)

JFYI, the meson build will (I consider it a bug if it doesn't) turn off all
glapi, egl, and glx if there are no dri or gallium drivers built unless you
force them on. It also avoids building the glsl compiler unless there's a driver
that uses it. And it defaults to debug, which might be surprising, but people
around here thought that default debug is a feature.

Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171101/ade6c92a/attachment.sig>


More information about the mesa-dev mailing list