Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2017 21:00:46 -0800
From:      David Shao <davshao@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Re: X11 breaks for Intel after ports update from r433396 -> r433935?
Message-ID:  <CABZaEK5E%2BiQG_38=o7Gf9C6j0FSivp_JS1SV0FdPGDt1jT-AaQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
>From past DragonFly dports to
x11-drivers/xf86-video-intel29
and FreeBSD ports, in pkgsrc-wip I have had success
running xorg server 19 and mesa 17.0.0 with the patch:

--- src/intel_device.c.orig    2014-11-18 21:50:39.000000000 +0000
+++ src/intel_device.c
@@ -398,8 +398,16 @@ static int __intel_open_device__legacy(c
          pci->domain, pci->bus, pci->dev, pci->func);

     ret = drmCheckModesettingSupported(id);
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+    if (ret || 1) {
+        if (xf86LoadKernelModule("i915kms"))
+#elif defined(__DragonFly__)
+    if (ret || 1) {
+        if (xf86LoadKernelModule("i915"))
+#else
     if (ret) {
         if (xf86LoadKernelModule("i915"))
+#endif
             ret = drmCheckModesettingSupported(id);
         if (ret)
             return -1;

Perhaps something else needs to be added for FreeBSD
versioning.

By the way, my pkgsrc-wip ports end with -dfbsd and
basically use FreeBSD ports / DragonFly dports patches
applied to pkgsrc, in addition to running on NetBSD.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABZaEK5E%2BiQG_38=o7Gf9C6j0FSivp_JS1SV0FdPGDt1jT-AaQ>