From 4d98acbca2e630056bf56cdcd0e23007fded2ced Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 16 Jul 2008 03:14:06 -0400 Subject: First pass at tear-free accel if the dest pixmap is the front buffer, stall the pipe until the vline is outside the active area. For EXA, pick crtc based on the larger mode area; ideally we'd have one pixmap per crtc. For Xv, use dst window area to determine crtc. --- src/radeon_textured_videofuncs.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/radeon_textured_videofuncs.c') diff --git a/src/radeon_textured_videofuncs.c b/src/radeon_textured_videofuncs.c index 86532b53..edd322b3 100644 --- a/src/radeon_textured_videofuncs.c +++ b/src/radeon_textured_videofuncs.c @@ -1475,6 +1475,14 @@ FUNC_NAME(RADEONDisplayTexturedVideo)(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv } } + FUNC_NAME(RADEONWaitForVLine)(pScrn, pPixmap, + radeon_covering_crtc_num(pScrn, + pPriv->drw_x, + pPriv->drw_x + pPriv->dst_w, + pPriv->drw_y, + pPriv->drw_y + pPriv->dst_h, + pPriv->desired_crtc)); + while (nBox--) { int srcX, srcY, srcw, srch; int dstX, dstY, dstw, dsth; -- cgit v1.2.3