Commit Graph

331 Commits

Author SHA1 Message Date
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
Matthieu Herrb
38d888e0f3 Fix shadow framebuffer implementation.
Makes it possible to run the nv driver without XAA on cards where
EXA is not supported.

Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2015-12-21 16:45:08 +01:00
Egbert Eich
0b6619fec3 init: Initialize VGA IOBase before using it
The NV driver did never set the VGA IOBase for those registers which
have different addresses dependent whether the VGA engine is running in
mono or color mode.
This has not been detected as the VGA mode and font save/restore
functions initialize this value themselves.

Signed-off-by: Egbert Eich <eich@freedesktop.org>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
2013-08-16 09:14:04 +02:00
Jeremy White
49ee1c26ea Include xf86Modes.h to use functions from hw/xfree86/modes/xf86Modes.c.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Reviewed-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-03-24 10:37:41 -07:00
Adam Jackson
fc78fe9822 Remove mibstore.h
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-25 08:54:49 -04:00
Dave Airlie
e82fddd3e9 nv: bump version to 2.1.20
Signed-off-by: Dave Airlie <airlied@redhat.com>
xf86-video-nv-2.1.20
2012-07-17 16:49:24 +10:00
Dave Airlie
0d4ea629bc nv: add missing fbman includes.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-17 16:48:56 +10:00
Dave Airlie
86e83109d6 xf86-video-nv: bump to version 2.1.19
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-17 16:47:03 +10:00
Dave Airlie
e5e3e733d9 nv: make XAA optional.
This allows nv to build without XAA.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-16 18:48:32 +10:00
Dave Airlie
713e9501b8 nv: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-07 15:52:16 +01:00
Adam Jackson
b3d6182883 Fix for new vgahw ABI
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19 16:57:40 -05:00
Adam Jackson
5b7f07f817 Make failure to XAA non-fatal
Fall back to NoAccel on G80 since there's no shadowfb support there,
otherwise fall to shadowfb.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19 16:55:30 -05:00
Nicolas Kaiser
4b03459a83 remove duplicated includes
Remove duplicated includes of guarded headers.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2011-04-25 12:01:54 -07:00
Cyril Brulebois
2b17d1ac57 Fix compiler warning.
Get rid of this with CFLAGS="-Wall -Werror":
|   CC     g80_display.lo
| cc1: warnings being treated as errors
| g80_display.c: In function ‘G80CrtcSetPClk’:
| g80_display.c:216: error: unused variable ‘i’

Signed-off-by: Cyril Brulebois <kibi@debian.org>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Tested-by: Aaron Plattner <aplattner@nvidia.com>
2011-03-01 18:14:16 -08:00
Alan Coopersmith
95108089e2 Correct copyright date in previous commit
Oops, pasted in the new template and forgot to restore the original date

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30 09:53:33 -07:00
Alan Coopersmith
d7727e5307 Sun's copyrights now belong to Oracle
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-30 09:39:39 -07:00
Jesse Adkins
cb93a9b513 Purge cvs tags.
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06 20:46:29 -07:00
Aaron Plattner
41de275248 nv 2.1.18
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
xf86-video-nv-2.1.18
2010-07-30 14:14:59 -07:00
Gaetan Nadon
470c5c662f Remove RANDR_12_INTERFACE checking, always defined.
RANDR_12_INTERFACE is defined in xserver/randr/randstr.h since version 1.2.
This driver only configures against xserver 1.3 or higher.

Reported-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2010-07-23 11:28:52 -07:00
Gaetan Nadon
fb82b1725f config: add comments for main statements 2010-07-22 15:03:50 -04:00
Gaetan Nadon
91d89916d4 config: replace deprecated use of AC_OUTPUT with AC_CONFIG_FILES
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-07-21 16:07:00 -04:00