summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-07-21r6xx/r7xx: group op variable stateAlex Deucher
Group the op variable state into one emit block, re-order to reduce dwords emitted.
2010-07-15kms: don't call cursor helper if using software cursorJerome Glisse
Fix : https://bugzilla.redhat.com/show_bug.cgi?id=601713 https://bugzilla.redhat.com/show_bug.cgi?id=598358 Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-07fix build on non-kmsDave Airlie
2010-06-30remove rv100 quirkAlex Deucher
Some RV100 cards with 2 VGA ports show up with DVI+VGA, however some boards with DVI+VGA have the same subsystem ids. Better to have a VGA port show up as DVI than having a non-useable DVI port. reported by DHR in irc. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-29Remove HDP_SOFT_RESET function, there is no need to reset HDP block.Cooper Yuan
This commit can fix an issue reported on DELL server, system gets hang during soft resetting while another application tries to access PCI configuration space.
2010-06-24r6xx shader: use ADDR() for CF_DWORD0Alex Deucher
no change in functionality
2010-06-21r6xx/r7xx: fix ums cmd buffer leakWolfram
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=27957
2010-06-21r6xx/r7xx: fix miscount in state emitAlex Deucher
2010-06-21r6xx/r7xx accel: add back some additional default stateAlex Deucher
This adds back everything removed in c29157bbf5b0dd26857675282ab094082fbaed0d except CB_FOG_*, CB_CLEAR_* and the VPORT transforms. Those shouldn't be needed as we aren't using fog or viewport transforms. We probably don't need all the state that was added back either but I can't reproduce any problems here, so it's hard to say which parts are problematic. Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=28629 and several corruption reports on #radeon. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-21DRI2: Fix up confusion between windows and pixmaps.Michel Dänzer
Fixes crashes with xserver master, where looking up a pixmap private on a window no longer happens to work.
2010-06-21Convert x(c)alloc/xfree to m/calloc/free.Michel Dänzer
Fixes deprecation warnings with xserver master and should also work with older xservers.
2010-06-21radeon: fix support for 1.9 server master.Dave Airlie
This moves pixmap and mode set into CSR where its allowed. Should work fine on old servers also. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-06-16r6xx/r7xx: macro safety fixesAlex Deucher
2010-06-16radeon: fix depth 16 with umsAlex Deucher
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28494 https://bugzilla.redhat.com/show_bug.cgi?id=554967 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-16r3xx-r5xx Xv: disable bicubic filtering by defaultAlex Deucher
- makes Xv more consistent with r1xx/r2xx/r6xx/r7xx - Xv attributes like brightness, contrast, hue, etc. only work when bicubic is disabled. - avoids performance issues on some systems when sampling from textures in GART with kms. - It can be re-enabled with using xvattr Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-15r6xx/r7xx: remove unnecessary state emitAlex Deucher
No need to emit state that doesn't impact that we use for EXA/Xv. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-15r6xx/r7xx: reorg default and clipping state emitAlex Deucher
Group ordered registers to save command buffer space. Reduces the default and clipping state from 256 to 160 dwords. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-15r6xx/r7xx accel: remove some duplicate emits and minor clean upAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-11radeon: fixup last fix, use CURSOR_WIDTH not RADEON_CURSOR_WIDTH.Dave Airlie
2010-06-11radeon: set proper stride for cursor in tiling flags.Dave Airlie
definitely incorrect, but hope it doesn't break anything. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-06-11drmmode: fix big endian issue with properties.Dave Airlie
On a power machine with an rn50, this was causing load detection to be turned off after the first X run, subsequent X runs would find nothing connected. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-06-08radeon: fix rn50 cloning with kmsAlex Deucher
Since they only have one crtc sometimes the xserver doesn't assign a crtc to one of the outputs even though both outputs have common modes which results in only one monitor being enabled. Assign a crtc in preinit so that both outputs light up. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-06-08xv: fix Xv on M6/RV100 under KMS.Dave Airlie
pRADEONEnt->HasCRTC2 wasn't setup under KMS. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-06-03evergreen: explicitly disable accel on evergreenAlex Deucher
Previously we relied on the drm not having accel enabled to make sure evergreen used shadowfb, now we when we enable accel in the drm, we need to make sure the ddx doesn't try and use it until it's implemented. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-18r3xx-r5xx: enable color tiling by default on KMSMarek Olšák
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-05-18rs740: follow macro-switch tooMarek Olšák
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-05-18dri2: use radeon_pick_best_crtc()Alex Deucher
It's already exposed and used by exa and Xv and has the same functionality. radeon_covering_crtc() can be dropped eventually.
2010-05-17r2xx exa: fix typo in 27c3326863deae36bc35e2c3b73fffd400208ff1Alex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-17r1xx/r2xx EXA: handle RepeatNone properly with transformsAlex Deucher
Fallback with unsupported ops like r3xx, r6xx. Should fix fdo bug 28142. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-10kms: add support for the MSC swap & sync APIJerome Glisse
This patch is mostly a port over of Intel ddx code for MSC support. It needs a radeon KMS module with version 2.4 which has the query for hw crtc id. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-05-04r3xx-r5xx: fix texturing with small macrotiled pixmapsMarek Olšák
Pixmaps smaller than a macrotile cannot be used as textures because hardware automatically switches to macro-linear and therefore sampled pixels are messed up. This behavior is known as MACRO_SWITCH. The only sane workaround seems to be not using macrotiling for small pixmaps. The function RADEONMacroSwitch has been ported from r300g and implements MACRO_SWITCH the same way it's implemented in hardware. It's been well tested in r300g. This commit also fixes blit-based framebuffer reads, which are used for tiled surfaces in r300g, when ColorTiling is enabled. Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-05-04radeon: fix pll_out_min default for pre-avivoAlex Deucher
Fixes fdo bug 27960
2010-04-23FB/MMIO_cnt should be ints, not pointers.Michel Dänzer
Pointed out by compiler warnings. https://bugs.freedesktop.org/show_bug.cgi?id=27817
2010-04-22r3xx: fix gb pipe setup for SE cardsAlex Deucher
Noticed by Tormod Volden
2010-04-22r3xx-r5xx: fix vertex unitsAlex Deucher
Noticed by Tormod Volden. RV3xx is 2, RV560,RV570 is 8
2010-04-21Reference count shared driver mappings.Owain Ainsworth
With MMIO it wasn't *such* a bit deal if we leaked the smallish mapping. with FB it could be a larger deal. So instead of worrying about this, reference count the mappings in the entity structure and unmap them when no one cares anymore. Prompted by a discussion with airlied Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-21Make consistent use of fbOffset and share fb mappings.Owain G. Ainsworth
What we were doing previously was mapping the framebuffer for zaphod for only this driver instances chunk, however, fbOffset was (rightly) set to the offset into the whole framebuffer we were using. Since in some cases we did operations on the FB virtual address + fbOffset (for example zeroing the framebuffer on entervt) we were actually pissing all over ourselves in those cases. Fix this by implementing shared fb mappings like we do for MMIO already, and whenever we wish to refer to our area of FB space we always use fbOffset. Fixes zaphod for some users on r600 chipsets, my 4870 is still behaving strangely on screen 0, but I suspect that is another bug. Once calculation (in PreInitAccel) is now wrong because of this, however dri on zaphod does now happen so this is irrelavent, add a comment to that effect. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-21Kill per-context SAREA support.Owain G. Ainsworth
It has never been used, and since the world is changing it almost certainly never will be. Good riddance. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-21Remove remnants of the ShowCache option.Owain G. Ainsworth
The rest of it died a long time ago. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-19radeon: add FireMV 2400 pci id.Dave Airlie
From RH#581927 - thanks to Carsten Clasohm Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-16r5xx texvid: deal with large numbers of vertsAlex Deucher
should fix fdo bug 25884
2010-04-16r3xx texvid: deal with large numbers of vertsAlex Deucher
should fix fdo bug 25884
2010-04-16r2xx texvid: deal with large numbers of vertsAlex Deucher
should fix fdo bug 25884
2010-04-16r1xx texvid: deal with large numbers of vertsAlex Deucher
should fix fdo bug 25884
2010-04-16r5xx textured video: split into prepare and draw functionsAlex Deucher
2010-04-16r3xx textured video: split into prepare and draw functionsAlex Deucher
2010-04-16r2xx textured video: split into prepare and draw functionsAlex Deucher
2010-04-16r1xx textured video: split into prepare and draw functionsAlex Deucher
2010-04-16Xv: track vtx_count, is_planar in port privAlex Deucher
2010-04-16radeon/kms: fix possible crtc mask for evergreenAlex Deucher