From 3a7c25ff8ddd45c9d9eca5cc2228552847ca9e7d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 12 Jul 2010 19:47:46 +0100 Subject: 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 --- src/intel_video.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/intel_video.c b/src/intel_video.c index 11fd7fad..f99cad89 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; } -- cgit v1.2.3