summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-05-15Add IA44 and AI44 subpicture formats to xvmcHEADmasterChristian König1-6/+11
2011-05-15Add iDCT Flag to XvMCChristian König1-2/+2
2011-05-15Move from unsigned to signed dct intra frame blocksChristian König1-2/+2
2011-05-15Add 4:2:2 XvMC surfaceChristian König1-2/+19
2011-05-15Register XvMC video decoding accelerationChristian König4-1/+153
2011-05-13UMS: Fix comparison of unsigned variable against < 0.Michel Dänzer1-1/+1
Pointed out by clang: ../../src/radeon_crtc.c:242:18: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare] error = error < 0 ? 0xffffffff : error; ~~~~~ ^ ~ If a UMS regression is bisected to this commit, the assignment should probably just be removed, as it's a no-op in the current form.
2011-05-13KMS: Fix output properties logic error.Michel Dänzer1-1/+1
Pointed out by clang: ../../src/drmmode_display.c:1023:30: error: use of logical && with constant operand; switch to bitwise & or remove constant [-Werror,-Wconstant-logical-operand] if (props && (props->flags && DRM_MODE_PROP_ENUM)) { ^ ~~~~~~~~~~~~~~~~~~ Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-12man: fix typosNicolas Kaiser1-3/+3
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
2011-05-06DRI2: fix high-crtc/vblank oversight/bugIlija Hadzic1-1/+1
improvements to high-crtc handling done in f0b7d7b449cc77bb2b281d81108507f8bc2e6018 introduced a bug that caused the populate_vbl_request_type to never use the high-crtc field even when it should. The reason is that the offending patch put the code under #ifdef DRM_VBLANK_HIGH_CRTC_MASK which is not visible outside the enum type, so #else was always taken in compilation type. This patch fixes it by basing #ifdef on (pre-processor visible) DRM_VBLANK_HIGH_CRTC_SHIFT constant Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
2011-05-04fusion: fix tiling enable logicAlex Deucher1-6/+6
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-04fusion: enable tiling if DFS worksAlex Deucher1-2/+2
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-04radeon: add add hw DFS support for fusionDave Airlie3-1/+29
Fusion had a bug setting up the VM on earlier kernels so we need to work around that and only enable accel on a new enough kernel. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-05-03radeon: add some new pci idsAlex Deucher6-0/+30
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-05-01man: add cayman to man pageAlex Deucher1-0/+3
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-20EXA/Xv: used cached bo tiling flags for accel setup on 6xx+Alex Deucher6-29/+37
This avoids calling into the kernel for each bo in the accel code. This is a follow on to: cc7d1fa39da40a532fcdbe6c7924ca47a879e66a Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-14R520: Fix textures larger than 2kAdam Jackson3-6/+52
Ported from the equivalent fix in Mesa.
2011-04-05EXA: Cache BO tiling flags.Michel Dänzer5-45/+25
Calling into the kernel every time is quite expensive, and nobody else should ever change the tiling flags. There's still more to do along the same lines for >= R6xx.
2011-04-05DRI2: Some cleanups for the scheduling mess.Michel Dänzer2-42/+56
* Fix build against libdrm that doesn't define *_VBLANK_HIGH_CRTC*. * If we have more than two CRTCs but can't use DRM_VBLANK_HIGH_CRTC_MASK, don't enable scheduling in the first place rather than relying on DRM_VBLANK_SECONDARY magically doing something sensible for higher CRTCs. * Only set up client state tracking when scheduling is enabled. * Only declare pRADEONEnt when it's needed, and break long lines.
2011-04-04radeon: add some additional ontario pci idsAlex Deucher6-0/+12
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-02xf86-video-ati: (revised #2) add support for vblank on crtc > 1Ilija Hadzic2-14/+42
Hi Alex, Enclosed is a revised version of two patches sent on Mar 18 and Mar 22, respectively. Details summarized in these two threads: http://lists.freedesktop.org/archives/dri-devel/2011-March/009463.html http://lists.freedesktop.org/archives/dri-devel/2011-March/009582.html This patch reconciles the DDX with the change in libdrm sent to this list earlier today. Specifically, it refers to a symbol that has been renamed from DRM_CAP_HIGH_CRTC to DRM_CAP_VBLANK_HIGH_CRTC. It *supersedes* the previous patch (i.e. apply it to the master branch as it exists at the time of this writing, not as an incremental patch to the one sent previously). Regards, Ilija Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-21bug fix for r6xx/r7xx UMSmatthew green2-0/+8
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-17bump version post releaseAlex Deucher1-1/+1
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-17bump for releaseAlex Deucher1-1/+1
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-16radeon/exa: correct function nameDave Airlie5-7/+7
this corrects the function name so it matches the contents. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-16radeon/exa: fix scaling checkDave Airlie1-1/+1
This caused a regression in firefox, as these numbers are xFixed values hence 1 is actually 65536. Should fix: https://bugzilla.redhat.com/show_bug.cgi?id=685084 Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-15APU: no tiling yetAlex Deucher1-0/+4
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-15radeon: exa shaders don't handle scaling either.Dave Airlie1-1/+2
rendercheck tsrccoords test fails. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02kms: add cayman pci idsAlex Deucher6-0/+84
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-02kms: no accel yet for caymanAlex Deucher1-0/+1
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-02kms: add cayman chip familyAlex Deucher1-0/+1
KMS only. No UMS support for cayman. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-02r6xx+: truncate point sampled coordinatesAlex Deucher2-0/+4
By default the hardware rounds texcoords. However, for point sampled textures, the expected behavior is to truncate. When we have point sampled textures, set the truncate bit in the sampler. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-01kms: Fix warning XNFprintf is deprecated (v2)Sedat Dilek1-0/+5
The first take of my patch missed the breakage against pre-1.10 xservers and now I know XNFasprintf() is not a 1:1 replacement for XNFprintf(). The idea for the fix seemed to be so obvious, but as usual "really" test the patch you are sending to any ML. I am awfully sorry for the overhasty bad hack. Thanks to Alan and Alex for the help to fix it correctly, now. Tested-By: Sedat Dilek <sedat.dilek@gmail.com> Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
2011-02-28kms: don't rotate if acceleration is not enabledAlex Deucher1-0/+9
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-28kms: don't enable tiling if accel is offAlex Deucher1-19/+23
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-28xv: fix height alignments for U/V planesDave Airlie1-5/+5
The kernel CS checks showed we were incorrectly aligning the U/V allocations for when we used them as texture sources. This should fix https://bugs.freedesktop.org/show_bug.cgi?id=34567 Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-26Revert "kms: Fix warning XNFprintf is deprecated"Michel Dänzer1-5/+1
This reverts commit cb4dc7ab66016d0c980800f8dbf71bbe993889d3. Looks like this caused https://bugs.freedesktop.org/attachment.cgi?id=43852 , but even if it didn't, the following needs to be addressed first: cc1: warnings being treated as errors ../../src/radeon_kms.c: In function ‘radeon_open_drm_master’: ../../src/radeon_kms.c:413: error: passing argument 1 of ‘XNFasprintf’ from incompatible pointer type /usr/local/include/xorg/Xprintf.h:57: note: expected ‘char **’ but argument is of type ‘char *’ ../../src/radeon_kms.c:413: error: passing argument 2 of ‘XNFasprintf’ makes pointer from integer without a cast /usr/local/include/xorg/Xprintf.h:57: note: expected ‘const char * restrict’ but argument is of type ‘uint16_t’ ../../src/radeon_kms.c:413: error: assignment makes pointer from integer without a cast make[2]: *** [radeon_kms.lo] Error 1
2011-02-25kms: Fix warning XNFprintf is deprecatedSedat Dilek1-1/+5
Noticed when building ati/radeon ddx against xserver 1.10-rc3. [ build.log ] ../../src/radeon_kms.c:412:5: warning: 'XNFprintf' is deprecated (declared at /usr/include/xorg/os.h:273) agd5f: don't break the build against pre-1.10 xservers. Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-25UMS: Fix build against xserver 1.10-rc3Sedat Dilek1-1/+1
This issue was introduced due to last minute backout of RandR-1.4 in xserver 1.10-rc3. Switch to "#ifdef RANDR_14_INTERFACE" as suggested by Keith Packard. See also <http://lists.x.org/archives/xorg-devel/2011-February/019643.html>. Note: The ddx needs a rebuild as the X video driver ABI changed to version 10.0. Reported-by: Alex Deucher <alexdeucher@gmail.com> CC: Keith Packard <keithp@keithp.com> Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
2011-02-24dri2: disable pageflipping for transformed displaysAlex Deucher1-4/+13
Based on Ben's nouveau patch. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-23Xv: use aligned height to calculate Xv buffer sizeAlex Deucher1-1/+4
Make sure it's large enough for the tiling mode so the CS checker doesn't complain. Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=34567 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-21Properly restore CLOCK_CNTL_INDEX registerMark Kettenis1-2/+3
RADEONRestore() restores the CLOCK_CNTL_INDEX register before calling RADEONRestorePLLRegisters(), which modifies the CLOCK_CNTL_INDEX register to access the PLL registers. As a result we may end up with the wrong clock being selected when exiting X. This happens on platforms where the driver doesn't save and restore the VGA state. Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
2011-02-16man: add btc chips to the listAlex Deucher1-0/+9
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-16kms: add tiling support for evergreen/NIAlex Deucher1-2/+32
- requires 2.6.37 or newer - 1D only at the moment - disabled by default Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-16kms: EXA/Xv tiling fixesAlex Deucher5-6/+28
- properly set tiling flags for temp surfaces - fix CB non_disp_tiling bits on evergreen Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-15fix Xv on pre-r6xx asicsAlex Deucher1-3/+6
broken by: a9c1358099:"Xv: fix textured video alignment" Reported by: Artur Skawina <art.08.09@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-12kms: use worst case base/pitch align if we don't have drm tiling infoAlex Deucher3-4/+24
To avoid CS rejection. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-12kms: always get the tiling info even if we aren't tilingAlex Deucher1-4/+5
We need the proper group size to calculate alignment so the ddx and drm agree. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-12kms: fix rotate pitch alignAlex Deucher1-1/+1
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11kms: evergreen/ni big endian accel supportAlex Deucher6-43/+130
Based on 6xx/7xx patches from Cédric Cano. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11ums: atombios endian fixesCédric Cano1-14/+14
agd5f: fix a few more cases. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>