Created attachment 239864 [details] Xorg.0.log With a slow intel CPU N2830, by default the graphics work but no video acceleration, I try to change the AccelMethod to sna but there's a non-existent file: (EE) AIGLX error: dlopen of /usr/local/lib/dri/i965_dri.so failed (Cannot open "/usr/local/lib/dri/i965_dri.so")
Created attachment 239869 [details] use crocus Does this help? mesa-dri 21.3.8 -> 22.3.2 replaced i965 with crocus on old Intel iGPUs
See also https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/issues/219
I'm ok with the patch if that fixes the issue.
Created attachment 239889 [details] Xorg.0.log crocus
I try AccelMethod crocus and iris and xorg will run but without acceleration, DRI2 fail.
(In reply to nogueira from comment #5) crocus is a DRI2 driver, not AccelMethod. Apply the patch but keep using Option "AccelMethod" "SNA"
(In reply to Jan Beich from comment #6) That patch is good, DRI2 will load fine and sddm will run without problem, but at login kwin_x11 and ksplashqml will crash.
Created attachment 239894 [details] Xorg.0.log SNA crocus
Comment on attachment 239894 [details] Xorg.0.log SNA crocus kwin_x11 and ksplashqml crashes are likely caused by the following: > [ 12.361] (WW) intel(0): Detected unsupported/dysfunctional hardware, disabling acceleration. ... > [ 12.377] (WW) intel(0): loading DRI2 whilst acceleration is disabled. Looking at the code if (!is_hw_supported(kgem, dev)) { xf86DrvMsg(kgem_get_screen_index(kgem), X_WARNING, "Detected unsupported/dysfunctional hardware, disabling acceleration.\n"); __kgem_set_wedged(kgem); 8086:0f31 is Valleyview, so it should be well-supported. Does acceleration fail with drm-54-kmod as well? Revert ports a707d16a2d1e locally (for testing) as it compiles fine on FreeBSD 13.1 (unlike -CURRENT).
(In reply to Jan Beich from comment #9) Thank you, it worked with drm-54-kmod
Created attachment 239912 [details] Xorg.0.log SNA crocus drm-54-kmod
I notice that it has lots of artifacts on meld. Firefox, chromium and libreoffice no problem.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5c430b858589919a9074afc86ef818a030ec1f81 commit 5c430b858589919a9074afc86ef818a030ec1f81 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-02-03 04:18:40 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-02-05 06:13:52 +0000 x11-drivers/xf86-video-intel: switch to crocus DRI after 23e4dce35c4a PR: 269291 Tested by: nogueira@tuta.io Approved by: manu x11-drivers/xf86-video-intel/Makefile | 2 +- x11-drivers/xf86-video-intel/files/patch-prefer-iris | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-)
A commit in branch 2023Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0067155b45c4cce26acccf954dabdf1d7857a367 commit 0067155b45c4cce26acccf954dabdf1d7857a367 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2023-02-03 04:18:40 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2023-02-05 06:14:33 +0000 x11-drivers/xf86-video-intel: switch to crocus DRI after 23e4dce35c4a PR: 269291 Tested by: nogueira@tuta.io Approved by: manu (cherry picked from commit 5c430b858589919a9074afc86ef818a030ec1f81) x11-drivers/xf86-video-intel/Makefile | 2 +- x11-drivers/xf86-video-intel/files/patch-prefer-iris | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-)
(In reply to nogueira from comment #12) I've never used textproc/meld, haven't used Xorg for years and cannot reproduce with SNA on Skylake with drm-510-kmod and don't remember seeing SNA artifacts on drm-54-kmod. Maybe try - install graphics/mesa-devel for newer "crocus" (don't remove mesa-dri) - enable DRI3 via Option "DRI" "3" in xorg.conf(5) - switch to X11 compositor: x11-wm/picom + Option "TearFree" "false" in xorg.conf(5)
Or maybe try newer xf86-video-intel via bug 269296.