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
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