我正在构建 Vulkan 驱动程序这里来自 15.10 的源代码。到目前为止,它似乎适用于几个简单示例,但此处提到它需要启用 DRI3:“英特尔驱动程序需要 DRI3,因此要么通过 xorg.conf 启用它,要么删除 intel_drv.so 并使用模式设置驱动程序”。我不知道该怎么做。
我确实尝试添加/etc/X11/xorg.conf
此部分:
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "DRI" "3"
EndSection
但重新启动时我的/var/log/Xorg.0.log
DRI3 没有引用,但有几处引用了 DRI2:
[ 4.059] (II) glamor: EGL version 1.4 (DRI2):
[ 4.064] (II) Loading sub module "dri2"
[ 4.064] (II) LoadModule: "dri2"
[ 4.064] (II) Module "dri2" already built-in
[ 4.169] (II) modeset(0): [DRI2] Setup complete
[ 4.169] (II) modeset(0): [DRI2] DRI driver: i965
[ 4.169] (II) modeset(0): [DRI2] VDPAU driver: i965
[ 4.180] (II) GLX: Initialized DRI2 GL provider for screen 0
任何帮助,将不胜感激。
答案1
添加下面的代码/etc/X11/xorg.conf
对我有用:
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "SwapBuffersWait" "0"
Option "DRI" "3"
EndSection