diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2010-02-15 13:40:37 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2010-02-15 17:10:06 +0100 |
commit | 78e7047c5235b09858b66dd3688d39aaa27d7589 (patch) | |
tree | 9eebea9c29c1cf4b2b0648a64c220fdc4d2ad63a /src/radeon_crtc.c | |
parent | 3ec25e59854b6b03ad763bc374d3475a50f562d8 (diff) |
Allocate Xv buffers to GTT.
KMS doesn't have acceleration for upload to vram. memcpy/memmove to VRAM
directly is very slow (40M/s in benchmark) which causes visible problems
to video.
Allocating video buffer in GTT will give good performance (350-450M/s)
for memmove operation. This is nice performance boost for Xv under KMS.
Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r-- | src/radeon_crtc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 556b4612..764839c0 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -564,7 +564,8 @@ radeon_crtc_shadow_allocate (xf86CrtcPtr crtc, int width, int height) * setter for offscreen area locking in EXA currently. So, we just * allocate offscreen memory and fake up a pixmap header for it. */ - rotate_offset = radeon_legacy_allocate_memory(pScrn, &radeon_crtc->crtc_rotate_mem, size, align); + rotate_offset = radeon_legacy_allocate_memory(pScrn, &radeon_crtc->crtc_rotate_mem, + size, align, RADEON_GEM_DOMAIN_VRAM); if (rotate_offset == 0) return NULL; |