xf86-video-intel: src/intel_video.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Jul 12 11:48:56 PDT 2010


 src/intel_video.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 3a7c25ff8ddd45c9d9eca5cc2228552847ca9e7d
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Jul 12 19:47:46 2010 +0100

    video: Apply overlay stride errata for i830 and i845
    
    Due to an erratum on these chipsets, the overlay stride must be a
    multiple of 256 bytes.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/intel_video.c b/src/intel_video.c
index 11fd7fa..f99cad8 100644
--- a/src/intel_video.c
+++ b/src/intel_video.c
@@ -1383,6 +1383,11 @@ intel_setup_dst_params(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv, sh
 			 * stride must be at least 512 bytes. Take the easy fix
 			 * and align on 512 bytes unconditionally. */
 			pitchAlignMask = 511;
+		else if (IS_I830(intel) || IS_845G(intel))
+			/* Harsh, errata on these chipsets limit the stride to be
+			 * a multiple of 256 bytes.
+			 */
+			pitchAlignMask = 255;
 		else
 			pitchAlignMask = 63;
 	}


More information about the xorg-commit mailing list