[PATCH wayland-web 7/9] building: simplify Mesa instructions

Pekka Paalanen ppaalanen at gmail.com
Sat Jan 12 12:52:06 UTC 2019


From: Pekka Paalanen <pq at iki.fi>

Mesa is moving on to Meson and in the process of dropping autotools.
Just point to the official Mesa build guide instead of trying to
maintain our own.

The new wording also avoids implying that "Wayland uses EGL", that has
never been true. It is EGL that may support Wayland, and programs that
may depend on Wayland and EGL.

All the detailed notes about dependencies and Mesa's building quirks
should be unnecessary. They certainly are something we don't want to
maintain here, so if they are necessary, they should be in the official
Mesa build guide.

Signed-off-by: Pekka Paalanen <pq at iki.fi>
---
 building.html       | 48 +++++++++-------------------------------
 mesa-configure.html | 53 ---------------------------------------------
 2 files changed, 10 insertions(+), 91 deletions(-)
 delete mode 100644 mesa-configure.html

diff --git a/building.html b/building.html
index a29a0bb..4f28f9e 100644
--- a/building.html
+++ b/building.html
@@ -149,48 +149,20 @@ $ cd ..
 
 <h2>Mesa</h2>
 
-<p>Wayland uses the <a href="http://www.mesa3d.org/egl.html">Mesa
-EGL</a> stack, and all extensions required to run EGL on KMS are now
-upstream.  Wayland should work with any mesa release after 9.0, but in
-some cases extra functionality or optimization will only be available in
-more recent releases.</p>
+<p><a href="http://www.mesa3d.org/egl.html">Mesa EGL</a> and Mesa Vulkan stacks
+support Wayland. Weston's hardware acceleration (GL-renderer) depends on EGL
+GBM platform. Many Wayland applications, including some Weston demos, depend on
+EGL Wayland platform.</p>
 
-<pre>
-$ git clone <a href="https://cgit.freedesktop.org/mesa/mesa">git://anongit.freedesktop.org/mesa/mesa</a>
-$ cd mesa
-$ ./autogen.sh --prefix=$WLD --enable-gles2 \
-  --with-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi \
-  --with-gallium-drivers=r300,r600,swrast,nouveau --enable-llvm
-$ make && make install
-$ cd ..
-</pre>
-
-<ul>
-<li><a href="mesa-configure.html">Example mesa configure output.</a></li>
-
-<li>You will probably need a development package for <a href="https://01.org/linuxgraphics/community/libdrm">libdrm</a>. This is
-available in <a href="https://cgit.freedesktop.org/mesa/drm"><code>git://anongit.freedesktop.org/mesa/drm</code></a></li>
+<p>For building Mesa, refer to the upstream
+<a href="https://www.mesa3d.org/install.html">build instructions</a>.
+When configuring Mesa to make the most out of Weston, make sure that OpenGL ES 2
+and GBM are enabled, and that EGL platforms includes wayland and drm.</p>
 
-<li><a href="http://xcb.freedesktop.org/">xcb</a>-* dependencies can be fixed by compiling and installing
-<a href="https://cgit.freedesktop.org/xcb/proto"><code>git://anongit.freedesktop.org/xcb/proto</code></a> and
-<a href="https://cgit.freedesktop.org/xcb/libxcb"><code>git://anongit.freedesktop.org/xcb/libxcb</code></a>.
-</li>
-
-<li>*proto dependencies can be built from
-<a href="https://cgit.freedesktop.org/xorg/proto"><code>git://anongit.freedesktop.org/xorg/proto/*proto</code></a>.
-</li>
-
-<li><code>--disable-dri3</code> may remove some dependencies.</li>
-
-<li>If you plan to compile <a href="xserver.html">XWayland</a> you may
+<p>If you plan to compile <a href="xserver.html">XWayland</a> you may
 want to install any dependencies it needs now. This is so Mesa
 uses the same header files as xwayland.
-</ul>
-
-<p>Note on Mesa build failures: If you're not building in your Mesa git
-repo for the first time, the first thing to try is always
-"<code>git clean -xfd</code>", and possibly deleting your $WLD
-directory, as Mesa requires this often.</p>
+</p>
 
 <h2>libinput</h2>
 
diff --git a/mesa-configure.html b/mesa-configure.html
deleted file mode 100644
index 7ee985f..0000000
-- 
2.20.1



More information about the wayland-devel mailing list