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: 2023-11-21 15:26 UTC (History)
4 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 freebsd_triage 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.
Comment 1 Jan Beich freebsd_committer freebsd_triage 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 freebsd_triage 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
Comment 3 Emmanuel Vadot freebsd_committer freebsd_triage 2023-11-21 15:26:42 UTC
Please provide a patch if you want this.