Bug 250304

Summary: graphics/mesa-*: install Vulkan layers
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: New ---    
Severity: Affects Only Me CC: greg, x11
Priority: --- Keywords: needs-patch
Version: Latest   
Hardware: Any   
OS: Any   

Description Jan Beich freebsd_committer 2020-10-12 19:27:12 UTC
meson_options.txt has
  - vulkan-overlay-layer since Mesa 19.1, see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/139
  - vulkan-device-select-layer since Mesa 20.1, see https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1766

Example usage:
  $ pkg install mesa-dri mesa-devel # workaround until this bug is fixed
  $ pkg install vulkan-tools
  $ VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay vkcube-xcb

New files:
  bin/mesa-overlay-control.py
  lib/libVkLayer_MESA_device_select.so
  lib/libVkLayer_MESA_overlay.so
  share/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json
  share/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json

Dependencies not in mesa-dri/Makefile.common:
  -Dvulkan-overlay-layer=true requires glslangValidator from devel/glslang
  -Dvulkan-device-select-layer=true optionally requires graphics/wayland and graphics/wayland-protocols

Note, mesa-devel already includes Vulkan layers, so prepend %%NO_COINST%% in pkg-plist to avoid conflict.