summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-03-16radeon/exa: correct function nameDave Airlie
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 Airlie
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 Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-15radeon: exa shaders don't handle scaling either.Dave Airlie
rendercheck tsrccoords test fails. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-03-02kms: add cayman pci idsAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-02kms: no accel yet for caymanAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-02kms: add cayman chip familyAlex Deucher
KMS only. No UMS support for cayman. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-02r6xx+: truncate point sampled coordinatesAlex Deucher
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 Dilek
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 Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-28kms: don't enable tiling if accel is offAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-28xv: fix height alignments for U/V planesDave Airlie
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änzer
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 Dilek
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 Dilek
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 Deucher
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 Deucher
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 Kettenis
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-16kms: add tiling support for evergreen/NIAlex Deucher
- 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 Deucher
- 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 Deucher
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 Deucher
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 Deucher
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 Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11kms: evergreen/ni big endian accel supportAlex Deucher
Based on 6xx/7xx patches from Cédric Cano. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11ums: atombios endian fixesCédric Cano
agd5f: fix a few more cases. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11kms: 6xx/7xx big endian accel supportCédric Cano
agd5f: minor cleanups Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11kms/6xx+: endian swap cursor uploadsCédric Cano
agd5f: remove kms surface for cursor since we now do the swap in the cursor load to avoid breaking pre-6xx cards with BE. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11kms/exa/xv: fix alignment checking in accel state setupAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11kms/exa: UTS/DFS base alignment fixesAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11Xv: fix textured video alignment harderAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11Xv: fix textured video alignmentAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11kms: remove RADEON_TILING_SURFACE flag on front boAlex Deucher
Should have been removed in: ef9bfb262db7004bef3704e5d914687e50d3fca4 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-11EXA/r6xx+: properly account for height alignment in copy temp bufferAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-10remove EVERGREENSetAccelState()Alex Deucher
It was a duplicate of the R600 variant. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-106xx+: switch to linear aligned rather than linear generalAlex Deucher
linear aligned is supposedly more performant, but more importantly, linear general only works on the CB without slices. The texture blocks technically don't support linear general although, I think linear general gets upgraded to linear aligned in the hw which is why it currently works. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-10evergreen/NI: consolidate spi setupAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-106xx/7xx: consolidate spi setupAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-10evergreen/ni: consolidate CB state handlingAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-106xx/7xx: consolidate remaining CB stateAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-10kms/r6xx+: clean up pitch/height alignment in EXA UTS/DFSAlex Deucher
2011-02-05UMS: fix spelling in error messageAlex Deucher
Noticed by: Warren Block <wblock@wonkity.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-05UMS/DCE3.2: fix segfaultAlex Deucher
atombios_pick_dig_encoder() needs to be called with a valid crtc assigned. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-01kms/pre-6xx: fix pageflipping with tilingAlex Deucher
Use UTS/DFS to tile/untile as appropriate for sw access on pre-6xx. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33738 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-01kms/r6xx+: fix tiling and pageflipping harderAlex Deucher
Thanks for Michel for final fix. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=33738 for r6xx+ asics. A similar approach for pre-r6xx asics is pending. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-02-01radeon: remove device 0x4243Alex Deucher
0x4243 is a PCI bridge, not a gpu. See: https://bugs.freedesktop.org/show_bug.cgi?id=33815 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-31UMS: Slightly improve xserver version check.Michel Dänzer
This will ensure the xserver definitions necessary to compile the new code are there. xf86CrtcSetMode will be unresolved at runtime with a few xserver commits, but I'm afraid this is the best we can do. See https://bugs.freedesktop.org/show_bug.cgi?id=33719 .
2011-01-27ums: fix build against xserver >= 1.10Alex Deucher
xf86CrtcSetMode was removed in: http://cgit.freedesktop.org/xorg/xserver/commit/?id=8b35118c03590a7ad3786d3284bafb3f40fcb8cc
2011-01-26dp: fix displayport support by syncing with KMS codeJerome Glisse
Warning the dp clock value are divided by 10 in ddx (10 times bigger than kernel value) this is somethings very picky. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2011-01-24vbo: warn if we add a bo with a pointer to the wait listAlex Deucher