无法使用 Vulkan 运行应用程序

无法使用 Vulkan 运行应用程序

我使用的是 Arch Linux,在上次更新后(我猜这与新版 mesa 移除旧驱动程序有关),我无法使用 vulkan 运行应用程序。当运行vkcube命令和 UI 立即关闭时,我得到了以下输出:

Selected GPU 0: Intel(R) Xe Graphics (TGL GT2), type: IntegratedGpu
vulkan: No DRI3 support detected - required for presentation
Note: you can probably enable DRI3 in your Xorg config
Could not find both graphics and present queues

linux - linux系统grep -iE“3d|vga|视频”:

0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)

猫/etc/X11/xorg.conf.d/20-intel.conf:

Section "Module"
  Load          "glx"
EndSection

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "modesetting"
    Option      "AccelMethod"           "glamor"
    Option      "DRI"                   "3"
    Option      "Backlight"             "intel_backlight"
EndSection

Xorg.0.日志: https://pastebin.com/xfwZ1ii2

请帮我解决这个问题

更新:我替换了我的 xorg 配置,现在 vulkan 工作正常。

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "DRI"    "3"
EndSection
EOF

答案1

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "DRI"    "3"
EndSection
EOF

相关内容