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>
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>
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>
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>
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>
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>
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>
Fixes:
warning: comparison between pointer and integer
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Reviewed-by: Connor Behan <connor.behan@gmail.com>
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>
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>
Fixes
warning: assignment from incompatible pointer type
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Reviewed-by: Connor Behan <connor.behan@gmail.com>