Skip to content

Commit

Permalink
media-libs/mesa: Add vulkan-overlay-layer support to mesa-9999
Browse files Browse the repository at this point in the history
This adds the vulkan-overlay-layer to the mesa-9999 ebuild

It can be enabled with:

VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay <program>

More help on how to use it can be found with:

VK_LAYER_MESA_OVERLAY_STATS=help

Signed-off-by: Mike Lothian <[email protected]>
Signed-off-by: Matt Turner <[email protected]>
  • Loading branch information
FireBurn authored and mattst88 committed Mar 4, 2019
1 parent 62b13b4 commit af3182c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion media-libs/mesa/mesa-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ done
IUSE="${IUSE_VIDEO_CARDS}
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +libglvnd +llvm
lm_sensors opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind
vdpau vulkan wayland xa xvmc"
vdpau vulkan vulkan-overlay wayland xa xvmc"

REQUIRED_USE="
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
Expand All @@ -47,6 +47,7 @@ REQUIRED_USE="
vulkan? ( dri3
|| ( video_cards_i965 video_cards_radeonsi )
video_cards_radeonsi? ( llvm ) )
vulkan-overlay? ( vulkan )
wayland? ( egl gbm )
video_cards_freedreno? ( gallium )
video_cards_intel? ( classic )
Expand Down Expand Up @@ -216,6 +217,7 @@ DEPEND="${RDEPEND}
sys-devel/gettext
virtual/pkgconfig
valgrind? ( dev-util/valgrind )
vulkan-overlay? ( media-libs/vulkan-layers[${MULTILIB_USEDEP}] )
x11-base/xorg-proto
x11-libs/libXrandr[${MULTILIB_USEDEP}]
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
Expand Down Expand Up @@ -472,6 +474,7 @@ multilib_src_configure() {
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
$(meson_use vulkan-overlay vulkan-overlay-layer)
--buildtype $(usex debug debug plain)
-Db_ndebug=$(usex debug false true)
)
Expand Down
1 change: 1 addition & 0 deletions media-libs/mesa/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<flag name="valgrind">Compile in valgrind memory hints</flag>
<flag name="vdpau">Enable the VDPAU acceleration interface for the Gallium3D Video Layer.</flag>
<flag name="vulkan">Enable Vulkan drivers</flag>
<flag name="vulkan-overlay">Enable vulkan-overlay-layer for vulkan stats"</flag>
<flag name="wayland">Enable support for dev-libs/wayland</flag>
<flag name="xa">Enable the XA (X Acceleration) API for Gallium3D.</flag>
<flag name="xvmc">Enable the XvMC acceleration interface for the Gallium3D Video Layer.</flag>
Expand Down

0 comments on commit af3182c

Please sign in to comment.