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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2010-07-12 19:47:46 +01:00
parent 56e5816252
commit 3a7c25ff8d
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}