無法使用 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

LSPCI | 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.log: https://pastebin.com/xfwZ1ii2

請幫我解決這個問題

UPD:我取代了我的 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

相關內容