Bug 250304 - graphics/mesa-*: install Vulkan layers
Summary: graphics/mesa-*: install Vulkan layers
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2020-10-12 19:27 UTC by Jan Beich
Modified: 2020-10-12 19:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.