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)
Keywords: needs-patch
Depends on:
Reported: 2020-10-12 19:27 UTC by Jan Beich
Modified: 2022-06-23 16:10 UTC (History)
2 users (show)

See Also:


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:

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.
Comment 1 Jan Beich freebsd_committer 2022-02-25 10:49:23 UTC
Ping. Vulkan overlay provides basic FPS counter and frame timing chart, similar to Gallium HUD. For non-basic there's benchmarks/mangohud.
Comment 2 Jan Beich freebsd_committer 2022-06-23 16:10:57 UTC
Ping. Note, mesa-dri needs to be updated to 22.0 or later (currently, the latest is 22.1.2) to avoid https://gitlab.freedesktop.org/mesa/mesa/-/issues/5602