summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
7 daysuse XNFcallocarray() instead of xnfcalloc macroHEADmasterEnrico Weigelt, metux IT consult4-6/+6
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-mach64/-/merge_requests/13>
7 daysuse XNFalloc() instead of xnfallocEnrico Weigelt, metux IT consult3-3/+3
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-mach64/-/merge_requests/13>
2024-02-04Fix -Wanalyzer-possible-null-argument warning in ATIDRIScreenInitAlan Coopersmith1-6/+5
atidri.c:1033:7: warning: use of possibly-NULL ‘malloc(64)’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument] 1033 | sprintf( pDRIInfo->busIdString, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-04Fix 24 of 24 -Wimplicit-fallthrough warningsAlan Coopersmith4-2/+24
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-02-04Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functionsAlan Coopersmith1-0/+5
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>
2024-02-04configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-2/+1
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:44: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:44: You should run autoupdate. aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from... configure.ac:44: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-01gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-09Handle -Wextra-semi-stmt warnings from clangAlan Coopersmith2-3/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-09Handle -Wunused-function warnings from clangAlan Coopersmith2-1/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-09Variable scope reductions as suggested by cppcheckAlan Coopersmith15-68/+53
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-25Remove "All rights reserved" from Oracle copyright noticesAlan Coopersmith1-1/+1
Oracle no longer includes this term in our copyright & license notices. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-11-25fix some build warningsBenjamin Valentin5-17/+7
Modern gcc complains about misleading indentation and multiple function definitions, so let's fix those. Signed-off-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2022-11-07Mark DriverRec exported in atimach64probe.h to match atimach64probe.cNiveditha Rau1-1/+1
Fixes build failure when compiling with Solaris Studio compiler using -xldscope=hidden: "atimach64probe.c", line 308: redeclaration must have the same or more restrictive linker scoping: MACH64 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-10xf86-video-mach64 6.9.7xf86-video-mach64-6.9.7Alan Coopersmith2-1/+5
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-02-06gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-02-06Rename bool to boolean for OptionInfoRec.Josselin Poiret1-19/+19
* src/aticonfig.c: Change uses of .value.bool to .value.boolean
2022-01-22Fix spelling/wording issuesAlan Coopersmith10-13/+13
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-22Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-04-26Fix debugging tracesGeorge Matsumura1-2/+2
Without this change, the compiler emits an error about pPict being undefined when fallback messages are turned on.
2021-04-22Fix compositing rotationGeorge Matsumura1-20/+25
This corrects the composite operation's interpretation of a source picture transformation matrix indicating rotation, correcting a previous behavior where the source image was simply flipped and not rotated. This is done by using a transformed vector for each vertex of the source rectangle, instead of just two at each of the diagonally opposed corner vertices.
2019-07-05configure: Include xorg-server.h before exa.hMichel Dänzer1-2/+4
Fixes EXA detection spuriously failing with current xserver.
2018-11-25Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith1-15/+8
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-05-18mach64 6.9.6xf86-video-mach64-6.9.6Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-07-17xf86-video-mach64: remove the GlxSetVisualConfigs stub and friendsEmil Velikov4-237/+3
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: Adam Jackson <ajax@redhat.com> Cc: Connor Behan <connor.behan@gmail.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2017-02-16D'oh, fix the previous commitAdam Jackson1-2/+2
These limits are against mode->[HV]Total, not Display. Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-02-16Move max mode h/v checks into ATIValidModeAdam Jackson2-6/+17
Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
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-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
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-26autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2015-05-04mach64 6.9.5xf86-video-mach64-6.9.5Adam Jackson1-1/+1
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-11-15mach64: fix build probably not required with pci access anywaysDave Airlie1-0/+2
2014-01-15Drop dependence on xf86PciInfo.hConnor Behan1-1/+36
It is about time we stop using this deprecated file and include pciids locally. Signed-off-by: Connor Behan <connor.behan@gmail.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2013-06-03Deal with pPict->pDrawable == NULL for source-only pictures.Matthieu Herrb1-2/+5
Falling back to software rendering for such source pictures (solid/gradient). Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2013-04-04Bump minimum xserver to 1.4Adam Jackson1-1/+1
Due to the previous change we no longer support servers where ddc is not a server builtin. Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-04-04preinit: Don't bother explicitly loading int10, vbe will do it for usAdam Jackson1-41/+10
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-12-26Remove unused atiaudio.c & ATIAudioNames declarationAlan Coopersmith3-53/+1
Defined a string array, which is not used anywhere. atiaudio.h remains for now, though for the enum it defines, only one reference to it remains, initializing the Audio to ATI_AUDIO_NONE, so it may be a candidate for further cleanup in the future. Reported by Solaris linker -z guidance option: ld: guidance: removal of unused file recommended: atiaudio.o Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-26Remove unused atidecoder.c & atidecoder.hAlan Coopersmith3-103/+1
Defined a enum & string array, neither of which were used anywhere. Reported by Solaris linker -z guidance option: ld: guidance: removal of unused file recommended: atidecoder.o Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-12-19xf86-video-mach64 6.9.4xf86-video-mach64-6.9.4Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-18Remove call to obsolete miInitializeBackingStore()Alan Coopersmith1-1/+0
Definition was deleted from Xorg during 1.14 merge window, but has been a no-op since 1.10 merge window. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2012-12-16Remove dummy UTS / DFS hooksConnor Behan1-60/+0
When EXA was added to mach64, it included UploadToScreen and DownloadFromScreen hooks that did the same thing that EXA would do in a software fallback. Now they are out of date and cause crashes. The slight benefit of reimplementing those hooks (if there is any) is not worth the maintenance burden of having to rewrite them every time there is a change to the way EXA handles pixmaps. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=51137 Signed-off-by: Connor Behan <connor.behan@gmail.com> Tested-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-12-10Mach64PixelARGB should use exaGetPixmapFirstPixelAlan Coopersmith1-16/+1
Fixes crash attempting to read a pixel from a NULL pPixmap->devPrivate.ptr Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Michel Dänzer <michel@daenzer.net>
2012-10-02Fix build with neither XAA nor EXA against xserver 1.13.0Adam Jackson1-0/+1
Pull in picturestr.h to get GLYPH_HAS_GLYPH_PICTURE_ACCESSOR defined before compat-api.h is parsed, otherwise you fail with: In file included from /usr/include/xorg/picturestr.h:28:0, from /usr/include/xorg/exa.h:38, from atimach64accel.h:31, from atiscreen.c:46: /usr/include/xorg/glyphstr.h:138:2: error: expected ')' before '*' token /usr/include/xorg/glyphstr.h:138:2: error: expected ')' before '(' token /usr/include/xorg/glyphstr.h:140:2: error: expected ')' before '*' token /usr/include/xorg/glyphstr.h:140:2: error: expected ')' before '(' token Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-09-26Don't gratuitously disable Render when ShadowFBingAdam Jackson1-14/+4
There's no reason to do this, and I am at a loss to explain why that was ever done. The first instance of this logic comes from xfree86 (over 11 years ago!): http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xfree86/drivers/ati/atiscreen.c.diff?r1=1.15&r2=1.16 Now, cfb never had Render support, so that might make some sense if there was an intermediate uncommitted state where the driver used fb for direct but cfb for shadowed. But that's really the only plausible explanation I can think of. Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-18mach64: fix build on 32-bit.Dave Airlie1-1/+1
tvout code only builds on 32-bit, fix build. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-17xf86-video-mach64: bump to version 6.9.3xf86-video-mach64-6.9.3Dave Airlie1-1/+1
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-16mach64: fix build against server without XAADave Airlie2-2/+23
Signed-off-by: Dave Airlie <airlied@redhat.com>