Mesa (master): meson: Add build Intel "anv" vulkan driver

Dylan Baker dbaker at kemper.freedesktop.org
Wed Sep 27 16:41:58 UTC 2017


Module: Mesa
Branch: master
Commit: d1992255bb29054fa51763376d125183a9f602f3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1992255bb29054fa51763376d125183a9f602f3

Author: Dylan Baker <dylan at pnwbakers.com>
Date:   Thu Sep 14 17:57:17 2017 -0700

meson: Add build Intel "anv" vulkan driver

This allows building and installing the Intel "anv" Vulkan driver using
meson and ninja, the driver has been tested against the CTS and has
seems to pass the same series of tests (they both segfault when the CTS
tries to run wayland wsi tests).

There are still a mess of TODO, XXX, and FIXME comments in here. Those
are mostly for meson bugs I'm trying to fix, or for additional things to
implement for other drivers/features.

I have configured all intermediate libraries and optional tools to not
build by default, meaning they will only be built if they're pulled in
as a dependency of a target that will actually be installed) this allows
us to avoid massive if chains, while ensuring that only the bits that
need to be built are.

v2: - enable anv, x11, and wayland by default
    - add configure option to disable valgrind
v3: - fix typo in meson_options (Nicholas)
v4: - Remove dead code (Eric)
    - Remove change to generator that was from v0 (Eric)
    - replace if chain with loop (Eric)
    - Fix typos (Eric)
    - define HAVE_DLOPEN for both libdl and builtin dl cases (Eric)
v5: - rebase on util string buffer implementation

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net> (v4)

---

 include/meson.build                      |  22 ++
 meson.build                              | 418 +++++++++++++++++++++++++++++++
 meson_options.txt                        |  30 +++
 src/compiler/glsl/meson.build            |  29 +++
 src/compiler/meson.build                 |  57 +++++
 src/compiler/nir/meson.build             | 205 +++++++++++++++
 src/egl/wayland/wayland-drm/meson.build  |  21 ++
 src/gtest/meson.build                    |  26 ++
 src/intel/blorp/meson.build              |  37 +++
 src/intel/common/meson.build             |  44 ++++
 src/intel/compiler/meson.build           | 155 ++++++++++++
 src/intel/genxml/meson.build             |  59 +++++
 src/intel/isl/meson.build                | 105 ++++++++
 src/intel/meson.build                    |  31 +++
 src/intel/tools/meson.build              |  39 +++
 src/intel/vulkan/meson.build             | 182 ++++++++++++++
 src/mapi/glapi/gen/meson.build           |  19 ++
 src/meson.build                          |  48 ++++
 src/util/meson.build                     | 137 ++++++++++
 src/util/tests/hash_table/meson.build    |  32 +++
 src/util/tests/string_buffer/meson.build |  29 +++
 src/vulkan/meson.build                   |  28 +++
 src/vulkan/util/meson.build              |  41 +++
 src/vulkan/wsi/meson.build               |  71 ++++++
 24 files changed, 1865 insertions(+)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=d1992255bb29054fa51763376d125183a9f602f3



More information about the mesa-commit mailing list