summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2014-11-15mach64: fix build probably not required with pci access anywaysDave Airlie
2014-01-15Drop dependence on xf86PciInfo.hConnor Behan
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 Herrb
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-04preinit: Don't bother explicitly loading int10, vbe will do it for usAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-12-26Remove unused atiaudio.c & ATIAudioNames declarationAlan Coopersmith
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 Coopersmith
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-18Remove call to obsolete miInitializeBackingStore()Alan Coopersmith
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 Behan
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 Coopersmith
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 Jackson
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 Jackson
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 Airlie
tvout code only builds on 32-bit, fix build. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-16mach64: fix build against server without XAADave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-06ati: only include deprecated file in one place.Dave Airlie
reduces warnings. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-06mach64: port to new compat API.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-12-19Fall back to shadowfb if XAA is unavailableAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-10-29Use pci_device_map_legacy rather than xf86MapDomainMemoryJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29Use unsigned long rather than deprecated IOADDRESSJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-04-28Replace deprecated xalloc/xfree/xrealloc with malloc/free/reallocJulien Cristau
Signed-off-by: Julien Cristau <jcristau@debian.org>
2010-12-02mach64: fix the pixmap private API change.Dave Airlie
2010-08-29Don't play wrapping gamesMark Kettenis
The driver calls the wrapped CloseScreen function in the middle of messing with the hardware state. On multi-card setups this may cause the VGA arbiter to switch to a different card while we're in the middle of things, with obvious disastrous effects. This fixes things by making sure we only call the wrapped CloseScreen function at the very end of the driver's CloseScreen function. Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
2010-08-29Don't attempt to stop video on Mach64's without hardware overlay supportMark Kettenis
Older Mach64 variants don't have hardware overlay support. This is handled properly when the XVideo adapter is initialized (we bail out early), but ATICloseXVideo() unconditionally tries to stop video during screen termination. This causes the server to hang on certain multi-card setups. Fix the issue by checking Block1Base before proceeding with stopping video. Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
2009-07-28mach64: change to using ABI version checkDave Airlie
2009-07-28mach64: update for resources/RAC API removalDave Airlie
2009-07-16Update to xextproto 7.1 support.Peter Hutterer
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers need to include dpmsconst.h if xextproto 7.1 is available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-10Doublecheck pictFormat is a supported formatAlan Coopersmith
Fixes these warnings from parfait source checker: Error: Read buffer overflow at src/atimach64render.c:601 in function 'Mach64PrepareTexture' [Symbolic analysis] In array dereference of Mach64TexFormats[i] with index 'i' Array size is 6 elements (of 12 bytes each), index >= 0 and index <= 6 Error: Read buffer overflow at src/atimach64render.c:712 in function 'Mach64PrepareComposite' [Symbolic analysis] In array dereference of Mach64TexFormats[i] with index 'i' Array size is 6 elements (of 12 bytes each), index >= 0 and index <= 6 Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-04-29Convert to XORG_CWARNFLAGS & XORG_CHANGELOGAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2008-11-28Remove xf86{Disable,Enable}InterruptsPaulo Cesar Pereira de Andrade
They were already a noop in most "os-support"s, and are no longer available in the X Server.
2008-10-03Don't print the resource list on failure.Adam Jackson
If this ever happens it should be printed from the server at any rate.
2008-09-09Make sure the screen is a mach64 screen before doing anything in ↵Aaron Plattner
ATIMach64XVInitialiseAdaptor.
2008-03-26mach64: on IA64 systems the pciaccess page size mapping was getting E2BIGxf86-video-mach64-6.8.0Yi Zhan
As the ia64 pagesize was 16k, and aperture was only 4k, this was messing up on ia64 machines. Modified fix from RH BZ 438947 - airlied
2008-03-19[PATCH] Compile warning fixes.Paulo Cesar Pereira de Andrade
Add missing prototypes to atimach64accel.h.
2008-02-27change module name and versionGeorge Sapountzis
module gets package version, driver keeps its own version
2008-02-27drop r128George Sapountzis
2008-02-27drop r128 (build system)George Sapountzis
2008-02-27drop ati wrapperGeorge Sapountzis
2008-02-27drop AtomBios and pcidbGeorge Sapountzis
2008-02-27drop radeon, theatreGeorge Sapountzis
2008-02-27drop radeon, theatre (build system).George Sapountzis
2008-02-27RADEON: fix textured video uploadsAlex Deucher
2008-02-27RADEON: fix clipping for textured videoAlex Deucher
2008-02-26RADEON: Convert textured video to use pipelined uploadsAlex Deucher
2008-02-26R300/R500: fix up clippingAlex Deucher
Based on patch from Peter Zubaj.
2008-02-26R300: fix cordinate clamping in render codeAlex Deucher
Based on Peter's fix for textured video
2008-02-26R300: Fix clamping and pitch for textured videoPeter Zubaj
2008-02-26R300/R500: set the number graphics pipes properlyAlex Deucher
This should fix the checkerboard issues on r300/r350 cards.
2008-02-26R300/R500: clean up magic numbers in textured videoAlex Deucher
2008-02-26regs: fix spelling properlyDave Airlie
2008-02-26regs: fix spelling mistakeDave Airlie
pointed out by plaes on irc
2008-02-25R300/R500: clean up magic numbers in render codeAlex Deucher