Hi, thanks to
Raffeale I managed to get my Enlightenment session to work with OpenGL + Tearfree rendering.
BUT! There was a couple things wrong with the Device entry in the suggested Xorg conf file. The DRI option expects an integer, the boolean "True" will be rejected. The integer should be either 2 or 3, referring to DRI2 or DRI3, the later being the default. I found that 3 did not work, but 2 does. Also, the MigrationHeuristic option is not supported, perhaps it's depracated, or amdgpu does not use it.
With no Xorg hint file, Enlightenment would work with no GPU accelerattion (Software instead of OpenGL). But it would leave me with a black screen and just the cursor once rendering engine was set to OpenGL and Tearfree was turned on in Settings->Look->Compositor->Rendering.
I have a Radeon RX 550 (4GT LP OC with 4GB GDDR5), by MSI.
I'm running FreeBSD 12.2-RELEASE.
The drm-kmod in 12.2 was not good enough and the screen would go blank on boot, not even console was working. So I downloaded the
drm-v5.0-fbsd12.1 tree from Github, used unzip to extract it,
cd
into the source directory and ran
make
. When it failed with errors, I removed the functions from source file mentioned in compiler error message (all were .h files I think) and ran
make
again. After successful build, remove existing drm-kmod packages with
pkg remove drm-fbsd12.0-kmod
, then run
make install clean
.
Then add a Xorg hint file:
Code:
$EDITOR /usr/local/etc/X11/xorg.conf.d/10-amdgpu.conf
Code:
Section "Device"
Identifier "Radeon RX 550"
VendorName "AMD/ATI"
Driver "amdgpu"
BusID "PCI:1:0:0"
Option "TearFree" "On"
Option "DRI" "2"
Option "AccelMethod" "exa"
EndSection
And of course add
kld_list="/boot/modules/amdgpu.ko"
to
/etc/rc.conf.
Enlightenment works well, I can play Youtube at 1080p also works well, I can play a 4K mpeg4 video in SMPlayer which works really well (no noticeable tearing). Why are we moving to Wayland again.... (scratches head). And of course 4K video playback was why I bought this card in the first place. So now I can replace my Ubuntu 18.04 installation on my Mediacentre PC (KODI) with FreeBSD on my home file server / router. So two always running systems in my living room down to one. Sweet!
Huge thanks to all the FreeBSD devs that have worked so hard on the graphics stack (drm/kmod etc.) over the last few years. Living the dream!