xf86-video-nv: src/nv_driver.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 9 19:43:03 UTC 2025


 src/nv_driver.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 0a7ac8ce8a96ec4bb37ac19c326bb07febb9c3d5
Author: b-aaz <b-aazbsd.proton.me>
Date:   Sat Jun 28 21:15:09 2025 +0000

    FreeBSD: nv_driver: Disable check for pci driver in FreeBSD.
    
    Seems like this check is also unnecessary in FreeBSD as in NetBSD.
    Because the vgapci driver is always attached.
    
    Signed-off-by: b-aaz <b-aazbsd.proton.me>
    Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/28>

diff --git a/src/nv_driver.c b/src/nv_driver.c
index ae94649..7400b26 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -37,8 +37,10 @@
  * nv will refuse to work whenever there's a driver other than vga attached to
  * the device we're trying to probe, yet nv works fine on top of gffb or
  * genfb on NetBSD
+ *
+ * FreeBSD always has vgapci driver attached.
  */
-#ifndef __NetBSD__
+#if     !defined (__NetBSD__) && !defined (__FreeBSD__)
 #define NV_TEST_FOR_KERNEL_DRIVER 1
 #endif
 


More information about the xorg-commit mailing list