Commit Graph

351 Commits

Author SHA1 Message Date
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
Alan Coopersmith
fa0bd081e0 Fix -Wdiscarded-qualifiers warning in G80PreInit
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:24:25 -08:00
Alan Coopersmith
947720bc20 Fix warning: ‘NVPatternROP’ defined but not used [-Wunused-const-variable=]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:10:39 -08:00
Alan Coopersmith
0176634d5e Fix warning: ‘NVDMAKickoffCallback’ defined but not used [-Wunused-function]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:09:14 -08:00
Alan Coopersmith
57cfa71b2c Fix 4 -Wdiscarded-qualifiers warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:05:42 -08:00
Alan Coopersmith
52db99b4d8 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:03:29 -08:00
Alan Coopersmith
85198960a8 configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008,
so it's time to rely on it.

Clears autoconf warnings:

configure.ac:45: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:45: You should run autoupdate.
aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from...
configure.ac:45: the top level

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-08 14:01:21 -08:00
Alan Coopersmith
e64b5ac6db Don't call xf86DisableRandR in ABI_VIDEODRV_VERSION 24 & later
The API was removed by Xserver commit dd00e5466a0e4ea313d1860824da4123692827ed
in xorg-server-1.20.0 and later.

Found by gcc -Werror=implicit:

riva_driver.c: In function ‘RivaScreenInit’:
riva_driver.c:1213:12: error: implicit declaration of function
 ‘xf86DisableRandR’; did you mean ‘xf86DisableIO’?
 [-Werror=implicit-function-declaration]
 1213 |            xf86DisableRandR();
      |            ^~~~~~~~~~~~~~~~
      |            xf86DisableIO
nv_driver.c: In function ‘NVScreenInit’:
nv_driver.c:2635:16: error: implicit declaration of function
 ‘xf86DisableRandR’; did you mean ‘xf86DisableIO’?
 [-Werror=implicit-function-declaration]
 2635 |                xf86DisableRandR();
      |                ^~~~~~~~~~~~~~~~
      |                xf86DisableIO

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-07 18:23:53 -08:00
Alan Coopersmith
b536401064 gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-05 17:25:52 -07:00
Alan Coopersmith
04f4578f5b Remove "All rights reserved" from Oracle copyright notices
Oracle no longer includes this term in our copyright & license notices.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-25 09:13:29 -08:00
Yusuf Khan
1b735e8c96 fix nv on powerpc
Written by either Julio Merino <julio at meroh.net> or Nathan Whitehorn
<nwhitehorn at freebsd.org> (emails obfuscated similar to freebsd
convention, authorship is in doubt)
2022-07-29 12:50:20 +00:00
Alan Coopersmith
adbd442a21 gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-28 17:30:21 -07:00
Yusuf Khan
bc1b6343f7 bump to version 2.1.22
Signed-off-by: Yusuf Khan <yusisamerican@gmail.com>
xf86-video-nv-2.1.22
2022-07-27 19:50:52 +00:00
Alan Coopersmith
94d6ea6137 riva_xaa: don't build RivaSetRopPattern when XAA is not supported
Fixes gcc warnings:

riva_xaa.c: In function ‘RivaSetRopPattern’:
riva_xaa.c:94:33: warning: implicit declaration of function
  ‘XAAGetPatternROP’; did you mean ‘RivaSetPattern’?
  [-Wimplicit-function-declaration]
         pRiva->riva.Rop->Rop3 = XAAGetPatternROP(rop);
                                 ^~~~~~~~~~~~~~~~
                                 RivaSetPattern
At top level:
riva_xaa.c:89:1: warning: ‘RivaSetRopPattern’ defined but not used
  [-Wunused-function]
 RivaSetRopPattern(RivaPtr pRiva, int rop)
 ^~~~~~~~~~~~~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-25 19:15:07 -07:00
Yusuf
b9f256b16f Replace xf86PciInfo.h with our own pci ids
Signed-off-by: YusufKhan-improves-things's avatarYusuf Khan <yusisamerican@gmail.com>
---
v2: Add header to Makefile

v3: commit v2
2022-06-24 18:46:06 -05:00
Alan Coopersmith
7ccde0d6c8 Update README.G80 for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-02-19 11:40:04 -08:00
Alan Coopersmith
9e33c6327f gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 14:03:42 -08:00
Alan Coopersmith
6168d93489 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 14:02:12 -08:00
Alan Coopersmith
ec6c1e02f9 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22 13:59:51 -08:00
Alan Coopersmith
80b2d1f93a Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-25 14:34:43 -08:00
Alan Coopersmith
80c1b93552 Update README for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18 13:31:22 -08:00
Mihail Konev
b7d57087d0 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
860b2bffc1 autogen.sh: use quoted string variables
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:26:28 +10:00
Peter Hutterer
90d2db6619 autogen.sh: use exec instead of waiting for configure to finish
Syncs the invocation of configure with the one from the server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-26 11:25:40 +10:00
Colin Walters
caf8230a1f autogen.sh: Implement GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26 11:25:40 +10:00
Peter Hutterer
eac0278003 configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26 11:18:39 +10:00
Matt Turner
e4134c4ebd xf86-video-nv 2.1.21
Signed-off-by: Matt Turner <mattst88@gmail.com>
xf86-video-nv-2.1.21
2017-01-17 14:42:07 -08:00
Adam Jackson
42e260a7ab Adapt Block/WakeupHandler signature for ABI 23
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-07-19 10:12:45 -04:00