[devel] Q: libGL* transition to GLVND

Konstantin Lepikhov lakostis на altlinux.org
Пт Июн 2 01:25:19 MSK 2017


<skip>
> > Section "OutputClass"
> > 	Identifier "nvidia"
> > 	MatchDriver "nvidia-drm"
> > 	Driver "nvidia"
> > 	Option "AllowEmptyInitialConfiguration"
> > 	Option "PrimaryGPU" "yes"
> > 	ModulePath "/usr/lib64/X11/nvidia"
> > EndSection
> Чтобы это работало, еще нужно обновить xorg-server. Попробую его тоже
> собрать.
Да, работает:

$ cat /etc/X11/xorg.conf.d/10-nvidia.conf
Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "PrimaryGPU" "yes"
	Option "ConnectToAcpid" "0"
	ModulePath "/usr/lib64/X11/nvidia"
EndSection

И выдержка из /var/log/Xorg.0.log
...
[  1199.204] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  1199.204] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1199.204] (==) No Layout section.  Using the first Screen section.
[  1199.204] (==) No screen section available. Using defaults.
[  1199.204] (**) |-->Screen "Default Screen Section" (0)
[  1199.204] (**) |   |-->Monitor "<default monitor>"
[  1199.204] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[  1199.204] (==) Automatically adding devices
[  1199.204] (==) Automatically enabling devices
[  1199.204] (==) Automatically adding GPU devices
[  1199.204] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1199.204] (==) FontPath set to:
	catalogue:/etc/X11/fontpath.d
[  1199.204] (==) ModulePath set to "/usr/lib64/X11/modules"
...
[  1199.205] (II) xfree86: Adding drm device (/dev/dri/card0)
[  1199.205] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib64/X11/nvidia,/usr/lib64/X11/modules"
[  1199.205] (**) OutputClass "nvidia" setting /dev/dri/card0 as PrimaryGPU
[  1199.206] (--) PCI:*(0:1:0:0) 10de:1c03:0000:0000 rev 161, Mem @ 0xfd000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/131072
[  1199.206] (II) LoadModule: "glx"
[  1199.252] (II) Loading /usr/lib64/X11/nvidia/libglx.so
[  1199.602] (II) Module glx: vendor="NVIDIA Corporation"
[  1199.602] 	compiled for 4.0.2, module version = 1.0.0
[  1199.602] 	Module class: X.Org Server Extension
[  1199.616] (II) NVIDIA GLX Module  381.22  Thu May  4 00:17:15 PDT 2017
[  1199.636] (II) Applying OutputClass "nvidia" to /dev/dri/card0
[  1199.636] 	loading driver: nvidia
[  1199.636] (==) Matched nvidia as autoconfigured driver 0
[  1199.636] (==) Matched nouveau as autoconfigured driver 1
[  1199.636] (==) Matched nv as autoconfigured driver 2
[  1199.636] (==) Matched nouveau as autoconfigured driver 3
[  1199.636] (==) Matched nv as autoconfigured driver 4
[  1199.636] (==) Matched modesetting as autoconfigured driver 5
[  1199.636] (==) Matched fbdev as autoconfigured driver 6
[  1199.637] (==) Matched vesa as autoconfigured driver 7
[  1199.637] (==) Assigned the driver to the xf86ConfigLayout
[  1199.637] (II) LoadModule: "nvidia"
[  1199.637] (II) Loading /usr/lib64/X11/modules/drivers/nvidia_drv.so
[  1199.700] (II) Module nvidia: vendor="NVIDIA Corporation"
...

Патченный xorg лежит тут - http://git.altlinux.org/people/lakostis/packages/?p=xorg-server.git;a=shortlog;h=refs/heads/server-1.19/glvnd

Также могу пересобрать livecd чтобы проверить работу с несколькими GPU.

-- 
WBR et al.


Подробная информация о списке рассылки Devel