summaryrefslogtreecommitdiff
path: root/src/radeon_video.c
AgeCommit message (Collapse)Author
2007-02-21fix alignment issues with planar yuv and a bug with packed uyvyRoland Scheidegger
respect that all source planar yuv planes are already dword aligned. Some attempts to fix up odd widths and odd heights (which are a bit strange for 4:2:0 formats). They still don't quite work 100% correctly (at the borders) but neither do they with packed yuv formats. While here, fix totally broken packed UYVY format by inserting missing break... Both bugs reported by Felipe Contreras.
2006-12-08radeon: avoid unnecessary OUTPLL/INPLL calls when displaying videoRoland Scheidegger
It is not necessary to always emit a OUTPLL/INPLL pair when we display a video frame. On some chips there are erratas for which the workarounds cause a 10ms delay by those calls. This is related to #5876 though those affected may suffer from other slowness issues too.
2006-12-06radeon: fix up packed yuv broken by planar yuv patchRoland Scheidegger
fix the forgotten leftuv value for packed yuv which is needed to get correct uv starting pixel (fixes broken clipping / non-null src start pixel as tvtime uses)
2006-12-05radeon: use overlay scaler native planar yuv capability.Roland Scheidegger
Radeons can do planar yuv just fine, there is no need to convert all data to packed yuv manually. This saves some cpu cycles as well as some (graphic card) ram.
2006-11-29radeon: bug #1462, predownscale to make HD video work.Roland Scheidegger
Use the overlay scaler's predownscale capability to make videos with large horizontal resolution work if it exceeds the scaler buffer width. Make the scaler buffer width user-configurable since we don't know it for all chips, and using predownscaling may otherwise reduce quality even if it wouldn't be needed. This should fix bug #1462.
2006-11-22clean up previous VIP commit.Alex Deucher
2006-11-22Don't mess with the VIP bus on mobility chips. Seems to cause fanAlex Deucher
problems on asus laptops (see bug 7463). We don't support video-in on any laptops at the moment anyway.
2006-10-15radeon: Use xf86XVFillKeyHelperDrawable() when available.Michel Dänzer
2006-09-25remove all CVS annotations from the ATI driver filesDave Airlie
2006-08-12radeon: make some local data staticDave Airlie
This is inspired by a patch in XFree86 from David Dawes, it isn't the same as we have different gamma curves.
2006-07-02Bug #6548: Fix playback of interlaced video with more than 1023 lines.Michel Dänzer
This will still break with 2048 lines...
2006-06-23Remove obsolete FIXME.Tilman Sauerbeck
2006-06-21Bug #7283: Build fixes for !defined(XF86DRI).Michel Dänzer
Thanks to Matthieu Herrb for pointing out some of these.
2006-06-15Fix semantic glitches pointed out by gcc -Wall.Michel Dänzer
The radeon driver builds warning-free with gcc -Wall here now.
2006-06-15Fix some more cosmetic warnings.Michel Dänzer
2006-05-08Bugzilla #4640 <https://bugs.freedesktop.org/show_bug.cgi?id=4640> PatchMichel Daenzer
#5273 <https://bugs.freedesktop.org/attachment.cgi?id=5273>: Add cases for FOURCC_RGBA32 and FOURCC_RGB24. This prevents clients from receiving incorrect data sizes with these formats. (Jan Schmidt)
2006-05-01Bugzilla #6755 <https://bugs.freedesktop.org/show_bug.cgi?id=6755> PatchMichel Daenzer
#5536 <https://bugs.freedesktop.org/attachment.cgi?id=5536>: Change HostDataBlit interface to take dst_offset_pitch and coordinates instead of just a destination pointer, as the latter is not sufficient with tiling. Also, use HW clipping to avoid overwriting destination data outside of the specified width. Adapt to new HostDataBlit interface. This fixes corruption with UploadToScreen to the front buffer (from exaPutImage).
2006-04-07Add a DrawablePtr argument to the XV functions to pave the way forAaron Plattner
redirected video.
2006-03-23commit the actual changes instead of just the Changelog...Roland Scheidegger
2006-03-22Convert use of xf86fopen() and other xf86 wrapped libc symbols to use libcKristian Høgsberg
symbols directly. The xf86* versions aren't supposed to be used directly. Drop libc wrapper; don't include xf86_ansic.h and add includes now missing.
2006-03-17Fix various small cosmetic issues. Change a driver message, get the orderRoland Scheidegger
right for requesting drm versions, replace the use of some numbers with the respective macro defines in radeon_video.c, and add some more macro defines. None of that really matters.
2006-03-13Fix typo in the function setting the color space transformation factors forBenjamin Herrenschmidt
old radeon
2006-03-12Stop using xf86PciInfo.h, instead use a local copy of the PCI IDs we needBenjamin Herrenschmidt
in atipciids.h so we can update the ATI driver independently of the server when new chips are added
2005-09-11Add support for EXA to the radeon driver. Building EXA and XAA support isEric Anholt
controlled at compile time, plus the runtime option of Option "AccelMethod" "EXA" or "XAA". The XAA support appears to remain as before, while the EXA pieces need just a little more polishing. Notable features: - Render acceleration working on Radeon 100 and 200-series with DRI on. - DRI works with EXA Notable issues: - DGA disabled in the EXA case. - Backbuffer moves disabled in the EXA case. - No textured XVideo. - MMIO render acceleration is close but still has some issues. - Memory pressure while using Composite is really troublesome with DRI on. This patch is based on an initial patch by Zack Rusin, with significant work by Benjamin Herrenschmidt and myself.
2005-07-11Prep for modular builds by adding guarded #include "config.h" everywhere.XORG-6_8_99_16XORG-6_8_99_15Adam Jackson
2005-04-20Fix includes right throughout the Xserver tree:Daniel Stone
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2005-04-17Use the theatre_detect to determine the chip ID and then load theBogdan Diaconescu
coresponding theatre module
2005-03-31Modified:Vladimir Dergachev
programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c Patch from Antti Ajanki - provide VBI capture support for PAL and SECAM (You need GATOS km module to actually get at the data, the change merely configures the hardware to handle it correctly).
2005-03-24- radeon PLL access errata workarounds (Benjamin Herrenschmidt, acked byAlex Deucher
Hui Yu)
2005-02-19Modified:Vladimir Dergachev
programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c Fix an INREG without WaitForIdleMMIO. This one should be unlikely to trigger, but we should still do this in the name of correctness.
2005-01-24Don't exclude 'RADEONInfoPtr info = ...' declaration even when not buildingEgbert Eich
with DRI support (Bugzilla #2370)
2004-12-06When direct rendering is enabled, use hostdata blits to transfer data fromMichel Daenzer
system memory to video RAM, which should reduce CPU usage especially with larger videos. Can be disabled via Option "DMAForXv" if there should be any stability issues, but it's been stable for me during a week of testing. Based on a patch by Nikolaus Meine <meine@tnt.uni-hannover.de>. Probably fix endianness issues in some newer XVideo code, untested. Also use hostdata blits to transfer RENDER image data to video RAM to avoid idling the accelerator engine. Increases RENDER performance significantly for me. These changes were only tested on an M9 in a Titanium PowerBook but should work with all Radeons where direct rendering is supported.
2004-10-22- make the overlay work on crtc2 againAlex Deucher
- make PutVideo() MergedFB aware
2004-10-13Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c xc/programs/Xserver/hw/xfree86/drivers/i2c/fi1236.h Squash annoying warning about fi1236_dump_status
2004-10-08Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c Remove redundant and incorrect line.
2004-10-04Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c Do not probe for Rage Theatre if no multimedia table is present and no parameters have been specified.
2004-10-04Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c This is really embarassing - I found a part of code that had <cr> at the end of the lines. I am certain I never saw it before - talk about code rot !
2004-10-03Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c Fix compilation with gcc 3.4.x (patch by Ronny V. Vindenes)
2004-10-03Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.[c,h] xc/programs/Xserver/hw/xfree86/drivers/ati/theatre.c xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_reg.h Port the rest of GATOS Radeon-specific code. Remove "checkpoint" noise from logs. Test with AIW Radeon 7500
2004-10-03Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon.h xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.[c,h] xc/programs/Xserver/hw/xfree86/drivers/ati/theatre.c Detect and initialize Rage Theatre (RT100)
2004-10-02Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/Imakefile xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_reg.h xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.[c,h] xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_vip.c Add VIP bus access code, hook it into initialization system.
2004-10-02Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon.h xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.h xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_mm_i2c.c Add code to access and initialize multimedia i2c bus. Hook it up.
2004-08-04Use info->ModeReg.surface_cntl to restore byte swapping for the framebufferMichel Daenzer
aperture on big endian machines, remove superfluous local variables and register reads. Adapt framebuffer aperture byte swapping to texture format before copying data to offscreen area and restore it afterwards on big endian machines, fixes Render acceleration there. reviewed by: Hui Yu <hyu@ati.com>, Kevin E. Martin <kem@freedesktop.org>
2004-07-30Support for New radeon chips: R420/M18, R423, RV370/M22, RV380/M24, RS300.Hui YU
Add special handlings for DELL triple-head server (RV100). Misc. bug fixes for flat panel, host aperture, etc (Bug #946)
2004-07-30Bug #400 (partial): Driver fixes for the dlloader. When using dlloader, allAdam Jackson
framebuffer formats except cfb and the overlay modes should work, and r128 and radeon need to be loaded from the ati driver (both issues to be fixed soon). Tested on i740, s3virge, mach64, tdfx, vesa, and vga drivers. elfloader users shouldn't be affected.
2004-07-28- add gamma correction support to the radeon video overlayCOMPOSITEWRAPAlex Deucher
2004-07-26- Add Radeon DynamicClocks optionAlex Deucher
- Add small fixes and clean ups from ati's last code drop (typo_fixes, remove_fudge, laptop, xvfix) - fix possible segfault in mga_dri.c (Ryan Underwood) - Add Xv support to pre-nm2160 neomagic chipsets
2004-06-16Merge DRI-trunk-20040613 changes in programs/Xserver/hw/xfree86/drivers,Eric Anholt
with the following notes: - Savage and Mach64 (= ati/ati*.[ch] changes) DRI not merged due to insecurity. - VIA driver converted to new drmContext and drmHandle names. - Radeon driver merge conflicted in many places, and MergedFB at least could probably use some checking at this point.
2004-06-16DRI trunk-20040613 importDRI-trunk-20040613Eric Anholt
2004-06-16DRI XFree86-4_3_99_12-merge importDRI-XFree86-4_3_99_12-mergeEric Anholt