如何安装英特尔图形驱动程序以在 Ubuntu 16.04 上使用 vulkan

r0n*_*0ng 8 intel drivers vulkan

环境:

Ubuntu 16.04 LTS。该机采用Intel iris Pro Graphics 580(Skylake GT4e)图形处理器。

火神:1.0.21.1

问题,我安装了Vulkan 1.x SDK,并尝试运行cube示例。我得到的错误信息是:

./cube
vkEnumerateInstanceExtensionProperties failed to find the VK_KHR_surface extension.

Do you have a compatible Vulkan installable client driver (ICD) installed?
Please look at the Getting Started guide for additional information.
Run Code Online (Sandbox Code Playgroud)

安装 mesa-util 后,我收到以下错误消息:

FINISHME: Get correct values for VkPhysicalDeviceLimits
vulkan: No DRI3 support
Could not find a graphics and a present queue
Run Code Online (Sandbox Code Playgroud)

我试过的解决方案:

  1. https://gist.github.com/SaschaWillems/47be6970a3e99a3d30e1(我使用了 Mesa 12.01 而不是 Mesa master,但我认为 12.01 已经足够了。)

  2. https://launchpad.net/~canonical-x/+archive/ubuntu/vulkan安装包后仍然无法运行cube示例。

知道如何在英特尔 GPU 上运行 vulkan 吗?

小智 6

我最近遇到了同样的问题。按照你提到的两个步骤之后,这最后一步允许我运行立方体演示,尽管我不知道它是否有任何功率或性能影响。

  • 版本:Ubuntu 16.04 LTS
  • 显卡:Intel(R) HD Graphics 520 (Skylake GT2) (system76 lemur)

根据Vulkan 设置教程,DRI3 代表“直接渲染基础设施 3;用于直接渲染的 Linux X-Windows 扩展

我能够通过按照此询问 并将以下几行添加到/etc/X11/xorg.conf(该文件在我的机器上不存在,但我添加它没有问题)来启用它

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "SwapBuffersWait" "0"
    Option      "DRI" "3"
EndSection
Run Code Online (Sandbox Code Playgroud)

然后重新启动您的显示管理器sudo service lightdm restart(或类似,如果您更改了它),您应该能够运行演示!