Enrico Weigelt, metux IT consult
0e20da3bea
drop always-enabled ifdef XGI_HAVE_COMPOSITE
...
It's always enabled, so no need for the extra #ifdef's
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:53:42 +02:00
Enrico Weigelt, metux IT consult
dc43d5995f
drop never used NEW_DGAOPENFRAMEBUFFER code path
...
This symbol is never defined, so we can drop the code pathes behind it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:52:05 +02:00
Enrico Weigelt, metux IT consult
ccf7b7d3a9
drop ifdef XGIVRAMQ
...
It's always enabled, so no need for the extra #ifdef.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:50:06 +02:00
Enrico Weigelt, metux IT consult
4d91e8358d
drop obsolete USING_BIOS_SETMODE
...
It's not enabled at all, so probably not needed anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:48:58 +02:00
Enrico Weigelt, metux IT consult
d31abc8180
drop obsolete ifdef XGIXINERAMA
...
It's always enabled, so no need for the extra #ifdef's
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:47:27 +02:00
Enrico Weigelt, metux IT consult
9e133647b6
drop obsolete ifdef on LINUX_XF86
...
It's always enabled, so no need for the ifdefs and the disabled code pathes.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:42:41 +02:00
Enrico Weigelt, metux IT consult
e1dc37b94a
drop ancient raw Linux kernel FB support
...
This has been disabled for aeons and probably doesn't work at all.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:30:23 +02:00
Enrico Weigelt, metux IT consult
0b9742fe3c
drop compat for ancient Linux 2.5.x kernel
...
This is really ancient and probably doesn't work anymore at all.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:26:15 +02:00
Enrico Weigelt, metux IT consult
bb077f384b
drop unused WIN2000 code path
...
hw/xfree86, thus this driver, doesn't run on Windows, so no need for that.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:23:45 +02:00
Enrico Weigelt, metux IT consult
732fee2815
drop ifdef XGIGAMMA
...
It's always enabled, so no need for the extra #ifdef.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:19:35 +02:00
Enrico Weigelt, metux IT consult
74cf2305a0
drop ifdef's on XGIMERGED
...
It's always enabled, so no need for the #ifdef's anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:18:17 +02:00
Enrico Weigelt, metux IT consult
e3c0298c54
drop ifdef's on XGIDUALHEAD
...
It's always enabled, so no need for the #ifdef's anymore.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:18:17 +02:00
Enrico Weigelt, metux IT consult
5cbd1a822c
drop UNLOCK_ALWAYS symbol
...
It's always enabled, so no need for the #ifdef's.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:18:17 +02:00
Enrico Weigelt, metux IT consult
05eac74cbd
drop unused XGI_CP code pathes
...
These seem never to have been enabled, so probably not needed at all.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:18:17 +02:00
Enrico Weigelt, metux IT consult
c044bc1def
drop compat with ancient xserver versions
...
We're relying on at least 1.18 now.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 16:18:13 +02:00
Enrico Weigelt, metux IT consult
d71549781e
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 >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-24 15:21:09 +02:00
Enrico Weigelt, metux IT consult
3d7d54d48b
drop compat for ancient and dead XFree86
...
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-23 21:23:20 +02:00
Enrico Weigelt, metux IT consult
bcb7c3a1d7
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 >
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6 >
2024-05-14 16:34:04 +02:00
Enrico Weigelt, metux IT consult
0ebba9ea62
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-xgi/-/merge_requests/5 >
2024-05-08 17:27:40 +02:00
Enrico Weigelt, metux IT consult
a0da5b01a5
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-xgi/-/merge_requests/5 >
2024-05-08 13:23:03 +02:00
Alan Coopersmith
c904d2e1c3
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:47: warning: The macro 'AC_PROG_LIBTOOL' is obsolete.
configure.ac:47: You should run autoupdate.
aclocal.m4:3551: AC_PROG_LIBTOOL is expanded from...
configure.ac:47: the top level
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2024-01-16 17:00:36 -08:00
Alan Coopersmith
a76ae9bff2
gitlab CI: ensure libtool is installed in build container
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2023-10-07 09:38:00 -07:00
Alan Coopersmith
dec0beddbe
Fix -Wimplicit-function-declaration warning
...
xgi_setup.c:637:5: warning: implicit declaration of function
‘XGI_New_GetVBType’; did you mean ‘XGI_GetRegByte’?
[-Wimplicit-function-declaration]
XGI_New_GetVBType(pXGI->XGI_Pr, pHwDevInfo); //yilin
^~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-12-09 13:20:16 -08:00
Alan Coopersmith
360c88c0d4
XGIErrorLog: add printf attribute
...
xgi_driver.c: In function ‘XGIErrorLog’:
xgi_driver.c:729:5: warning: function ‘XGIErrorLog’ might be a candidate
for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
xf86VDrvMsgVerb(pScrn->scrnIndex, X_ERROR, 1, format, ap);
^~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-12-09 13:02:00 -08:00
Alan Coopersmith
f6ffb479c3
Fix -Wdiscarded-qualifiers warnings
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-12-09 12:55:19 -08:00
Alan Coopersmith
aa970d8d25
Stop including deprecated xf86PciInfo.h
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-12-09 12:46:55 -08:00
Alan Coopersmith
0d35e771a4
gitlab CI: stop requiring Signed-off-by in commits
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-12-09 12:42:30 -08:00
Alan Coopersmith
3143bdee58
Fix building with -fno-common
...
This is the default in gcc 10 & later, and causes build failures with:
/usr/sbin/ld: .libs/xgi_driver.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:125: multiple definition of `Alignment'; .libs/xgi_accel.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:125: first defined here
/usr/sbin/ld: .libs/xgi_driver.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:124: multiple definition of `G2CmdQueLen'; .libs/xgi_accel.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:124: first defined here
/usr/sbin/ld: .libs/xgi_driver.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:122: multiple definition of `w_port'; .libs/xgi_accel.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:122: first defined here
/usr/sbin/ld: .libs/xgi_driver.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:122: multiple definition of `r_port'; .libs/xgi_accel.o:/builds/alanc/xf86-video-xgi/_builddir/src/../../src/xgi_accel.h:122: first defined here
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-01-30 09:41:19 -08:00
Alan Coopersmith
542aaf8ac4
gitlab CI: add a basic build test
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-01-30 09:25:24 -08:00
Alan Coopersmith
279b965c8b
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-30 09:23:37 -08:00
Alan Coopersmith
fb010f4243
Build xz tarballs instead of bzip2
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2022-01-30 09:12:05 -08:00
Alan Coopersmith
979e4ce9a9
Update configure.ac bug URL for gitlab migration
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2018-12-07 19:23:38 -08:00
Alan Coopersmith
e8bca4874b
Update README for gitlab migration
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com >
2018-11-18 16:46:35 -08:00
Emil Velikov
986b2fd081
xf86-video-xgi: remove the GlxSetVisualConfigs stub and friends
...
The function was an empty since 2008 at least. Remove it alongside the
unused GLX visuals code.
With this all the GL/GLX dependencies in the driver are gone.
Cc: Connor Behan <connor.behan@gmail.com >
Cc: Adam Jackson <ajax@redhat.com >
Signed-off-by: Emil Velikov <emil.velikov@collabora.com >
2017-07-17 13:57:12 +01:00
Adam Jackson
78d1138dd6
Adapt Block/WakeupHandler signature for ABI 23
...
Signed-off-by: Adam Jackson <ajax@redhat.com >
2016-07-19 10:08:10 -04:00
Tristan Plumb
923e6d6c6d
Add check for libpciaccess on ARM
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=30619
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2016-04-28 15:23:32 -04:00
Alberto Bursi
754628ddef
Fixed "Module xgi does not have a xgiModuleData"
...
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=95181
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2016-04-28 15:12:47 -04:00
Jakub Bogusz
bd94c47503
Fix invalid mode passed to open
...
Signed-off-by: Jakub Bogusz <qboosh@pld-linux.org >
2015-09-14 11:43:43 -04:00
Jakub Bogusz
53afaf2251
Add missing includes to avoid implicit function declarations
...
Signed-off-by: Jakub Bogusz <qboosh@pld-linux.org >
2015-09-14 11:43:39 -04:00
Connor Behan
4e106f07da
Bump to 1.6.1
...
Signed-off-by: Connor Behan <connor.behan@gmail.com >
xf86-video-xgi-1.6.1
2015-08-21 10:39:08 -04:00
Connor Behan
0827492c24
Remove execute permissions from source files
...
This looks tacky if nothing else.
Signed-off-by: Connor Behan <connor.behan@gmail.com >
Reviewed-by: Matthieu Herrb <matthieu at herrb.eu>
2015-08-17 18:57:47 -04:00
Connor Behan
85cfdf291a
Reduce custom type usage
...
Bring this more in line with the maintained drivers.
Signed-off-by: Connor Behan <connor.behan@gmail.com >
Reviewed-by: Matthieu Herrb <matthieu at herrb.eu>
2015-08-17 18:57:37 -04:00
Connor Behan
8b1cd5fbf1
Remove UploadToScreen and DownloadFromScreen
...
Fixing these broken EXA hooks would make them equal to a software
fallback, so use that instead.
Signed-off-by: Connor Behan <connor.behan@gmail.com >
2015-08-17 18:57:27 -04:00
Connor Behan
cf9c4f1a85
Add missing check for libpciaccess
...
The code for finding the BIOS forgets to provide both map / unmap
methods.
Signed-off-by: Connor Behan <connor.behan@gmail.com >
2015-08-17 18:57:20 -04:00
Thomas Klausner
b2f8aeb640
Remove const from variable.
...
Fixes.
assignment discards ‘const’ qualifier from pointer target type
Signed-off-by: Thomas Klausner <wiz@NetBSD.org >
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2015-08-10 23:42:26 +02:00
Thomas Klausner
ddc0c72d45
Add unistd.h for usleep().
...
Signed-off-by: Thomas Klausner <wiz@NetBSD.org >
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2015-08-10 23:42:24 +02:00
Thomas Klausner
b8d1edfcc8
Make two unused Scaling variables static.
...
Avoids
xgi_drv_pic.a(xgi_setup.pico):(.rodata+0x30): multiple definition of `XGIScalingP4Regs'
Signed-off-by: Thomas Klausner <wiz@NetBSD.org >
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2015-08-10 23:42:22 +02:00
Thomas Klausner
3ab0b8841b
Compare integer return values to integers.
...
Fixes:
warning: comparison between pointer and integer
Signed-off-by: Thomas Klausner <wiz@NetBSD.org >
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2015-08-10 23:42:20 +02:00
Alan Barrett
2b800da319
Fix return value.
...
In XGI_GetTVPtrIndex2(), return the correct value through *tempch
by using (*tempch)++ instead of *tempch++.
Found using clang -Wunused-value.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org >
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2015-08-10 23:42:18 +02:00
Thomas Klausner
0011cd2b25
Remove PACKAGE_* definitions from xgi_dri.c.
...
They are provided by configure (via config.h or command line).
Signed-off-by: Thomas Klausner <wiz@NetBSD.org >
Reviewed-by: Connor Behan <connor.behan@gmail.com >
2015-08-10 23:42:16 +02:00