diff options
author | Thomas Hellström <thomas@shipmail.org> | 2006-01-06 11:50:12 +0000 |
---|---|---|
committer | Thomas Hellström <thomas@shipmail.org> | 2006-01-06 11:50:12 +0000 |
commit | d67d01ea79219324e59d69a44d0d5085e23a4ba5 (patch) | |
tree | 063022d3fb48033ff071ec39a890877cce968c56 /unichrome/via_video.c | |
parent | 84ba277d520514e53fb469efa85c13779f4d972e (diff) |
- Update Xv blit to new blit-combining feature of DRM.
(Idea from Luc Verhaegen/Unichrome).
- Prepare for ugly via_drm.h dmablit IOCTL arg change and via_drm.h
versioning.
Diffstat (limited to 'unichrome/via_video.c')
-rw-r--r-- | unichrome/via_video.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/unichrome/via_video.c b/unichrome/via_video.c index 4a9f2b646537..bf47762b60fd 100644 --- a/unichrome/via_video.c +++ b/unichrome/via_video.c @@ -1007,12 +1007,11 @@ viaDmaBlitImage(VIAPtr pVia, } blit.num_lines = height; - blit.line_length = (id == FOURCC_YV12) ? width : 2*width; + blit.line_length = bounceStride; blit.fb_addr = dst; blit.fb_stride = lumaStride; blit.mem_addr = base; blit.mem_stride = bounceStride; - blit.bounce_buffer = 0; blit.to_fb = 1; #ifdef XV_DEBUG ErrorF("Addr: 0x%lx, Offset 0x%lx\n Fb_stride: %u, Mem_stride: %u\n width: %u num_lines: %u\n", @@ -1044,20 +1043,19 @@ viaDmaBlitImage(VIAPtr pVia, if (nv12Conversion) { blit.num_lines = height >> 1; - blit.line_length = width; + blit.line_length = lumaStride; blit.mem_addr = bounceBase + bounceStride*height; blit.fb_stride = lumaStride; blit.mem_stride = bounceStride; } else { blit.num_lines = height; - blit.line_length = width >> 1; + blit.line_length = lumaStride >> 1; blit.mem_addr = base + bounceStride*height; blit.fb_stride = lumaStride >> 1; blit.mem_stride = tmp; } blit.fb_addr = dst + lumaStride*height; - blit.bounce_buffer = 0; blit.to_fb = 1; while(-EAGAIN == (err = drmCommandWriteRead(pVia->drmFD, DRM_VIA_DMA_BLIT, |