Bug 253746

Summary: x11-wm/mutter and x11-wm/enlightenment: Freezes on AMD GPU's with DRI3
Product: Ports & Packages Reporter: Alexander Vereeken <Alexander88207>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: New ---    
Severity: Affects Some People CC: bpurgar, enlightenment, grahamperrin, x11
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255049

Description Alexander Vereeken 2021-02-21 18:02:45 UTC

when i try to start GNOME using an AMD RX 570 then it freezes directly at start. 
But if i tell Xorg to use the scfb driver (Software Rendering) then it works.

Tested with xf86-video-amdgpu and the modesetting driver from package + using drm-kmod from ports with FreeBSD 12.2-STABLE r369250.
Comment 1 Alexander Vereeken 2021-02-21 18:09:18 UTC
Its a x11-wm/mutter issue. When i try to use mutter standalone i have the same issue.
Comment 2 bpurgar 2021-04-20 10:13:20 UTC

Have same problem on 13-Release and 14-current.
Comment 3 bpurgar 2021-04-27 11:59:28 UTC
I manage to find workround for this problem .. by default xorg use DRI3 as default dri and disabling this and manualy specific to use DRI2 fix problem loading gnome3 and lags/freezes.
Comment 4 Alexander Vereeken 2021-04-27 16:24:58 UTC
I can confirm this too, thank you!

This also works for Cinnamon.
Comment 5 bpurgar 2021-04-27 21:45:48 UTC
Maybe this helps developer to track problem with amdgpu/gnome3 and DRI3.

Comment 6 Alexander Vereeken 2021-05-01 22:06:28 UTC
The problem also seems to occur with x11-wm/enlightenment. If i want to use the hardware acceleration i must also use DRI2 otherwise i have only a black image with a cursor.
Comment 7 Jan Beich freebsd_committer 2021-05-02 02:21:04 UTC
Could be similar to bug 251836 i.e., both iris and radeonsi use Gallium. Check if disabling GLX_EXT_buffer_age while keeping DRI3 enabled helps. For example, remove <device> and <application> guards in /usr/local/share/drirc.d/01-freebsd.conf then restart Xorg.
Comment 8 bpurgar 2021-05-02 06:17:56 UTC
Tried .. no difference at all same problem when DRI3 on .