[Bug 266745] Linuxulator: X11 GL_RENDERER reverts to llvmpipe after waking from suspend

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 01 Oct 2022 21:51:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266745

            Bug ID: 266745
           Summary: Linuxulator: X11 GL_RENDERER reverts to llvmpipe after
                    waking from suspend
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: hunter2k1@disroot.org
                CC: iwtcex@gmail.com
                CC: iwtcex@gmail.com
             Flags: maintainer-feedback?(iwtcex@gmail.com)

On my system using an AMD RX 580 GPU, X.Org applications running inside the
linux-c7 environment will be accelerated by the graphics card until waking up
from suspend which changes the GL Renderer to llvmpipe.

I caught this when I noticed games running via games/linux-steam-utils would be
extremely slow and choppy after a suspend. Logging out and logging back in
(restarting X) fixes it until another suspend.

Steps to reproduce:
* Have the linux-c7 metaport as well as drm-510-kmod, xf86-video-amdgpu, and
gpu-firmware-amd-kmod-polaris10
* Make sure the Linuxulator points are mounted and running, I used the same
mount parameters as the Handbook section
* Run /compat/linux/bin/glxgears -info and look for GL_RENDERER which should
show the proper AMD card being used for acceleration
* Suspend with zzz
* Wake the system and run /compat/linux/bin/glxgears -info again which will now
show the GL_RENDERER is llvmpipe

-- 
You are receiving this mail because:
You are the assignee for the bug.