Created attachment 211824 [details] Add DRI3/glamor support portlint: ok. (1 warning) testport: ok. 12amd64 With the advent of 1.20.x x11-server/xorg-server xorgxrdp can support dri3/glamor [1] to enable hardware supported OpenGL acceleration with an xorgxrdp desktop. Updating xorgxrdp's xorg.conf [2] and adding the user to the video group. [1] https://github.com/neutrinolabs/xrdp/issues/1029 [2] https://github.com/neutrinolabs/xorgxrdp/blob/devel/xrdpdev/xorg.conf#L47
Thank. Did you confirm if OpenGL acceleration actually working?
I have and it is. ... [171166.288] (II) XRDPDEV(0): glamor X acceleration enabled on Mesa DRI Intel(R) Sandybridge Server ... Get about a 40% increased score when compared with llvmpipe using webgl benchmark in Firefox https://beta.unity3d.com/jonas/benchmark2015/
Great, thanks!
BTW, where's the part of modifying xorg.conf?
Created attachment 211952 [details] Xorg.10.log Hmm, I finally got accelerated desktop via xrdp. > [1226780.024] (II) XRDPDEV(0): glamor X acceleration enabled on Mesa DRI Intel(R) Ivybridge Desktop
The benchmark score is... WITH ACCEL: 47552 NO ACCEL: 34963 about 40% faster as well as you.
The change to the xorgxrdp xorg.conf could be dependent on the env. /dev/dri/ might have card0, renderD128, etc... I was just stating from comment #1 that a couple extra steps were needed that maybe the port shouldn't handle? Adding the user to the video group and maybe updating DRMDevice. The upstream xorg.conf [1] should work out of the box but it's possible that DRMDevice would need to be changed. [1] https://github.com/neutrinolabs/xorgxrdp/blob/devel/xrdpdev/xorg.conf#L47
(In reply to Derek Schrock from comment #7) Okay, I'll mention that in pkg-message. DRMDevice is /dev/dri/card0 for me so I needed to change it. What about you?
card0 for me too.
I'm thinking of pkg-message like the following. > xorgxrdp supports hardware acceleration as well as usual xorg-server. > To configure hardware acceleration, follow the following steps. > > 1. Install drm-kmod > # pkg install drm-kmod > > 2. Configure to load kernel module (either one of the following) > # sysrc kld_list="/boot/modules/i915kms.ko" > # sysrc kld_list="/boot/modules/amdgpu.ko" > # sysrc kld_list="/boot/modules/radeonkms.ko" > > 3. Ensure users who login via xrdp are member of the "video" group > # pw groupmod video -m username|| pw groupmod wheel -m username > > 4. Edit /etc/X11/xrdp/xorg.conf to fit your environment > /dev/dri/renderD128 might be different depending on your environment. > Find the following line and change it to the actual path. > Option "DRMDevice" "/dev/dri/renderD128" > > 5. Restart your system and login via xrdp > > See also the Wiki page for detailed instructions: > https://wiki.freebsd.org/Graphics#Hardware_Support > > > If hardware acceleration is properly configured, you will see logs like the > following in ~/.local/share/xorg/Xorg.10.log. 10 can be replaced with display > number. > > "glamor X acceleration enabled on Mesa DRI Intel(R) Ivybridge Desktop"
Looks good to me.
A commit references this bug: Author: meta Date: Thu Feb 27 04:14:26 UTC 2020 New revision: 527235 URL: https://svnweb.freebsd.org/changeset/ports/527235 Log: x11-drivers/xorgxrdp: enable DRI3/glamor support With the advent of 1.20.x x11-server/xorg-server xorgxrdp can support dri3/glamor [1] to enable hardware supported OpenGL acceleration with an xorgxrdp desktop. Also add pkg-message to explain how to enable hardware acceleration. While here, fix misuse of "-I" flag to specify LIBDIR. [1] https://github.com/neutrinolabs/xrdp/issues/1029 PR: 244298 Submitted by: Derek Schrock <dereks@lifeofadishwasher.com> (initial revision) Approved by: meta (myself, maintainer) Sponsored by: HAW International Changes: head/x11-drivers/xorgxrdp/Makefile head/x11-drivers/xorgxrdp/files/ head/x11-drivers/xorgxrdp/files/pkg-message.in
Committed, thanks for your support!
A commit references this bug: Author: meta Date: Sat Feb 29 07:20:50 UTC 2020 New revision: 527400 URL: https://svnweb.freebsd.org/changeset/ports/527400 Log: x11-drivers/xorgxrdp: disable DRI3 option by default because it is not very stable right now. Sometimes VLC causes coredump, sometimes Xorg server hangs up. PR: 244298 Changes: head/x11-drivers/xorgxrdp/Makefile