commit 27cf78e993cbc49e33b46c55985a0eef74040743 Author: Daniel Vetter Date: Thu Apr 8 11:05:32 2010 +0200 Xv: fixup overlay stride confusion For some reason I've made a mess out of the overlay stride constrains. Fix it up. Signed-off-by: Daniel Vetter diff --git a/src/i830_video.c b/src/i830_video.c index 45213cb..e537700 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -1348,9 +1348,12 @@ i830_setup_dst_params(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv, sho pitchAlignMask = 3; } else { if (IS_I965G(intel)) - pitchAlignMask = 255; + /* Actually the alignment is 64 bytes, too. But the + * stried must be at least 512 bytes. Take the easy fix + * and align on 512 bytes unconditionally. */ + pitchAlignMask = 511; else - pitchAlignMask = 255; + pitchAlignMask = 63; } #if INTEL_XVMC