git: 609b3b168f39 - main - games/veloren: document Vulkan is required after 04bc03fdd5c9

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 22 Feb 2022 00:06:57 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=609b3b168f392f5a36779fe4a33ce9d8ae4f5f46

commit 609b3b168f392f5a36779fe4a33ce9d8ae4f5f46
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-02-21 23:52:13 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-02-22 00:06:41 +0000

    games/veloren: document Vulkan is required after 04bc03fdd5c9
    
    In X11-only setups it's still common to have mesa-dri but not vulkan-loader.
    However, Veloren defaults to Vulkan on Linux/BSD:
    
      PanicInfo: panicked at 'Failed to select a rendering backend! No compatible backends were found. We currently support vulkan, metal, dx12, and dx11. Installing or updating vulkan drivers may resolve this issue. If the issue persists, please include the operating system and GPU details in your bug report to help us identify the cause.', voxygen/src/main.rs:255:13
    
    Forcing OpenGL via WGPU_BACKEND=opengl is still broken:
    
      PanicInfo: panicked at 'Error in Adapter::request_device: unsupported features were requested: DEPTH_CLAMPING | ADDRESS_MODE_CLAMP_TO_BORDER', .../wgpu-a92b854/wgpu/src/backend/direct.rs:113:9
    
    See also https://veloren.net/devblog-125/
---
 games/veloren/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/games/veloren/Makefile b/games/veloren/Makefile
index 801385699e5b..d5a013392478 100644
--- a/games/veloren/Makefile
+++ b/games/veloren/Makefile
@@ -19,7 +19,8 @@ BUILD_DEPENDS=	glslang>0:graphics/glslang \
 		spirv-tools>0:graphics/spirv-tools \
 		libxkbcommon>0:x11/libxkbcommon
 LIB_DEPENDS=	libasound.so:audio/alsa-lib
-RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins
+RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
+		${LOCALBASE}/lib/libvulkan.so:graphics/vulkan-loader
 
 USES=		cargo python:3.4+,build xorg
 USE_XORG=	xcb