/dev/dri/ missing, AMD Ryzen 5 3400G (Radeon RX Vega 11)

Hello,

I’ve been trying to get hardware acceleration working on my TrueNAS core machine, but just can’t seem to get past this hurdle. I have an AMD Ryzen 5 3400G CPU with Radeon RX Vega 11 integrated graphics. The /dev/dri/ directory does not exist for me.

lspci shows
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev c8)

I can run kldload /boot/modules/radeonkms.ko to load the module.

kldstat shows

33    1 0xffffffff83d3a000   151c80 radeonkms.ko
34    2 0xffffffff8394c000    72bd8 drm.ko

however no dri directory.

Am not very experienced with BSD, any help would be appreciated.

Running TrueNAS-13.3-RELEASE

For extra context, I did see this thread:

I am already using drm-510-kmod; if I am missing some kind of firmware, I don’t know how to find the right one for my CPU.

You need amdgpu.ko, not radeonkms.ko.
Add kld_list=‘amdgpu’ to /etc/rc.conf.

Wow I can’t believe that’s all it took. Everything I saw seemed to suggest I needed the Radeon module.

Thanks!

Follow up question - any advice on getting VA-API hardware acceleration to work inside a jail? I’ve exposed dev/drm and dev/dri, but not sure if I need to install/configure anything else; libva in installed (libva-2.21.0).

Attempting to use ffmpeg with hwaccel gives:

Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
No device available for decoder: device type vaapi needed for codec h264.

Installing libva-utils and running vainfo --display drm is giving me

Trying display: drm
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/local/lib/dri/radeonsi_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit