FreeBSD 14.4 - Mesa issue with drm-kmod

I have just updated from 14.3 to 14.4 everything went well until I tried to run my preferred wm swayfx. I eventually discovered that I had an issue with MESA in that I am getting this error when running sway from a terminal

Code:
sway --unsupported-gpu
No such file or directory
amdgpu: DRM version is 3.49.0, but this driver is only compatible with 3.54.0 (kernel 6.6+) or later.
MESA: error: amdgpu: ac_query_gpu_info failed.
libEGL warning: egl: failed to create dri2 screen
00:00:00.053 [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to create screen"
No such file or directory
amdgpu: DRM version is 3.49.0, but this driver is only compatible with 3.54.0 (kernel 6.6+) or later.
MESA: error: amdgpu: ac_query_gpu_info failed.
libEGL warning: egl: failed to create dri2 screen
00:00:00.056 [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to create screen"
00:00:00.056 [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to load driver"
00:00:00.056 [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "eglInitialize"
00:00:00.056 [wlr] [render/egl.c:268] Failed to initialize EGL
00:00:00.056 [wlr] [render/egl.c:625] Failed to initialize EGL context
00:00:00.056 [wlr] [render/fx_renderer/fx_renderer.c:282] Could not initialize EGL
00:00:00.056 [sway/server.c:255] Failed to create renderer

It appears that recent Mesa updates (Mesa 24.3+ / 25.x) bumped the minimum required amdgpu kernel interface version for AMD GPUs to 3.54.0 (Linux 6.6).

On FreeBSD 14.x, the maximum supported kernel module version is graphics/drm-61-kmod (Linux 6.1 DRM), which reports DRM version 3.49.0. When Mesa runs, its ac_query_gpu_info check sees 3.49.0 instead of 3.54.0 and fails.

Any ideas how I resolve this, note that I build all my own packages using poudriere and rebuilt these as part of my update process.
 
toddgl maybe the issue is libdrm, there is now two versions, the one that was moved to mesa after 24.x and the old standalone. As far as I can tell, the standalone one is used by a lot of packages.

But in any case the possible solutions are:
  1. Revert mesa on 14.x
  2. Build drm-66-kmod for 14.x if linuxkpi allows it
 
Unfortunately cannot build drm-66-kmod as it gets ignored in poudriere as it tests for FB >= version 15.0

Not sure how I build a old version of mesa in poudriere and which one should I build?


Code:
Trimming IGNORED and blacklisted ports

[00:00:02] Ignoring graphics/drm-66-kmod | drm-66-kmod-6.6.25.1404000_10:
 
Back
Top