[Mesa-dev] [PATCH 00/14] BSD portability (Meson, ANV, RADV, VC4/5, SWR)

Greg V greg at unrelenting.technology
Sun Dec 31 16:55:14 UTC 2017


Hello everyone and happy new year! :)

This set of patches makes the Meson build work on FreeBSD, including 
RADV, ANV, wayland-egl, VAAPI, VDPAU.

I also managed to get SWR working, but I haven't included the CPU 
topology detection code in here. CPU topology is exposed as XML on 
FreeBSD, so my implementation uses TinyXML2, which is a new dependency.
And I couldn't even figure out how to link to it with all the libtool
stuff. Had to test it with LD_PRELOAD :D
This will be much easier to do with Meson.

Greg V (14):
  util: fix ElfW macro
  vc4, vc5: add ETIME fallback define
  radv: add ETIME fallback define
  anv: add ETIME fallback define
  anv: use POSIX sysconf to get memory info on non-glibc systems
  anv: remove unused Linux-specific include
  anv: FreeBSD support in the allocator
  meson: fix BSD build
  meson: do not redeclare pkg-config dependencies (yet)
  meson: handle LLVM 'x.x.xgit-revision' versions
  meson: fix missing dependencies
  swr: build on FreeBSD/DragonFlyBSD
  swr: fix clang 5 null cast warning
  meson: glsl: add missing nir header dependency

 meson.build                                        | 74 ++++++++++++----------
 src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c      |  3 +
 src/compiler/glsl/meson.build                      |  2 +-
 src/gallium/drivers/radeonsi/meson.build           |  2 +-
 src/gallium/drivers/swr/rasterizer/common/os.h     |  3 +-
 .../drivers/swr/rasterizer/core/threads.cpp        |  4 +-
 .../swr/rasterizer/memory/TilingFunctions.h        |  6 +-
 src/gallium/drivers/swr/swr_fence.cpp              |  2 +
 src/gallium/drivers/vc4/vc4_bufmgr.c               |  4 ++
 src/gallium/drivers/vc5/vc5_bufmgr.c               |  4 ++
 src/intel/vulkan/anv_allocator.c                   | 56 ++++++++++++++++
 src/intel/vulkan/anv_device.c                      | 11 ++++
 src/intel/vulkan/anv_gem.c                         |  4 ++
 src/intel/vulkan/anv_queue.c                       |  5 +-
 src/mesa/meson.build                               |  1 +
 src/util/build_id.c                                |  6 +-
 16 files changed, 144 insertions(+), 43 deletions(-)

-- 
2.15.1



More information about the mesa-dev mailing list