Vulkan 无法工作

Vulkan 无法工作

我有一台 AMD FX CPU Nvidia GTX 650 ti,最新版 ubuntu 17.10 带有 384.90 nvidia 驱动程序。

当我尝试在 Vulkan 下运行《战争黎明 III》时收到以下错误消息:

ubuntu 所需的 Vulkan 扩展 VK_KHR_surface 不可用

Vulkaninfo输出:

===========
VULKAN INFO
===========

Vulkan API Version: 1.0.61

INFO: [loader] Code 0 : Found manifest file /home/papajo/.local/share/vulkan/implicit_layer.d/steamoverlay_i386.json, version "1.0.0"
INFO: [loader] Code 0 : Found manifest file /home/papajo/.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/nvidia_icd.json, version "1.0.0"
ERROR: [loader] Code 0 : loader_scanned_icd_add: Attempt to retrieve either 'vkGetInstanceProcAddr' or 'vk_icdGetInstanceProcAddr' from ICD libGL.so.1 failed.
Cannot create Vulkan instance.
/build/vulkan-L06RNr/vulkan-1.0.61.1+dfsg1/demos/vulkaninfo.c:704: failed with VK_ERROR_INCOMPATIBLE_DRIVER

输出hwinfo --gfxcard为:

33: PCI 100.0: 0300 VGA compatible controller (VGA)             
  [Created at pci.378]
  Unique ID: VCu0.Q5LVSWQ7Z_D
  Parent ID: _Znp.+7g4VeAizS0
  SysFS ID: /devices/pci0000:00/0000:00:02.0/0000:01:00.0
  SysFS BusID: 0000:01:00.0
  Hardware Class: graphics card
  Model: "nVidia GK106 [GeForce GTX 650 Ti]"
  Vendor: pci 0x10de "nVidia Corporation"
  Device: pci 0x11c6 "GK106 [GeForce GTX 650 Ti]"
  SubVendor: pci 0x1569 "Palit Microsystems Inc."
  SubDevice: pci 0x11c6 
  Revision: 0xa1
  Driver: "nvidia"
  Driver Modules: "nvidia"
  Memory Range: 0xfd000000-0xfdffffff (rw,non-prefetchable)
  Memory Range: 0xf0000000-0xf7ffffff (ro,non-prefetchable)
  Memory Range: 0xf8000000-0xf9ffffff (ro,non-prefetchable)
  I/O Ports: 0xe000-0xe07f (rw)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 30 (4525840 events)
  Module Alias: "pci:v000010DEd000011C6sv00001569sd000011C6bc03sc00i00"
  Driver Info #0:
    Driver Status: nvidiafb is not active
    Driver Activation Cmd: "modprobe nvidiafb"
  Driver Info #1:
    Driver Status: nouveau is not active
    Driver Activation Cmd: "modprobe nouveau"
  Driver Info #2:
    Driver Status: nvidia_384_drm is not active
    Driver Activation Cmd: "modprobe nvidia_384_drm"
  Driver Info #3:
    Driver Status: nvidia_384 is not active
    Driver Activation Cmd: "modprobe nvidia_384"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #19 (PCI bridge)

Primary display adapter: #33

答案1

如果您正在使用图形 PPA,请验证您是否强制使用其软件包版本。我在升级到 17.10 后遇到了类似的问题。运行 vulkaninfo 以验证您的加载程序是否“良好”。

购电协议(PPA): https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

您的 /usr/share/vulkan/icd.d/nvidia_icd.json 应该看起来像这样:

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGLX_nvidia.so.0",
        "api_version" : "1.0.49"
    }
}

根据你的输出,你可能会得到类似这样的结果:

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGL.so.1",
        "api_version" : "1.0.49"
    }
}

相关内容