And so on. But nothing seem to be working in 13.3. Modules are loaded. But there is no /dev/dri on host.
root@truenas[/]# kldstat
Id Refs Address Size Name
28 1 0xffffffff85b3f000 15d588 i915kms.ko
29 1 0xffffffff85c9d000 80020 drm.ko
root@truenas[/]# pkg which /boot/modules/drm.ko
/boot/modules/drm.ko was installed by package drm-fbsd13-kmod-5.4.144.g20220223
root@truenas[/]# pkg which /boot/modules/i915kms.ko
/boot/modules/i915kms.ko was installed by package drm-fbsd13-kmod-5.4.144.g20220223
root@truenas[~]# ls /dev/dri
ls: /dev/dri: No such file or directory
And so inside the jail
root@ffmpeg:~ # vainfo --display drm
Trying display: drm
error: failed to initialize display 'drm'
root@ffmpeg:~ # ls /dev/dri
ls: /dev/dri: No such file or directory
The script, yet there is no directory to unhide
#!/bin/sh
echo '[devfsrules_bpfjail=101]
add path 'bpf*' unhide
[ffmpeg_drm=10]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_jail
add include $devfsrules_bpfjail
add path 'dri*' unhide
add path 'dri/*' unhide
add path 'drm*' unhide
add path 'drm/*' unhide' >> /etc/devfs.rules
service devfs restart
kldload /boot/modules/i915kms.ko
No populated /dev/dri on the host usually means the driver doesn’t support or recognize the particular chip with acceleration. If this isn’t some simple setting to enable you may be best served on SCALE which I would expect just works out of box.
drm-fbsd13-kmod is an old package that no longer exists.
Install graphics/drm-510-kmod.
Firmware(graphics/gpu-firmware-intel-kmod) may also be required.
truenas KLD i915kms.ko: depends on kernel - not available or version mismatch
truenas linker_load_file: /boot/modules/i915kms.ko - unsupported file type
I was under impression that it was updating to next version automatically via Update System in web UI. But it turned to be not 13.3. So I manually upgraded to 13.3 and /dev/dri is now there.
And so as VAAPI.
I also had to add tunable hw.i915kms.enable_guc = 2 into LOADER. And vp9_vaapi is now working in ffmpeg.