xf86-video-intel: src/intel_video.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Jan 19 07:26:44 PST 2011
src/intel_video.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4c4ad555564a80311df1a4b762eb1e119c6d95fb
Author: Xiang, Haihao <haihao.xiang at intel.com>
Date: Wed Jan 19 15:25:06 2011 +0000
Correct offset of planes within clipped window
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=24767
Reported-and-tested-by: Sitsofe Wheeler <sitsofe at yahoo.com>
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/intel_video.c b/src/intel_video.c
index 2786201..0d1ffc5 100644
--- a/src/intel_video.c
+++ b/src/intel_video.c
@@ -996,7 +996,7 @@ I830CopyPlanarData(intel_adaptor_private *adaptor_priv,
/* Copy V data for YV12, or U data for I420 */
src2 = buf + /* start of YUV data */
(srcH * srcPitch) + /* move over Luma plane */
- ((top * srcPitch) >> 2) + /* move down from by top lines */
+ ((top >> 1) * srcPitch) + /* move down from by top lines */
(left >> 1); /* move left by left pixels */
#if 0
@@ -1015,7 +1015,7 @@ I830CopyPlanarData(intel_adaptor_private *adaptor_priv,
src3 = buf + /* start of YUV data */
(srcH * srcPitch) + /* move over Luma plane */
((srcH >> 1) * srcPitch2) + /* move over Chroma plane */
- ((top * srcPitch) >> 2) + /* move down from by top lines */
+ ((top >> 1) * srcPitch) + /* move down from by top lines */
(left >> 1); /* move left by left pixels */
#if 0
ErrorF("src3 is %p, offset is %ld\n", src3,
More information about the xorg-commit
mailing list