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

Greg V greg at unrelenting.technology
Thu Jan 18 22:54:41 UTC 2018


Rebased, updated and improved patches.

Now with util headers for anonymous fds (memfd/SHM_ANON/mkostemp) and 
physical memory size, reducing code duplication across the codebase.

A few other meson patches were sent as 
https://patchwork.freedesktop.org/series/36714/

Greg V (5):
  meson: fix missing dependencies
  util: emulate futex on FreeBSD using umtx
  util: add anon_file.h for all memfd/temp file usage
  util: add phys_memory.h for all memory measurements
  anv: add MAP_POPULATE fallback define for portability

 src/egl/drivers/dri2/platform_wayland.c  | 116 +--------------------
 src/gallium/auxiliary/os/os_misc.c       |  60 -----------
 src/gallium/auxiliary/os/os_misc.h       |   9 +-
 src/gallium/drivers/radeonsi/meson.build |   2 +-
 src/intel/vulkan/anv_allocator.c         |  25 ++---
 src/intel/vulkan/anv_device.c            |  12 ++-
 src/intel/vulkan/anv_gem_stubs.c         |  15 +--
 src/mesa/drivers/dri/i915/intel_screen.c |   9 +-
 src/mesa/drivers/dri/i965/intel_screen.c |   9 +-
 src/mesa/drivers/dri/swrast/swrast.c     |  23 +----
 src/mesa/meson.build                     |   2 +-
 src/util/Makefile.sources                |   2 +
 src/util/anon_file.h                     | 169 +++++++++++++++++++++++++++++++
 src/util/futex.h                         |  22 ++++
 src/util/meson.build                     |   2 +
 src/util/phys_memory.h                   |  81 +++++++++++++++
 16 files changed, 306 insertions(+), 252 deletions(-)
 create mode 100644 src/util/anon_file.h
 create mode 100644 src/util/phys_memory.h

-- 
2.15.1



More information about the mesa-dev mailing list