How to check if Vulkan is working properly on nvidia?

So I want to play Veloren. Veloren use vulkan by default.
But when I start Veloren, it show black screen with music.

Dev suggest that vulkan probably not properly install or run on my system.
How do I check if vulkan is properly configured on my system?


Operating System: openSUSE Tumbleweed 20210908
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.14.0-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 4600H with Radeon Graphics
Memory: 7.1 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2

[FONT=monospace]sudo zypper se vulkan | grep i+ 
**i+** | libgstvulkan-1_0-0                 | GStreamer Streaming-Media Framework Plug-Ins                           | package 
**i+** | libvulkan1                         | The Vulkan 3D graphics and compute API                                 | package 
**i+** | libvulkan1-32bit                   | The Vulkan 3D graphics and compute API                                 | package 
**i+** | libvulkan_intel                    | Mesa vulkan driver for Intel GPU                                       | package 
**i+** | libvulkan_intel-32bit              | Mesa vulkan driver for Intel GPU                                       | package 
**i+** | libvulkan_radeon                   | Mesa vulkan driver for AMD GPU                                         | package 
**i+** | libvulkan_radeon-32bit             | Mesa vulkan driver for AMD GPU                                         | package 
**i+** | vulkan-devel                       | Vulkan development package                                             | package 
**i+** | vulkan-headers                     | Vulkan C and C++ API header files                                      | package 
**i+** | vulkan-tools                       | Diagnostic utilities for Vulkan                                        | package
[/FONT]
sudo zypper se nvidia | grep i+       
**i+** | dkms-nvidia                          | Installer for the nVidia graphics driver kernel modules                       | package 
**i+** | kernel-firmware-nvidia               | Kernel firmware files for Nvidia Tegra and graphics drivers                   | package 
**i+** | libnvidia-egl-wayland1               | The EGLStream-based Wayland external platform                                 | package 
**i+** | nvidia-computeG05                    | NVIDIA driver for computing with GPGPU                                        | package 
**i+** | nvidia-gfxG05-kmp-default            | NVIDIA graphics driver kernel module for GeForce 600 series and newer         | package 
**i+** | nvidia-glG05                         | NVIDIA OpenGL libraries for OpenGL acceleration                               | package 
**i+** | x11-video-nvidiaG05                  | NVIDIA graphics driver for GeForce 600 series and newer                       | package


vkcube 
Selected GPU 1: NVIDIA GeForce GTX 1650 Ti, type: 2


vulkaninfo --summary 
========== 
VULKANINFO 
========== 

Vulkan Instance Version: 1.2.189 


Instance Extensions: count = 19 
------------------------------- 
VK_EXT_acquire_drm_display             : extension revision 1 
VK_EXT_acquire_xlib_display            : extension revision 1 
VK_EXT_debug_report                    : extension revision 9 
VK_EXT_debug_utils                     : extension revision 2 
VK_EXT_direct_mode_display             : extension revision 1 
VK_EXT_display_surface_counter         : extension revision 1 
VK_KHR_device_group_creation           : extension revision 1 
VK_KHR_display                         : extension revision 23 
VK_KHR_external_fence_capabilities     : extension revision 1 
VK_KHR_external_memory_capabilities    : extension revision 1 
VK_KHR_external_semaphore_capabilities : extension revision 1 
VK_KHR_get_display_properties2         : extension revision 1 
VK_KHR_get_physical_device_properties2 : extension revision 2 
VK_KHR_get_surface_capabilities2       : extension revision 1 
VK_KHR_surface                         : extension revision 25 
VK_KHR_surface_protected_capabilities  : extension revision 1 
VK_KHR_wayland_surface                 : extension revision 6 
VK_KHR_xcb_surface                     : extension revision 6 
VK_KHR_xlib_surface                    : extension revision 6 

Instance Layers: count = 7 
-------------------------- 
VK_LAYER_MANGOHUD_overlay         Vulkan Hud Overlay           1.2.135  version 1 
VK_LAYER_NV_optimus               NVIDIA Optimus layer         1.2.175  version 1 
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.2.136  version 1 
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.2.136  version 1 
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.2.136  version 1 
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.2.136  version 1 
VK_LAYER_VKBASALT_post_processing a post processing layer      1.2.136  version 1 

Devices: 
======== 
GPU0: 
        apiVersion         = 4202678 (1.2.182) 
        driverVersion      = 88088577 (0x5402001) 
        vendorID           = 0x1002 
        deviceID           = 0x1636 
        deviceType         = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU 
        deviceName         = AMD RADV RENOIR 
        driverID           = DRIVER_ID_MESA_RADV 
        driverName         = radv 
        driverInfo         = Mesa 21.2.1 
        conformanceVersion = 1.2.3.0 
GPU1: 
        apiVersion         = 4202671 (1.2.175) 
        driverVersion      = 1972355136 (0x758fc040) 
        vendorID           = 0x10de 
        deviceID           = 0x1f95 
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU 
        deviceName         = NVIDIA GeForce GTX 1650 Ti 
        driverID           = DRIVER_ID_NVIDIA_PROPRIETARY 
        driverName         = NVIDIA 
        driverInfo         = 470.63.01 
        conformanceVersion = 1.2.6.0

Thanks

This appears to be an optimus notebook (Intel+NVIDIA GPUs) Are you using Bumblbee or susePrime to manage the hybrid GPUs??

Hi
It’s AMD and Nvidia… :wink:

I use switcherooctl here…


switcherooctl launch -g 0 vkcube {not actually needed for default gpu}
Selected GPU 0: AMD RADV POLARIS12, type: 2

switcherooctl launch -g 1 vkcube
Selected GPU 0: NVIDIA GeForce GT 1030, type: 2

Or


 __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia vkcube

Thanks for the help, but unfortunately, it does not work.

Veloren is black screen, I suspect Veloren have issue with the new nvidia driver 470.63.01 or Mesa.

I tried locking nvidia driver from updating, and update everything else, but when I reboot, I KDE Plasma does not start and only have terminal login screen.

Not sure why, but the kernel was update from 5.13 to 5.14 and plasma from 5.22.4 to 5.22.5 too, maybe nvidia driver 470.57.02 is not compatible with kernel 5.14 or plasma 5.22.5.

Does anyone know if nvidia driver 470.57.02 is actually broken with kernel 5.14 or new plasma?

Hi
I’m running the 470.63.01 driver (installed the hard way) on 5.14.0 kernel, no issues here (aside from the shutdown issue).

What is the command your using to launch veloren?

Tried version 0.10;

https://thumbs4.imagebam.com/3d/86/eb/ME3IWBS_t.png](ImageBam)

Hi,
I found out the work around.
I update everything, nvidia, kernel, mesa, libvulkan, etc.
Veloren show black screen on full screen, but when I press F11 to window mode, it work properly now.

When I resize the window of Veloren in window mode to be smaller and go to full screen in F11, it properly show Veloren in fullscreen.

I think it might be issue with veloren not properly understanding display size.

Anyway, thanks!