Bug 253746 - x11-wm/mutter: Freezes on AMD GPU's with DRI3
Summary: x11-wm/mutter: Freezes on AMD GPU's with DRI3
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gnome (Nobody)
Depends on:
Reported: 2021-02-21 18:02 UTC by Alexander Vereeken
Modified: 2022-08-06 12:45 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Note You need to log in before you can comment on or make changes to this bug.
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 .
Comment 9 Alexander Vereeken 2022-04-02 13:36:30 UTC
I can confirm that enlightenment is not longer affected since the update 0.25.3.
Comment 10 Graham Perrin 2022-07-15 01:23:13 UTC
<https://www.freebsd.org/gnome/> is much improved by <https://reviews.freebsd.org/D35587>. 


> GNOME, MATE, and Cinnamon for FreeBSD are currently fully supported.

IMHO the page will benefit from a mention of the bugs(s) that affect AMD. Thoughts? 

See also: bug 257810
Comment 11 Graham Perrin 2022-08-06 12:45:27 UTC

amdgpu no hw acceleration on gnome3 ?? - workaround amdgpu disable DRI3 in xorg.conf and switch to DRI2 · Issue #72 · freebsd/drm-kmod