diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-12 19:47:46 +0100 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2010-09-11 21:30:00 +0100 |
commit | 4b19c8c32eba8914db71be74af35d000b3af323d (patch) | |
tree | bf717e5430f08724c7ef8eff2a230611029ea88a /src | |
parent | 3e410dc47a8ef0cdd688fd1dbf66873fa9c3ce6a (diff) |
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>
(cherry picked from commit 3a7c25ff8ddd45c9d9eca5cc2228552847ca9e7d)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_video.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/i830_video.c b/src/i830_video.c index 7c0ef657..67dee0c0 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -2296,6 +2296,11 @@ i830_setup_dst_params(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv, sho * 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; } |