自动检查是否支持 Vulkan

自动检查是否支持 Vulkan

如果我的 GPU 是否兼容 Vulkan,Ubuntu 是否可以检查并给出明确的消息?

我花了很多时间来排除故障为什么 Vulkan 无法在我的系统上运行:

$ vulkaninfo
===========
VULKAN INFO
===========

Vulkan API Version: 1.0.61

INFO: [loader] Code 0 : Found manifest file /home/techtonik/.local/share/vulkan/implicit_layer.d/steamoverlay_i386.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/techtonik/.local/share/vulkan/implicit_layer.d/steamoverlay_x86_64.json, version "1.0.0"
INFO: [loader] Code 0 : Meta-layer VK_LAYER_LUNARG_standard_validation all 0 component layers appear to be valid.
INFO: [loader] Code 0 : Found ICD manifest file /usr/share//vulkan/icd.d/intel_icd.x86_64.json, version "1.0.0"
INFO: [loader] Code 0 : Found ICD manifest file /usr/share//vulkan/icd.d/nvidia_icd.json, version "1.0.0"
INFO: [loader] Code 0 : Found ICD manifest file /usr/share//vulkan/icd.d/radeon_icd.x86_64.json, version "1.0.0"

Instance Extensions:
====================
Instance Extensions count = 15
    VK_KHR_external_memory_capabilities : extension revision  1
    VK_KHR_get_physical_device_properties2: extension revision  1
    VK_KHR_get_surface_capabilities2    : extension revision  1
    VK_KHR_surface                      : extension revision 25
    VK_KHR_wayland_surface              : extension revision  6
    VK_KHR_xcb_surface                  : extension revision  6
    VK_KHR_xlib_surface                 : extension revision  6
    VK_EXT_acquire_xlib_display         : extension revision  1
    VK_EXT_debug_report                 : extension revision  8
    VK_EXT_direct_mode_display          : extension revision  1
    VK_EXT_display_surface_counter      : extension revision  1
    VK_KHR_display                      : extension revision 21
    VK_KHX_device_group_creation        : extension revision  1
    VK_KHR_external_fence_capabilities  : extension revision  1
    VK_KHR_external_semaphore_capabilities: extension revision  1
/build/vulkan-L06RNr/vulkan-1.0.61.1+dfsg1/demos/vulkaninfo.c:1722: failed with VK_ERROR_INITIALIZATION_FAILED

我安装了 NVIDIA GT 520 的最新驱动程序,但几个小时后,我发现我的 GPU 不在支持技术列表中https://developer.nvidia.com/vulkan-driver

我以为 Ubuntu 会警告我不支持我的 GPU。为什么没有发生这种情况?是否可以在系统级别进行此类检查?如果不行,那么是否可以制定一个协议,让供应商至少提供带有说明的显卡列表?

相关内容