378 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
f36d801d74 use xf86InterpretEDID() instead of xf86InterpretEEDID()
xf86InterpretEEDID() is doing nothing else than calling xf86InterpretEDID().

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-22 08:58:57 +01:00
Enrico Weigelt, metux IT consult
fbdc895c2e replace obsolete "pointer" typedef by plain void*
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-05 19:54:22 +01:00
Enrico Weigelt, metux IT consult
1e229f648f drop obsolete compat macros
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-02 12:36:07 +01:00
Enrico Weigelt, metux IT consult
e81493ad2d .github: add NetBSD build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 17:49:11 +01:00
Enrico Weigelt, metux IT consult
040f9e7313 .github: add freebsd and dragonfly build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-28 16:29:12 +01:00
Enrico Weigelt, metux IT consult
c632d06e57 .github: use new common driver build actions
Using the new driver build actions in X11Libre/actions-build-driver repo,
instead of having lots of duplicated pipeline and script in all the
individual driver repos.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-23 22:09:47 +01:00
Enrico Weigelt, metux IT consult
db18a3435c configure.ac: increase minimum xserver version to 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-19 16:13:38 +01:00
Enrico Weigelt, metux IT consult
8e1b584ead release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-nv-25.0.0
2025-12-18 19:16:02 +01:00
Enrico Weigelt, metux IT consult
019a4ea44a configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 17:29:11 +01:00
Enrico Weigelt, metux IT consult
347ee47287 drop hacks for ancient pre-libpciaccess Xservers
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 15:41:37 +01:00
Enrico Weigelt, metux IT consult
19959b6bbe drop obsolete #ifdef XFree86LOADER
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:46:22 +01:00
Enrico Weigelt, metux IT consult
65b7e60b96 configure.ac: replace DRIVER_NAME symbol by actual name
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:16:09 +01:00
Enrico Weigelt, metux IT consult
61fbaca2f1 configure.ac: drop obsolete checks for libc functions
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:21:29 +01:00
Enrico Weigelt, metux IT consult
fc194f2bfd drop support for ancient pre-7.1 xextproto
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:04:09 +01:00
Enrico Weigelt, metux IT consult
f61fc399ff drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:54:32 +01:00
Enrico Weigelt, metux IT consult
ea3dcf7044 drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-17 20:32:33 +01:00
Enrico Weigelt, metux IT consult
33c438d5d2 release 2.1.24
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-nv-2.1.24
2025-12-16 15:20:56 +01:00
Enrico Weigelt, metux IT consult
bb691460a0 README: fix URLs
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 13:21:31 +01:00
Enrico Weigelt, metux IT consult
506da97df0 configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 19:36:36 +01:00
Alan Coopersmith
5bafcc79bf Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`

`git diff -w` & `git diff -b` show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/29>
2025-12-15 19:36:18 +01:00
Alan Coopersmith
a3691dad26 g80: Avoid segfault if AccelMethod isn't set and XAA isn't built
Fixes: b1b6f64 ("g80: dont set accelmethod to xaa when xaa is disabled")
Reviewed-by: Yusuf Khan <yusisamerican@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/27>
2025-12-15 17:35:28 +01:00
Enrico Weigelt, metux IT consult
74aae8609f drop obsolete XAA support
Since recent commits require xserver-1.18.0 or later to build against,
there's no reason leaving behind big chunks of code that can only build
against the XAA support removed in xserver-1.13.0 (released in 2012).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 17:36:12 +01:00
Enrico Weigelt, metux IT consult
86c2a3e6ce drop compat with ancient xserver versions
We're relying on at least 1.8 now, so no need to carry ancient compat anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-08 19:02:43 +01:00
Enrico Weigelt, metux IT consult
217609ae2b bump minimal xorg version to 1.18
1.18 was released a decade ago, so it seems reasonable stop supporting
older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-08 16:55:22 +01:00
Enrico Weigelt, metux IT consult
5b3109a76e replace XNFcalloc() by calloc()
Standard C calloc() really is enough here, no need to extra Xserver
wrappers that are in process of being phased out anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-08 16:51:03 +01:00
Enrico Weigelt, metux IT consult
93c6a64bab replace <region.h> by <regionstr.h>
The <region.h> header is deprecated, anything we might need from it
is already reachable via <regionstr.h>

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-11-20 15:14:10 +01:00
b-aaz
bcdaee5bb8 configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver.
Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
xlibre-xf86-video-nv-2.1.23.2
2025-07-29 18:46:45 +02:00
Enrico Weigelt, metux IT consult
0a03f6f887 .github: add CI pipeline
This pipeline builds the driver against the latest Xserver stable
release as well as current master.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-28 20:30:15 +02:00
callmetango
e003dd62d8 .github: Add issue forms
Add the following forms for issue creation:

* Bug report
* Feature request
* Code change
* Documentation update
* Organizational task

* add issue type selection page on "New Issue" call
* mention Github Discussions and the mailing list where appropriate

Part-of: X11Libre/misc#156
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-07-07 17:05:10 +02:00
b-aaz
ca3f59fa84 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>
2025-06-30 15:56:51 +02:00
Alan Coopersmith
84d63e8bce Improve man page formatting
More closely follow common style as described on
https://man7.org/linux/man-pages/man7/man-pages.7.html
and fix warnings raised by `mandoc -T lint` and `groff -rCHECKSTYLE=10`

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/26>
xlibre-xf86-video-nv-2.1.23.1
2025-06-01 14:33:00 -07:00
Yusuf Khan
a8608636da treewide: replace XNFcallocarray with XNFcalloc and add wrap it
Otherwise older xservers complain, also add a wrapper in case XNFcalloc
is dead.

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/24>
2024-06-05 09:42:58 -05:00
Alan Coopersmith
6db1b9fde7 man page: stop claiming to use XAA on Xorg 1.13 & later
XAA support was removed from Xorg 1.13, so it's not possible to use it
on such releases.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/22>
2024-05-14 18:06:05 -07:00
Alan Coopersmith
6c68869907 Don't try to load xaa module if not compiled with XAA support
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/22>
2024-05-14 18:04:59 -07:00
Alan Coopersmith
ea9736afb1 Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functions
The Xorg headers provide their own versions of strlcat, strlcpy, and
timingsafe_memcmp for platforms that don't have them in libc yet, but
rely on configure to set HAVE_* defines to determine if they should be
defined in the headers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/22>
2024-05-14 17:51:43 -07:00
nia
5e90ec5ecf netbsd: disable not-useful check for an existing kernel driver
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

Signed-off-by: Nia Alarie <nia@NetBSD.org>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/20>
2024-05-12 17:19:47 +00:00
nia
8cf3065812 netbsd: Try getting the EDID via wscons if the DDC2 method fails.
Helps identifying displays on non-x86 hardware.

Patch from Michael Lorenz, autotools'ified by me.

Signed-off-by: Nia Alarie <nia@NetBSD.org>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/19>
2024-05-12 17:05:37 +00:00
Yusuf Khan
b25b3492c5 nv/man: link the gitlab issue tracker
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/16>
2024-05-11 19:56:18 +00:00
Yusuf Khan
93ac93ed7a nv: support GT 320M....hopefully
This is gt216 which is a close relative of my gt218 but...it should
be closer to the rest of the chipsets enough to work hopefully.

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/16>
2024-05-11 19:56:18 +00:00
Yusuf Khan
714dcafbe2 g80/output: update known PCI rom sigs
See src/common/nvswitch/kernel/inc/rom_nvswitch.h in open-gpu-kernel-modules

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/16>
2024-05-11 19:56:18 +00:00
Yusuf Khan
3d729d58bc g80/disp: preinit all heads we know in display
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/16>
2024-05-11 19:56:18 +00:00
Yusuf Khan
30c27a60bf g80/display: Annotate functions
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/16>
2024-05-11 19:56:18 +00:00
Enrico Weigelt, metux IT consult
fd20c34e7a use XNFcallocarray() instead of xnfcalloc macro
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/18>
2024-05-08 16:22:38 +02:00
Enrico Weigelt, metux IT consult
dd4a6d596b use XNFalloc() instead of xnfalloc
xnfalloc is just an alias for XNFalloc() that doesn't seem to serve
any practical purpose, so it can go away once all drivers stopped using it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/18>
2024-05-08 13:01:50 +02:00
Yusuf Khan
63e8ad83c7 nv: support 0xf0 device id range
inspired by a bugzilla patch:

"nv-2.1.12 : patch to add the latest and a lot of Nvidia CPUs (56) (until February 2009)"

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/17>
2024-05-02 23:06:24 +00:00
Yusuf Khan
b1b6f64bde g80: dont set accelmethod to xaa when xaa is disabled
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/merge_requests/15>
2024-04-19 00:44:20 -05:00
Alan Coopersmith
0c96dc0001 xf86-video-nv 2.1.23
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-nv-2.1.23
2024-03-24 12:39:44 -07:00
Yusuf Khan
d06264d7a3 treewide: #if -> #ifdef
I think the latest version of gcc got stricter in regards to this
for some reason.

Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
2024-03-17 20:52:28 +00:00
Alan Coopersmith
c8ab8f7868 riva_hw.c: Ensure ABS macro expands correctly
Handles warning from Oracle Parfait static analyser:

Error: Misleading macro
   Misleading macro [misleading-macro]:
      misleading evaluation of unary '-' operator in expansion of macro ABS due to missing parentheses
        at line 104 of src/riva_hw.c.
        binary '+' operator has lower precedence than unary '-' operator inside macro body at line 298
        if (ABS(ainfo->vburst_size) + (ABS(ainfo->wcvlwm + 32) & ~0xf)  - tmp> VFIFO_SIZE)
        low precedence binary '+' operator is hidden by expansion of macro argument a at line 104
	#define	ABS(a)	(a>0?a:-a)

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-26 09:30:27 -08:00
Alan Coopersmith
eff27e0d6a Fix warning: no previous prototype for ‘G80ExaInit’ [-Wmissing-prototypes]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:38:23 -08:00